[Errno 2] No such file or directory
-
@yshen said in [Errno 2] No such file or directory:
"TypeError: super(type, obj): obj must be an instance or subtype of type."
Have you modified the yahoo.py in source ? Or copied the yahoo.py to your own project ? If you do - please remove any local copy of yahoo.py from your source and just use the native backtrader package.
-
-
@vladisld that's what it is like.
-
Not sure it is related to the original problem. Probably it could be related to the interaction between backtrader and Anaconda environment.
I found the similar error was reported when using Anaconda environment see here. Could it be relevant ?
-
@vladisld thanks for your help. After simply restarting everything, it seems to be alright if I have the .csv file in the folder. I assume I have to manually download the files beforehand, is that right?
-
@yshen said in [Errno 2] No such file or directory:
I assume I have to manually download the files beforehand, is that right?
If you are using
YahooFinanceData
it should download the data from Yahoo site automatically. No need to pre-download it manually.You may also use the
YahooFinanceCSVData
to just load the pre-downloaded .csv files. -
@vladisld right, everything is now fixed. I really apprexiate your help.