I want to develop strategies locally but having problems. Even after activating qntdev, nothing imports. All I see is ModuleNotFoundErrors! Following the instructions here: https://quantiacs.com/documentation/en/user_guide/local_development.html , I still can't get it to work.
I prefer to use the Spyder IDE, but got a bit lost at step 5. What adjustments must I make to get it to work for Spyder IDE?
Best posts made by nosaai
-
Local Development Problems
-
Outdated Libraries
I noticed recently that I was getting the following message on all my strategies:
"The strategy uses outdated libraries. Clone it to update the libraries".
I am not quite sure on how to proceed, please assist.Thanks
Latest posts made by nosaai
-
RE: Collections has no attribute Iterable
@stefanm said in Collections has no attribute Iterable:
pip install progressbar2==3.55.0
Thank you so much @stefanm for support. Yes, it did work. Although on installation I did get these complaints:
qnt 0.0.306 requires tabulate>=0.9.0, but you have tabulate 0.8.10 which is incompatible.
qnt 0.0.306 requires xarray==0.20.2, but you have xarray 0.20.1 which is incompatible.Also, my apologies for the late response. I had to put things aside for a day or so. Once again, thank you.
-
Collections has no attribute Iterable
I have just finished setting up for local development and tried some of the python files to test if it is working. The one I tested was the one that would print out the stock, cryptodaily, futures, and crypto futures. On running it I got the following error: import qnt.data as qndata
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/init.py", line 1, in <module>
from .stocks import load_list as stocks_load_list
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/stocks.py", line 5, in <module>
from qnt.data.common import *
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/common.py", line 20, in <module>
import progressbar
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/init.py", line 4, in <module>
from .shortcuts import progressbar
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/shortcuts.py", line 1, in <module>
from . import bar
File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/bar.py", line 50, in <module>
class ProgressBarBase(collections.Iterable, ProgressBarMixinBase):
AttributeError: module 'collections' has no attribute 'Iterable'I found out that Iterable is no longer in collections but in collections.abc. I tried importing collections.abc but that did not work. Are there any suggestions? Any help would most appreciated.
Thanks -
Install Toolbox on Python 3.9
Is there any way I can install the toolbox on Python 3.9? Please advise; thanks
-
Local Development with Notifications
I successfully installed a things required for local development without a hitch. All seems well and things run except I get the following notifications:
NOTICE: The environment variable DATA_BASE_URL was not specified. The default value is 'https://data-api.quantiacs.io/'
NOTICE: The environment variable CACHE_RETENTION was not specified. The default value is '7'
NOTICE: The environment variable CACHE_DIR was not specified. The default value is 'data-cache'Is there a way to get rid of all this? Maybe I am missing something. Please advise.
-
Local Development Problems
I want to develop strategies locally but having problems. Even after activating qntdev, nothing imports. All I see is ModuleNotFoundErrors! Following the instructions here: https://quantiacs.com/documentation/en/user_guide/local_development.html , I still can't get it to work.
I prefer to use the Spyder IDE, but got a bit lost at step 5. What adjustments must I make to get it to work for Spyder IDE? -
RE: Outdated Libraries
@support Thank you for the prompt response. Time to get on with it. Thanks again.
-
Outdated Libraries
I noticed recently that I was getting the following message on all my strategies:
"The strategy uses outdated libraries. Clone it to update the libraries".
I am not quite sure on how to proceed, please assist.Thanks