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

pip installation not working #42

Closed
kain88-de opened this issue Jun 5, 2018 · 5 comments
Closed

pip installation not working #42

kain88-de opened this issue Jun 5, 2018 · 5 comments
Assignees
Labels
bug installation installing the package and its dependencies

Comments

@kain88-de
Copy link
Member

Expected behaviour

installation works

Actual behaviour

ImportError: No module named 'pmda'

Code to reproduce the behaviour

conda create -n test --yes
source activate test
pip install pmda
python -c 'import pmda'
@orbeckst
Copy link
Member

orbeckst commented Jun 7, 2018

For pip-installing the wheel or the tar only installspmda-0.1.0.dist-info

pip uninstall pmda
Uninstalling pmda-0.1.0:
  /Users/oliver/anaconda3/envs/pmda/lib/python3.6/site-packages/pmda-0.1.0.dist-info/INSTALLER
  /Users/oliver/anaconda3/envs/pmda/lib/python3.6/site-packages/pmda-0.1.0.dist-info/METADATA
  /Users/oliver/anaconda3/envs/pmda/lib/python3.6/site-packages/pmda-0.1.0.dist-info/RECORD
  /Users/oliver/anaconda3/envs/pmda/lib/python3.6/site-packages/pmda-0.1.0.dist-info/WHEEL
  /Users/oliver/anaconda3/envs/pmda/lib/python3.6/site-packages/pmda-0.1.0.dist-info/top_level.txt
Proceed (y/n)? y
  Successfully uninstalled pmda-0.1.0

The tar file does not contain code:

tar tvf pmda-0.1.0.tar.gz
drwxr-xr-x  0 oliver staff       0 May 11 11:16 pmda-0.1.0/
-rw-r--r--  0 oliver staff      47 May  9 16:41 pmda-0.1.0/MANIFEST.in
-rw-r--r--  0 oliver staff    6273 May 11 11:16 pmda-0.1.0/PKG-INFO
-rw-r--r--  0 oliver staff    3888 May 11 08:31 pmda-0.1.0/README.rst
drwxr-xr-x  0 oliver staff       0 May 11 11:16 pmda-0.1.0/pmda/
-rw-r--r--  0 oliver staff     497 May 11 11:16 pmda-0.1.0/pmda/_version.py
drwxr-xr-x  0 oliver staff       0 May 11 11:16 pmda-0.1.0/pmda.egg-info/
-rw-r--r--  0 oliver staff    6273 May 11 11:16 pmda-0.1.0/pmda.egg-info/PKG-INFO
-rw-r--r--  0 oliver staff     211 May 11 11:16 pmda-0.1.0/pmda.egg-info/SOURCES.txt
-rw-r--r--  0 oliver staff       1 May 11 11:16 pmda-0.1.0/pmda.egg-info/dependency_links.txt
-rw-r--r--  0 oliver staff      33 May 11 11:16 pmda-0.1.0/pmda.egg-info/requires.txt
-rw-r--r--  0 oliver staff       1 May 11 11:16 pmda-0.1.0/pmda.egg-info/top_level.txt
-rw-r--r--  0 oliver staff     373 May 11 11:16 pmda-0.1.0/setup.cfg
-rw-r--r--  0 oliver staff    2174 May 11 08:31 pmda-0.1.0/setup.py
-rw-r--r--  0 oliver staff   68611 May  9 16:41 pmda-0.1.0/versioneer.py

There must be an issue with the setup.py.

@orbeckst orbeckst self-assigned this Jun 7, 2018
orbeckst added a commit that referenced this issue Jun 7, 2018
- fix #42
- CHANGELOG: make this a quick 0.1.1
@orbeckst orbeckst mentioned this issue Jun 7, 2018
4 tasks
@orbeckst
Copy link
Member

orbeckst commented Jun 7, 2018

I have a fix in PR #43. If you're ok with it I'll quickly ship a 0.1.1 today.

@orbeckst orbeckst added bug installation installing the package and its dependencies labels Jun 7, 2018
@kain88-de
Copy link
Member Author

Thanks. Please go ahead with the release.

@orbeckst
Copy link
Member

orbeckst commented Jun 7, 2018

I published 0.1.1 and it is visible at https://pypi.org/project/pmda/

However, pip-installing does not find it at the moment:

$ pip install pmda==0.1.1
Collecting pmda==0.1.1
  Could not find a version that satisfies the requirement pmda==0.1.1 (from versions: 0.1.0rc1, 0.1.0)
No matching distribution found for pmda==0.1.1
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Installing the local whl works fine.

@orbeckst
Copy link
Member

orbeckst commented Jun 8, 2018

Tried it again and it works now. Maybe pypi just needed an hour... all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installation installing the package and its dependencies
Projects
None yet
Development

No branches or pull requests

2 participants