-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 11 installation #51
Comments
I am getting these error, keras should be installed along with tensorflow but somehow still unable to detect the version. 2024-03-01 14:04:10,656 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance" 2024-03-01 14:04:24,458 - tensorflow - WARNING - From C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\CompressionAutoEncoder.py:43: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead. C:\Users\nelson.kwek\Downloads\freqtrade.venv\lib\site-packages\statsforecast\utils.py:237: FutureWarning: 'M' is deprecated and will be removed in a future version, please use 'ME' instead. NNTC2024-03-01 14:04:49,051 - freqtrade - ERROR - Fatal exception! |
Can someone kind enough to 'pip list' for me so I can try to troubleshoot the issue on windows? |
Hmm, when I run it (on MacOS), I get the following output:
…----------------------
NNTC
----------------------
Software Environment:
freqtrade: 2023.12-dev-fcc87399c
OS Type: darwin (MacOS), Version: macOS-14.2.1-arm64-arm-64bit
python: ['3.11.6 (main, Nov 2 2023, 04:39:43) [Clang 14.0.3
(clang-1403.0.22.14.1)]']
sklearn: 1.1.3
tensorflow: 2.15.0,
devices:[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'),
PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
keras: 2.15.0
pytorch: 2.0.1
lightning: 2.1.2
darts: 0.27.0
Can you check that you have the latest version? The error you have
indicates the following error:
File
"C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\Environment.py",
line 79, in print_environment
keras_version = tf.keras.*version*
AttributeError: module 'keras.api._v2.keras' has no attribute '*version*'
However, the latest version has Environment.py moved to the uitils
directory, and the corresponding line is:
keras_version = keras.__version__
Cheers,
Phil
On Thu, Feb 29, 2024 at 10:06 PM jenovauh ***@***.***> wrote:
I am getting these error, keras should be installed along with tensorflow
but somehow still unable to detect the version.
2024-03-01 14:04:10,656 - freqtrade.exchange.exchange - INFO - Using
Exchange "Binance"
2024-03-01 14:04:13,743 - freqtrade.resolvers.exchange_resolver - INFO -
Using resolved exchange 'Binance'...
2024-03-01 14:04:24,005 - tensorflow - WARNING - From
C:\Users\nelson.kwek\Downloads\freqtrade.venv\lib\site-packages\keras\src\losses.py:2976:
The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use
tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
2024-03-01 14:04:24,458 - tensorflow - WARNING - From
C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\CompressionAutoEncoder.py:43:
The name tf.logging.set_verbosity is deprecated. Please use
tf.compat.v1.logging.set_verbosity instead.
C:\Users\nelson.kwek\Downloads\freqtrade.venv\lib\site-packages\statsforecast\utils.py:237:
FutureWarning: 'M' is deprecated and will be removed in a future version,
please use 'ME' instead.
"ds": pd.date_range(start="1949-01-01", periods=len(AirPassengers),
freq="M"),
------------------------------
NNTC
2024-03-01 14:04:49,051 - freqtrade - ERROR - Fatal exception!
Traceback (most recent call last):
File "C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\main.py", line
42, in main
return_code = args'func' <http://args>
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\commands\optimize_commands.py",
line 58, in start_backtesting backtesting.start()
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\optimize\backtesting.py",
line 1401, in start
min_date, max_date = self.backtest_one_strategy(strat, data, timerange)
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\optimize\backtesting.py",
line 1318, in backtest_one_strategy preprocessed =
self.strategy.advise_all_indicators(data)
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\strategy\interface.py",
line 1378, in advise_all_indicators
return {pair: self.advise_indicators(pair_data.copy(), {'pair':
pair}).copy()
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\strategy\interface.py",
line 1378, in
return {pair: self.advise_indicators(pair_data.copy(), {'pair':
pair}).copy()
File
"C:\Users\nelson.kwek\Downloads\freqtrade\freqtrade\strategy\interface.py",
line 1410, in advise_indicators
return self.populate_indicators(dataframe, metadata)
File
"C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\NNTC.py",
line 394, in populate_indicators Environment.print_environment()
File
"C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\Environment.py",
line 79, in print_environment
keras_version = tf.keras.*version*
AttributeError: module 'keras.api._v2.keras' has no attribute '*version*'
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD4X57YXD32O2NSGAWEURTYWALHRAVCNFSM6AAAAABEAMCLHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZSGU3TANBVGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I guess the issue is tensorflow 2.15.0 stop supporting on windows cmd and cause a lot of weird issue that cannot be resolved at my skill level. Test tensorflow-cpu also and it doesnt work properly. Test with windows WSL ubuntu also giving similiar error. I will try to figure out how to slowly fix the issue. Been testing daily installing and uninstall trying to resolve it. |
Do you mean i have to replace Environment.py from uitils folder to "C:\Users\nelson.kwek\Downloads\freqtrade\user_data\strategies\binance\Environment.py"? |
Anyway after my recent reinstallation for freqtrade and your git repo. I am getting this new error.
So what i did was to remove NNPredictor_Wavenet2.py and see what happen next and i get this error NNTC2024-03-07 12:14:30,729 - freqtrade - ERROR - Fatal exception! |
are you using the latest version? I re-organised the directories a long
time ago. For example, NNTC.py should be in user_data/strategies/ and
Environment.py should be in user_data/strategies/utils
If you moved them all into user_data/strategies/binance, then you need to
change the import statements (because they look in the utils directory)
Cheers,
Phil
…On Wed, Mar 6, 2024 at 8:15 PM jenovauh ***@***.***> wrote:
Anyway after my recent reinstallation for freqtrade and your git repo. I
am getting this new error.
2024-03-07 12:11:09,856 - freqtrade.resolvers.iresolver - WARNING - Could
not import
/home/jenovauh/freqtrade/user_data/strategies/binanceus/NNPredictor_Wavenet2.py
due to 'No module named 'tf''
So what i did was to remove NNPredictor_Wavenet2.py and see what happen
next and i get this error NNTC
2024-03-07 12:14:30,729 - freqtrade - ERROR - Fatal exception!
Traceback (most recent call last):
File "/home/jenovauh/freqtrade/freqtrade/main.py", line 42, in main
return_code = args'func' <http://args>
File "/home/jenovauh/freqtrade/freqtrade/commands/optimize_commands.py",
line 58, in start_backtesting
backtesting.start()
File "/home/jenovauh/freqtrade/freqtrade/optimize/backtesting.py", line
1401, in start
min_date, max_date = self.backtest_one_strategy(strat, data, timerange)
File "/home/jenovauh/freqtrade/freqtrade/optimize/backtesting.py", line
1318, in backtest_one_strategy
preprocessed = self.strategy.advise_all_indicators(data)
File "/home/jenovauh/freqtrade/freqtrade/strategy/interface.py", line
1378, in advise_all_indicators
return {pair: self.advise_indicators(pair_data.copy(), {'pair':
pair}).copy()
File "/home/jenovauh/freqtrade/freqtrade/strategy/interface.py", line
1378, in
return {pair: self.advise_indicators(pair_data.copy(), {'pair':
pair}).copy()
File "/home/jenovauh/freqtrade/freqtrade/strategy/interface.py", line
1410, in advise_indicators
return self.populate_indicators(dataframe, metadata)
File "/home/jenovauh/freqtrade/user_data/strategies/binance/NNTC.py", line
394, in populate_indicators
Environment.print_environment()
AttributeError: module 'Environment' has no attribute 'print_environment'
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD4X5YMAMCS2D35P6PRVCTYW7SXBAVCNFSM6AAAAABEAMCLHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBSGMYTOMZXGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes using the lastest version, I am updating by using git pull. Maybe I will delete all and git clone again and test it out. |
I had remove and git clone your strategies again. After that i am using So i move all the NNTC files into user_data/strategies/binance (.venv) (freq) jenovauh@TPSLTAFTS03:~/freqtrade$ zsh user_data/strategies/scripts/test_strat.sh --short binance NNTC zsh: /home/jenovauh/anaconda3/envs/freq/lib/libtinfo.so.6: no version information available (required by zsh) Using config file: user_data/strategies/binance/config_binance_short.json and Strategy dir: user_data/strategies/binance Fri Mar 8 12:13:23 +08 2024 NNTCSoftware Environment:
Strategy Parameters/Flags
AVAX/USDT:USDT Detected at node CudnnRNN defined at (most recent call last): |
It seems to be a configuration error in your env for tensorflow and the nvidia toolkit, try installing
|
Yes I am pretty sure it is both of them as well. Trying to see which version doesnt cause these error. Sometime it works sometime it doesnt. Also will cause difference strategies having different error. I have tried at least 8 times to redo the env without much success. Still trying when i am free. |
Can I know if anyone manage to install and run on windows 11 native or WSL?
The text was updated successfully, but these errors were encountered: