Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

[BUG] Package installation errors when installing Nistats0.0.1b from TestPyPI #269

Closed
kchawla-pi opened this issue Oct 9, 2018 · 6 comments

Comments

@kchawla-pi
Copy link
Collaborator

kchawla-pi commented Oct 9, 2018

When doing a test release on TestPyPI

bertrand@laptop:/tmp$ python3 -m pip install --index-url
https://test.pypi.org/simple/ nistats_bthirion
Collecting nistats_bthirion
   Using cached
https://test-files.pythonhosted.org/packages/25/79/ec342dd4cde62d6cea16d424fe1a939cff0f203e2b08a4cd67679ba6dfa1/nistats_bthirion-0.0.1b0-py3-none-any.whl
Collecting pandas>=0.18.0 (from nistats_bthirion)
   Could not find a version that satisfies the requirement
pandas>=0.18.0 (from nistats_bthirion) (from versions: )
No matching distribution found for pandas>=0.18.0 (from nistats_bthirion)
@kchawla-pi
Copy link
Collaborator Author

@bthirion Take a look at this: pandas-dev/pandas#20697
Which python version are you using? 3.4? Does 3.5 have the same problem?
Does conda also have this problem?

@kchawla-pi
Copy link
Collaborator Author

kchawla-pi commented Oct 9, 2018

When I do

python3 -m pip install --index-url https://test.pypi.org/simple/ nistats-bthirion

I get

Could not find a version that satisfies the requirement nibabel>=2.0.2 (from nistats-bthirion) (from versions: )
No matching distribution found for nibabel>=2.0.2 (from nistats-bthirion)

Doing a

pip install git+https://github.com/nistats/nistats.git

does not give an error.

@kchawla-pi
Copy link
Collaborator Author

I built the wheels for the package and install that:

python setup.py sdist bdist_wheel --universal
pip install nistats-0.0.1b0-py2.py3-none-any.whl

No erros.

@kchawla-pi
Copy link
Collaborator Author

I created a brand new environment using venv+pip (which I installed using apt) and then redid the installation of the local wheel. It ultimately completed. However there was a point where it failed to build nibabel from the wheel, and seems to have installed from source instead.
The output log:

Building wheels for collected packages: nibabel                                                                                                                                               
  Running setup.py bdist_wheel for nibabel ... error                                                                                                                                          
  Complete output from command /home/kshitij/workspace/nistats-org/nistats-repo/nistats-pandas-3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yagttmtm/nibabel/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpfqh6ik70pip-wheel- --python-tag cp36:                                                                                                                                                                                         
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]                                                                                                                             
     or: -c --help [cmd1 cmd2 ...]                                                                                                                                                            
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  Failed building wheel for nibabel
  Running setup.py clean for nibabel
Failed to build nibabel
Running setup.py install for nibabel ... done
Successfully installed nibabel-2.3.0 nilearn-0.4.2 nistats-0.0.1b0 numpy-1.15.2 pandas-0.23.4 patsy-0.5.0 python-dateutil-2.7.3 pytz-2018.5 scikit-learn-0.20.0 scipy-1.1.0 six-1.11.0

@kchawla-pi kchawla-pi changed the title Pandas installation error when using pip [BUG] Package installation errors when installing Nistats0.0.1b from TestPyPI Oct 9, 2018
@kchawla-pi
Copy link
Collaborator Author

Also got the error with SciPy.

Could not find a version that satisfies the requirement scipy>=0.17 (from nistats-bthirion) (from versions: 0.1)
No matching distribution found for scipy>=0.17 (from nistats-bthirion)

@kchawla-pi
Copy link
Collaborator Author

Seems the error does not happen from the actual PyPI server, only from the test one.

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

No branches or pull requests

1 participant