Closed Daiiszuki closed 2 years ago
Strange because the exact same code ran without errors previously.
Using the cctx downloader I get
ValueError: time data '2018-01-1' does not match format '%Y%m%d %H:%M:%S'
Then tried changing args
START_TRAIN = '2018-01-01 00:00:00'
#Training end
END_TRAIN = '2020-12-01 00:00:00'
#Trading start
START_TRADE = '2020-12-01 00:00:00'
#Trading end
END_TRADE = '2022-06-01 00:00:00'
Output:
ValueError: time data '2018-01-1 0:0:0' does not match format '%Y%m%d %H:%M:%S'
pls use the format of date: '2018-01-01' and use the format of time interval '1d' instead of '1D'. then it works.
Thank you. rookie mistake
By the way, is there a finRL discord or telegram?
2.On the list of usable indicators, or rather how to use them. e,g those that require ohlc
We do have a discord channel! Please use the following link: https://discord.gg/CcDgRupu By the way, there are more people in our slack channel and welcome to join us: https://join.slack.com/t/ai4financeworkspace/shared_invite/zt-1h2vj05oy-oVNrrbOabXmfR6Ke_FCxGg
@ZiyiXia any suggestions for this;
ModuleNotFoundError Traceback (most recent call last)
[<ipython-input-11-91a7710ee446>](https://localhost:8080/#) in <module>
41 ]
42
---> 43 processorObj = DataProcessor(data_source = 'binance', start_date= START_TRAIN, end_date =END_TRADE, time_interval=TIME_INTERVAL )
44 processorObj.download_data(LIST_OF_SYMBOLS)
45 processorObj.clean_data()
1 frames
[/FinRL-Meta/meta/data_processor.py](https://localhost:8080/#) in __init__(self, data_source, start_date, end_date, time_interval, **kwargs)
38
39 elif self.data_source == "binance":
---> 40 from meta.data_processors.binance import Binance
41
42 processor_dict = {self.data_source: Binance}
[/FinRL-Meta/meta/data_processors/binance.py](https://localhost:8080/#) in <module>
10 import pandas as pd
11 import requests
---> 12 from _base import check_date
13
14 from meta.config import BINANCE_BASE_URL
ModuleNotFoundError: No module named '_base'
It was alright just yesterday
Running on colab. What are some potential causes?fixes?
@Daiiszuki pls test it again. we updated the code
AttributeError Traceback (most recent call last)
6 frames /usr/local/lib/python3.7/dist-packages/gym/envs/registration.py in load_env_plugins(entry_point) 248 def load_env_plugins(entry_point="gym.envs"): 249 # Load third-party environments --> 250 for plugin in metadata.entry_points().get(entry_point, []): 251 # Python 3.8 doesn't support plugin.module, plugin.attr 252 # So we'll have to try and parse this ourselves
AttributeError: 'EntryPoints' object has no attribute 'get'
Before I commented outfrom finrl.meta.preprocessor.preprocessors import FeatureEngineer, data_split
AttributeError Traceback (most recent call last)
6 frames /usr/local/lib/python3.7/dist-packages/gym/envs/registration.py in load_env_plugins(entry_point) 248 def load_env_plugins(entry_point="gym.envs"): 249 # Load third-party environments --> 250 for plugin in metadata.entry_points().get(entry_point, []): 251 # Python 3.8 doesn't support plugin.module, plugin.attr 252 # So we'll have to try and parse this ourselves
Imports:
from finrl.meta.data_processors.processor_yahoofinance import YahooFinanceProcessor
from finrl.meta.preprocessor.preprocessors import FeatureEngineer, data_split
from finrl.agents.stablebaselines3.models import DRLAgent as cryptoTrader from meta.data_processor import DataProcessor from re import LOCALE import gym from gym.utils import seeding
from gym import spaces import pandas as panda import matplotlib.pyplot as plt import numpy as np
from datetime import datetime
from stable_baselines3.common.vec_env import DummyVecEnv
from finrl.meta.preprocessor.preprocessors import data_split ,FeatureEngineer
from finrl.agents.stablebaselines3.models import DRLAgent as cryptoTrader
Strangely import gym
returns the same error any suggestions?
import gym
runs with no issue in a fresh notebook
upon running
!pip install git+https://github.com/AI4Finance-LLC/FinRL-Library.git
The error appears.
Any recommendations?
I based an entire project fin-rl. Not much time to pivot
I'm using the meta Dataprocessor
When I run the following :
I get :
Even when I try defining the list as
['ADAUSDT']
,I still get the error@zhumingpassional @BruceYanghy @XiaoYangLiu-FinRL
Please assist