Skip to content
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

SyntaxError: f-string: unmatched '(' #1284

Closed
aleksandryessin opened this issue Oct 21, 2024 · 2 comments
Closed

SyntaxError: f-string: unmatched '(' #1284

aleksandryessin opened this issue Oct 21, 2024 · 2 comments

Comments

@aleksandryessin
Copy link

Describe the bug
/usr/local/lib/python3.10/dist-packages/tensorflow/lite/python/util.py:55: DeprecationWarning: jax.xla_computation is deprecated. Please use the AOT APIs; see https://jax.readthedocs.io/en/latest/aot.html. For example, replace xla_computation(f)(*xs) with jit(f).lower(*xs).compiler_ir('hlo'). See CHANGELOG.md for 0.4.30 for more examples.
from jax import xla_computation as _xla_computation
Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 9, in <cell line: 9>
from finrl.config_tickers import DOW_30_TICKER

File "/usr/local/lib/python3.10/site-packages/finrl/init.py", line 5, in
from finrl.train import train

File "/usr/local/lib/python3.10/site-packages/finrl/train.py", line 10, in
from finrl.meta.data_processor import DataProcessor

File "/usr/local/lib/python3.10/site-packages/finrl/meta/data_processor.py", line 8, in
from finrl.meta.data_processors.processor_yahoofinance import (

File "/usr/local/lib/python3.10/site-packages/finrl/meta/data_processors/processor_yahoofinance.py", line 21, in
import yfinance as yf

File "/usr/local/lib/python3.10/site-packages/yfinance/init.py", line 30, in
from .screener.screener import Screener

File "/usr/local/lib/python3.10/site-packages/yfinance/screener/init.py", line 1, in
from .screener import Screener

File "/usr/local/lib/python3.10/site-packages/yfinance/screener/screener.py", line 101
logger.error(f"Failed to get screener data for '{self._body.get('query', "query not set")}' reason: {e}")
^
SyntaxError: f-string: unmatched '('

To Reproduce
While importing in Colab I got the error. Whe I was running it the first time there was no issue with import.

Locally I got te same issue (VS code, Win 10)
issue

@aleksandryessin
Copy link
Author

Got the answer here:

ranaroussi/yfinance#2093

to fix the issue just go to the yfinance==0.2.44

@aleksandryessin
Copy link
Author

Found bag in yfinance==0.2.45, the code work with yfinance==0.2.44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant