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

Setup.py file not correctly specified #84

Open
dmitrypolo opened this issue Jul 31, 2019 · 0 comments
Open

Setup.py file not correctly specified #84

dmitrypolo opened this issue Jul 31, 2019 · 0 comments

Comments

@dmitrypolo
Copy link
Contributor

Python Version: Python 3.6.5
System: MacOS

When cloning this repo and trying to install it in a brand new environment with nothing installed yet, it fails when running pip install . or python setup.py install and even simply python setup.py --version.

    ▲ = python setup.py install
Traceback (most recent call last):
  File "setup.py", line 31, in <module>
    version=get_version(),
  File "setup.py", line 23, in get_version
    exec(version_file.read(), globals())
  File "<string>", line 23, in <module>
  File "/Users/me/Desktop/repos/impyute/impyute/__init__.py", line 23, in <module>
    from impyute.imputation.cs import mean
  File "/Users/me/Desktop/repos/impyute/impyute/imputation/cs/__init__.py", line 3, in <module>
    from .random import random
  File "/Users/me/Desktop/repos/impyute/impyute/imputation/cs/random.py", line 2, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

The issue is with how the __version__ is being maintained via get_version. It tries to load the impyute/__init__.py file and execute it via exec but it doesn't take in to account that packages may have not been installed yet.

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

1 participant