Comments (9)
well - best look at the directory the error tells you:
/home/tyson/freqtrade/user_data/strategies/
It's most likely a problem with system level permissions (you cloned / copied it with sudo / root - and are now running freqtrade as normal user.
it most likely can be solved by something like sudo chown tyson: /home/tyson/freqtrade/user_data/ -R
(assuming your user is tyson and you're running it as tyson) - but the file is there otherwise this error should not pop up.
One alternative is that you've got *.pyc / __pycache__
files in that folder - but i've never seen that cause a problem with loading strategy.
from freqtrade-strategies.
Thanks for the quick reply!
That was my thought too, but in that directory (the user_data/strategies directory), there is no Strategy005 file, and I don't understand why it is trying to get access to that file anyways. There is no mention of Strategy005 in the file I'm trying to backtest (just the ReinforcedSmoothScalp strategy from the Berlinguyinca files).
I used the sudo chown ..... -R command, but no change in the error message.
I also get the same error if I copy the only strategy file that seems to backtest, but change only the name and the class_name.
I'm running an ubuntu virtualenv with Python 3.8.
from freqtrade-strategies.
your best bet might be to remove all __pycache__
folders...
you can find them using find . -iname __pycache__
- and hope it's something to do with caching ...
from freqtrade-strategies.
Any other thoughts on this issue? I keep running into it over and over again.
I have reinstalled freqtrade multiple times, uninstalled and reinstalled Ubuntu multiple times. I updated my Windows Visual Studios and SDK software.
But still I can run a couple backtests, but then it eventually gives me the Errno 13 and nothing can fix it. This particular time it is for the config.json. If I initialize a new config file, then it will tell me that the Errno is for a strategy file that doesn't exist.
I have used py3clean . in between almost every backtest because I noticed that the backtest results weren't changing unless I cleared all the cache files, even though I had changed significant parts of the config or strategy.
Fatal exception! Traceback (most recent call last): File "/home/chief/freqtrade/freqtrade/main.py", line 36, in main return_code = args'func' File "/home/chief/freqtrade/freqtrade/commands/list_commands.py", line 68, in start_list_strategies config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE) File "/home/chief/freqtrade/freqtrade/configuration/config_setup.py", line 19, in setup_utils_configuration config = configuration.get_config() File "/home/chief/freqtrade/freqtrade/configuration/configuration.py", line 41, in get_config self.config = self.load_config() File "/home/chief/freqtrade/freqtrade/configuration/configuration.py", line 94, in load_config config: Dict[str, Any] = self.load_from_files(self.args.get("config", [])) File "/home/chief/freqtrade/freqtrade/configuration/configuration.py", line 73, in load_from_files config = deep_merge_dicts(load_config_file(path), config) File "/home/chief/freqtrade/freqtrade/configuration/load_config.py", line 48, in load_config_file with open(path) if path != '-' else sys.stdin as file: PermissionError: [Errno 13] Permission denied: 'config.json'
from freqtrade-strategies.
one thing i don't understand - your paths suggest you're using macos/linux - but you mention windows above...
so how's your installation look like in detail?
from freqtrade-strategies.
from freqtrade-strategies.
which version of WSL are you using? 1 or 2? (2 is only available on the VERY latest version of windows).
When using WSL - you must be careful how you edit and access your files.
The files are available in native windows programs too (in a subdirectory somewhere) - but editing them this way will mess up and break permissions - so the best is to use WSL - and when editing files, use vim or VSCode (with the WSL extension) - so the files are opened as native linux files.
Also - you might want to exclude this directory from antivirus - it can lock files at certain points - and since .py / .pyc files are executable files, antivirus is .... not always happy to have them there (depending on the antivirus product).
from freqtrade-strategies.
from freqtrade-strategies.
using atom is not wrong - you just need to look out as to how it's accessing the folder (via windows, or via linux api's).
Most editors do it via windows (also vscode, withou the wsl extension).
using a mix is never good, as the permission systems are simply not compatible
from freqtrade-strategies.
Related Issues (20)
- GodStra strat can't find ta module HOT 3
- How to get funding rate to use as indicator on freqtrade HOT 8
- Volatility Strategy HOT 2
- Lookahead for Strategy002 and 004 HOT 5
- cannot use the timeframe i want HOT 4
- GodStra not results available HOT 1
- GodStraHo: Impossible to load Strategy 'GodStraHo'. This class does not exist or contains Python code errors.
- GodStraHo: Impossible to load Strategy 'GodStraHo'. This class does not exist or contains Python code errors. #294 HOT 3
- Unable to retrieve candlestick information from dataframe HOT 1
- BB_RSI_ATR HOT 5
- Momentum Strategy HOT 4
- ta not installing on Google cloud instance and all futures strategies are not working HOT 3
- No module named 'ta' HOT 1
- incorrect times displayed in FreqUI HOT 4
- AlphaTrend Strategy HOT 3
- Error using MACD indicator from qtpylib indicators.py
- WARNING - Unable to analyze candle (OHLCV) data for pair {pair}: Dataframe returned from strategy has mismatching last close price. HOT 2
- finta problem HOT 2
- supertrend different timeframe
- strategy won't work with live trading in binance futures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freqtrade-strategies.