Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from source? #73

Open
cfhammill opened this issue Jul 26, 2021 · 5 comments
Open

Building from source? #73

cfhammill opened this issue Jul 26, 2021 · 5 comments

Comments

@cfhammill
Copy link

Hi niwidgets developers, currently I am only able to get your package via a pip wheel. The instructions in the README to run

pip install git+git://github.com/nipy/niwidgets/

doesn't work due to a missing setup.py. Any advice on how to build from git/source?

@janfreyberg
Copy link
Contributor

Hi,

Apologies, the instructions must be outdated. The setup.py was removed a while ago and you now need to install it using poetry from source. For documentation on the install, see here: https://python-poetry.org/docs/cli/#install

To get this to work, you would have to:

  • clone the repository
  • change dir into the repository
  • (optionally) create a new virtual environment
  • install poetry using pip install poetry
  • install niwidgets using poetry install

Apologies for the convoluted setup.

@cfhammill
Copy link
Author

Ok awesome, thanks so much @janfreyberg, would you like me to PR these instructions into the README?

@janfreyberg
Copy link
Contributor

That would be great, thank you!

@armaneshaghi
Copy link

@janfreyberg thanks for this. Would you be able to add a Dockerfile so we can all reproduce the build steps in the same environment?

@S-Bommer
Copy link

S-Bommer commented Dec 12, 2023

The process seems to get stuck after:

Resolving dependencies... Downloading https://files.pythonhosted.org/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl (1
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/ed/35/a31aed2993e398f6b09a790a181a7927eb14610ee8bbf02dc14d31677f1c/packaging-23.0-py3-none-any.whl (1
Resolving dependencies... (745.0s)

and with -vvv:

(Final_Touch) sbommer@tux18psy:~/niwidgets$ poetry install -vvv
Using virtualenv: /home/sbommer/miniconda3/envs/Final_Touch
Updating dependencies
Resolving dependencies...
   1: fact: niwidgets is 0.2.2
   1: derived: niwidgets
   1: fact: niwidgets depends on ipywidgets (*)
   1: fact: niwidgets depends on nibabel (*)
   1: fact: niwidgets depends on ipyvolume (*)
   1: fact: niwidgets depends on matplotlib (*)
   1: fact: niwidgets depends on numpy (*)
   1: fact: niwidgets depends on scipy (*)
   1: fact: niwidgets depends on nilearn (*)
   1: fact: niwidgets depends on scikit-learn (*)
   1: fact: niwidgets depends on jupyterlab (*)
   1: fact: niwidgets depends on pytest (*)
   1: fact: niwidgets depends on sphinx (*)
   1: fact: niwidgets depends on nbsphinx (*)
   1: fact: niwidgets depends on jupyter_sphinx (*)
   1: fact: niwidgets depends on m2r (*)
   1: fact: niwidgets depends on pytest-cov (*)
   1: fact: niwidgets depends on coveralls (*)
   1: fact: niwidgets depends on sphinx_rtd_theme (*)
   1: selecting niwidgets (0.2.2)
   1: derived: sphinx_rtd_theme
   1: derived: coveralls
   1: derived: pytest-cov
   1: derived: m2r
   1: derived: jupyter_sphinx
   1: derived: nbsphinx
   1: derived: sphinx
   1: derived: pytest
   1: derived: jupyterlab
   1: derived: scikit-learn
   1: derived: nilearn
   1: derived: scipy
   1: derived: numpy
   1: derived: matplotlib
   1: derived: ipyvolume
   1: derived: nibabel
   1: derived: ipywidgets
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS

Not going anywhere from here. ( I got stuck at the same spot when having specific versions as dependencies)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants