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

Python 3.13 support #117

Open
thijsvandien opened this issue Oct 17, 2024 · 1 comment
Open

Python 3.13 support #117

thijsvandien opened this issue Oct 17, 2024 · 1 comment

Comments

@thijsvandien
Copy link

Currently fdb won't work using the just released version of Python:

>>> import fdb
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    import fdb
  File "/Users/tvdien/.pyenv/versions/3.13.0/lib/python3.13/site-packages/fdb/__init__.py", line 28, in <module>
    from fdb import gstat
  File "/Users/tvdien/.pyenv/versions/3.13.0/lib/python3.13/site-packages/fdb/gstat.py", line 28, in <module>
    from locale import LC_ALL, LC_CTYPE, getlocale, setlocale, resetlocale
ImportError: cannot import name 'resetlocale' from 'locale' (/Users/tvdien/.pyenv/versions/3.13.0/lib/python3.13/locale.py). Did you mean: 'setlocale'?
@cdr60
Copy link

cdr60 commented Dec 5, 2024

Same trouble
As It's high blocking bug for me, I've temporary fixed it by removing resetlocale from : (I know it's bad !)
#from locale import LC_ALL, LC_CTYPE, getlocale, setlocale, resetlocale
and replacing resetlocale(LOCALE) by setlocale(LOCALE, '')
and be sure to set my locale (fr_FR, UTF-8 for me) then locale[0] will not be None

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

2 participants