-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ModuleNotFoundError: No module named 'XXXXX'. version 2018.6.25 #2421
Comments
I've had the same error after upgrading to v2018.6.25. |
Could you share your |
Hi @ikosenn, thanks for using pipenv! In addition to the setup.py can we see the directory structure? |
I'm having the exact same issue: ModuleNotFoundError: No module named 'versioneer' See https://gist.github.com/seglberg/97c47832d2997d47b345c189fbb1aad4 |
@seglberg is your repo public and something I could pull down for testing? I can't seem to replicate the issue. |
No, it is private. I can create a sample repository that reproduces the error. Hang tight. |
I would first point out it is against best practice to import your library in its I would recommend adopting on of the top solutions mentioned in the Python Packaging User Guide. |
See https://github.com/seglberg/pipenv-repro We are not importing any of the package's modules inside setup, we import a top-level, standalone module which generates our version information. My initial thought is that its a python path issue. |
Ah, I see, sorry for the misunderstanding. Indeed this seems to be a path issue. Also we should probably be more resilient when reading the package name. |
If I modify my setup.py, it works: HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.append(HERE)
import versioneer So definitely a path issue. |
Thanks for the reports all, fix will be out shortly |
Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
Update requirementslib to fix #2421
Well done for getting a fix in the master out so quickly. |
After updating to version: 2018.6.25. I get the error as shown in the image attached.
facematic
is the package name in setup.py. I get the error while running the commandpipenv install -e .
Steps to replicate
pipenv install -e .
The text was updated successfully, but these errors were encountered: