RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

Running "python setup.py install" problem ( Linux Mint installation problems (general) ) #109

Closed NickHn94 closed 6 years ago

NickHn94 commented 6 years ago

it did cost me some time to get all the packages and install pyflux, seems like its somehow harder to install under linux mint

so, finally i wanted to test-start the project ( btw i'm new to python, just moved from weka over )

Traceback (most recent call last): File "/home/nicklas/Downloads/pyflux-master/pyflux/__check_build/init.py", line 54, in from ._check_build import check_build ImportError: attempted relative import with no known parent package

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/nicklas/Downloads/pyflux-master/pyflux/check_build/init.py", line 56, in raise_build_error(e) File "/home/nicklas/Downloads/pyflux-master/pyflux/__check_build/init__.py", line 51, in raise_build_error msg=msg)) ImportError: attempted relative import with no known parent package


Contents of /home/nicklas/Downloads/pyflux-master/pyflux/__check_build: _check_build.pyx build setup.py init.py


It seems that the pyflux has not been built correctly. If you have installed pyflux from source, please do not forget to build the package before using it: run python setup.py install in the source directory.

If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.

so i run "python setup.py install"

gcc: error: _check_build.c: Datei oder Verzeichnis nicht gefunden gcc: fatal error: no input files compilation terminated. error: Command "gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/nicklas/anaconda3/lib/python3.5/site-packages/numpy/core/include -I/home/nicklas/anaconda3/include/python3.5m -c _check_build.c -o build/temp.linux-x86_64-3.5/_check_build.o -MMD -MF build/temp.linux-x86_64-3.5/_check_build.o.d" failed with exit status 1

seems like _check_build.c is missing

what does that mean? what did i wrong? btw i've got python 3.5 and 2.7 and anaconda .

when trying to run init.py

/usr/bin/python3.5 /home/nicklas/Downloads/pyflux-master/pyflux/check_build/init.py Traceback (most recent call last): File "/home/nicklas/Downloads/pyflux-master/pyflux/__check_build/init__.py", line 54, in from ._check_build import check_build SystemError: Parent module '' not loaded, cannot perform relative import

Any help is helpful and appreciated , i just want to get it working so i can finally start using and develop :D

RJT1990 commented 6 years ago

Hard for me to tell without knowing the specifics of your installation (Anaconda/gcc/etc).