nipy / niwidgets

Neuroimaging widgets for jupyter notebooks
http://www.nipy.org/niwidgets
Other
84 stars 34 forks source link

Building from source? #73

Open cfhammill opened 3 years ago

cfhammill commented 3 years ago

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 commented 3 years ago

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:

Apologies for the convoluted setup.

cfhammill commented 3 years ago

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

janfreyberg commented 3 years ago

That would be great, thank you!

armaneshaghi commented 2 years ago

@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 commented 10 months ago

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)