scikit-spectra
scikit-spectra copied to clipboard
skspec build fails under Anaconda Python 3.6.8
My Environment: . Linux Ubuntu: 17.10 . Anaconda Python: 3.6.8 . Scikit-spectra from Git master source
I've tried to install the scikit-spectra under Anaconda Python 3.6.8 and after fixing some import issues, I've got the following runtime error:
Error: module.__init__() takes at most 2 arguments (3 given) at module skspec/units/tempunits.py",
The error occurs when running the package import statement: from skspec import *
File "/home/claude/anaconda3/lib/python3.6/site-packages/scikit_spectra-0.3.2.post1-py3.6.egg/skspec/units/tempunits.py", line 15, in <module>
class TempUnit(ConversionUnit):
These type of error message might be related to the import preference and class heritage behavior of the Python 3:
TypeError: module.__init__() takes at most 2 arguments (3 given)
In order to avoid startup errors, indeed I needed to add a few import fixes pointing to "." as well as to separate a module named: ConversionUnit.py under the skspec/unit directory.
Did somebody execute a successful build of the skspec (scikit-spectra) package under the latest Anaconda Python versions? Any hint or feedback how to fix this error is welcome. the package looks very promising due to its open-source nature. The error seems to be related with #121.