-
Notifications
You must be signed in to change notification settings - Fork 80
Could not build wheels for oracledb, which is required to install pyproject.toml-based project #264
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
Comments
You don't need/want 1.0.3. It has the same support but without the good behavior of failing gracefully with the DPY-3022. You should use the latest version and use a numeric timezone offset in Thin mode. Or use Thick mode. |
Thanks for your reply. Tried using a numeric timezone offset in Thin mode. but still the same. Is there any other way to fix this? |
Same what? Share some code and your environment setup so we can help further. |
I tried something like this in oracle config function; 'connection_details' : { Still get the same error while trying to connect to oracledb via jupyter notebook in my anaconda environment. DPY-3022: named time zones are not supported in thin mode. & Building wheel for oracledb (pyproject.toml) did not run successfully. Unfortunately, I need to use thin mode. I just somehow need to install 1.0.3 |
You should be able to simply do Please be aware, however, that versions earlier than 1.3.0 won't raise an error when a named time zone is detected -- but they also won't return correct data! Your dictionary of |
Hi Anthony, thanks for your reply. I did everything to install version 1.0.3. One of my team member could able to install the package and he didnt report any data loss after connecting to the db. I am not sure why I cant do the pip when others can!. I can share the below but not sure it demonstrates my problem well ; oracle_config = { |
To reiterate: don't use 1.0.3 because you can lose data. Try setting the environment variable |
Not sure where I can set this environment variable to a numeric offset! Could you pls advise? |
Here is one resource https://oracle-base.com/articles/misc/setting-database-time-zones-in-oracle#ora_sdtz |
thanks. should I add these into system variables or user variables? I am using 64 bit windows machine set ORA_SDTZ='Europe/London' |
I am not a Windows user. It might depend how your app runs. You would only execute one of those calls: the one with numeric value. Use the value you desire for your location or purposes. |
ok. should it be ORA_SDTZ='+11:00' or ORA_SDTZ=+11:00 |
Unfortunately it didnt resolve my issue. still experiencing the same issue |
Since we don't know your code, or the actual error, there's not anything else for us to suggest. Of course, if you want to share useful details, then we can certainly help. |
Closing - no update |
hi Dockerfile FROM python:3.11.0-alpine RUN apk update copy requirements.txt ./ Ran the following command error: Failed to build oracledb |
I was trying to install a specific of oracledb==1.0.3 via Anaconda Prompt by running the following script
pip install oracledb==1.0.3
I have created a virtual environment where I was trying to install that specific package.
with the latest version I am getting this error "time zones are not supported in thin mode". Therefore, need to install 1.0.3
I m getting following error.,
Failed to build oracledb
ERROR: Could not build wheels for oracledb, which is required to install pyproject.toml-based projects
and
DPY-3022: named time zones are not supported in thin mode
I need to run it in thin client
Any help would be appreciated
The text was updated successfully, but these errors were encountered: