QuantSoftware / QuantSoftwareToolkit

QuantSoftwareToolkit
Other
467 stars 215 forks source link

Error : QSTK can not be imported or not installed. #68

Open magick93 opened 8 years ago

magick93 commented 8 years ago

Hello

When I have just installed QSTK, but when I run the Validation.py file, I get an error saying QSTK is not installed.

Below is the terminal output during installation.

Any help is appreciated.

Current Directory :  /home/anton/Documents/software/QSTK/QSTK-0.2.8/Examples

Files in the current directory
EventProfiler
FeatureSearch
DataAccess
Validation.py
KNN
Features
Basic

Numpy is installed and the version used is :  1.8.2
Please make sure you're using version >= 1.6.1

Matplotlib is installed and version is :  1.4.2
Please make sure you're using version >= 1.1.0

Pandas is installed and the version used is :  0.17.1
Please make sure you're using version >= 0.7.3

Scipy is installed and the version used is :  0.14.1
Please make sure you're using version >= 0.9.0

Dateutil is installed and the version used is :  2.2
Please make sure you're using version == 1.5

Setuptools is installed and the version used is :  18.4
Please make sure you're using version >= 0.6

datetime is installed and can be imported

All dependencies are installed and working

Error : QSTK can not be imported or not installed.
anton@anton-K93SV:~/Documents/software/QSTK/QSTK-0.2.8/Examples$ 
attibalazs commented 8 years ago

I`m having the same issue. Any ideas ?

attibalazs commented 8 years ago

It works if i am in the main directory but not if i change the current directory to "Examples". It has to do with the python path, you need to add a reference to the QSTK library to the path before it can be imported as a library in the project. When you are in the main folder the library is there in the QSTK subfolder so it works.

flag23 commented 7 years ago

edit the Validation.py file by adding the following line after import sys sys.path.append('../../QSTK-0.2.8')