You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 .
orpython setup.py install
and even simplypython setup.py --version
.The issue is with how the
__version__
is being maintained viaget_version
. It tries to load theimpyute/__init__.py
file and execute it viaexec
but it doesn't take in to account that packages may have not been installed yet.The text was updated successfully, but these errors were encountered: