Hello,
I am struck at the following step.
from data_modules.quantrautil import get_quantinsti_api_key
api_key = get_quantinsti_api_key()
post running above code, getting the following error;
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-150-97156e0b5c49> in <module>()
----> 1 from data_modules.quantrautil import get_quantinsti_api_key
2 api_key = get_quantinsti_api_key()
ModuleNotFoundError: No module named 'data_modules'
I am not a techie and need your support to overcome this hurdle. can someone help me in simple language
Please note i am doint the code using colab.research.google.com
Regards,
SAndeep
Hi Sandeep,
The notebooks will take considerable effort to run on Google Colab. As mentioned in the course, please install Anaconda on your local system to run the notebooks easily.
You can refer to this blog (or the ReadMe.html in the downloadable zip file) to help you get started in no time!
Do let me know if that helps you!
Thanks,
Gaurav
Hi Gaurav,
I am still getting the same error.
I ran this code :
conda env create -f https://quantra.quantinsti.com/downloads/machinelearning/environment.yml
It gave an error :
failed
CondaEnvException: Pip failed
Then I ran this code: conda env create -f https://quantra.quantinsti.com/downloads/general/environment.yml
This executed well, then I activated conda activate quantra_py
I am getting the same error:
ModuleNotFoundError: No module named 'data_modules'
Will appreciate your reply because I have four courses to work on.
Thanks & Regards
Hi Saurabh,
As you mentioned, I tried the code "conda env create -f Learn algorithmic trading from top institutions and experts | Quantra by QuantInsti; which you had mentioned that you got an error. It ran on my system, but I tried looking for similar issues with others and it seems sometimes installing pip dependencies take time and might time out. In simple words, there might be too many people installing from pip. Since the machine learning environment has libraries which are heavy in size, it might be that.
Regarding the second issue of data modules not found, there is a simple way to get around that. You can download the code files from the last section of the quantra course you are working on.
Then extract it to a folder.
Personally speaking, I put all my code files in the directory where I have installed Python and Anaconda navigator. For me, it will be C drive -> Users-> Rekhit.
Once the files are placed in the folder, you can simply run the file you are working on and it should work.
I believe sometimes we download the notebook directly. But we forget that the data file has also to be downloaded, which is in the data_modules folder.
Once you download all the files from the last section, they should work,
Let me know if this helped.
Thanks.