Skip to content

Cannot build from pypi source #495

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

Closed
wojiushixiaobai opened this issue May 17, 2025 · 2 comments
Closed

Cannot build from pypi source #495

wojiushixiaobai opened this issue May 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@wojiushixiaobai
Copy link

wget -O - https://files.pythonhosted.org/packages/9b/97/7d80b2a9345e23a5747af1c86c825f212ad373e77e5708a59963c96e3c2a/oracledb-3.1.1.tar.gz | tar xz --strip-components=1
--2025-05-18 04:14:51--  https://files.pythonhosted.org/packages/9b/97/7d80b2a9345e23a5747af1c86c825f212ad373e77e5708a59963c96e3c2a/oracledb-3.1.1.tar.gz
Resolving files.pythonhosted.org (files.pythonhosted.org)... 2a04:4e42:400::223, 2a04:4e42:600::223, 2a04:4e42::223, ...
Connecting to files.pythonhosted.org (files.pythonhosted.org)|2a04:4e42:400::223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 856323 (836K) [binary/octet-stream]
Saving to: ‘STDOUT’

-                              100%[====================================================>] 836.25K  2.07MB/s    in 0.4s    

2025-05-18 04:14:52 (2.07 MB/s) - written to stdout [856323/856323]


gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
@wojiushixiaobai wojiushixiaobai added the bug Something isn't working label May 17, 2025
@cjbj
Copy link
Member

cjbj commented May 17, 2025

I agree there is something odd at the end of the file.

A workaround is to manually download and install from the .gz file. I.e. run a build chain that ignores the error and continues.

cjones@mac:/tmp/test$ wget https://files.pythonhosted.org/packages/9b/97/7d80b2a9345e23a5747af1c86c825f212ad373e77e5708a59963c96e3c2a/oracledb-3.1.1.tar.gz
--2025-05-18 07:57:24--  https://files.pythonhosted.org/packages/9b/97/7d80b2a9345e23a5747af1c86c825f212ad373e77e5708a59963c96e3c2a/oracledb-3.1.1.tar.gz
Resolving www-proxy.au.oracle.com (www-proxy.au.oracle.com)... 10.187.2.85, 2606:b400:c70:5416::10
Connecting to www-proxy.au.oracle.com (www-proxy.au.oracle.com)|10.187.2.85|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 856323 (836K) [binary/octet-stream]
Saving to: 'oracledb-3.1.1.tar.gz'

oracledb-3.1.1.tar.gz                                      100%[=======================================================================================================================================>] 836.25K  4.25MB/s    in 0.2s    

2025-05-18 07:57:24 (4.25 MB/s) - 'oracledb-3.1.1.tar.gz' saved [856323/856323]


cjones@mac:/tmp/test$ pip install oracledb-3.1.1.tar.gz 
Processing ./oracledb-3.1.1.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cryptography>=3.2.1 in /Users/cjones/.pyenv/versions/3.13.3/lib/python3.13/site-packages (from oracledb==3.1.1) (44.0.3)
Requirement already satisfied: cffi>=1.12 in /Users/cjones/.pyenv/versions/3.13.3/lib/python3.13/site-packages (from cryptography>=3.2.1->oracledb==3.1.1) (1.17.1)
Requirement already satisfied: pycparser in /Users/cjones/.pyenv/versions/3.13.3/lib/python3.13/site-packages (from cffi>=1.12->cryptography>=3.2.1->oracledb==3.1.1) (2.22)
Building wheels for collected packages: oracledb
  Building wheel for oracledb (pyproject.toml) ... done
  Created wheel for oracledb: filename=oracledb-3.1.1-cp313-cp313-macosx_15_0_arm64.whl size=2192132 sha256=d958baad8a6438e8d22258cc1b0c95fd368d484e6703bb0cabee35d7bab8c407
  Stored in directory: /Users/cjones/Library/Caches/pip/wheels/fb/55/7d/086f45b5d8f53a1483858d938e12aefa5db0b46abb010bbb51
Successfully built oracledb
Installing collected packages: oracledb
Successfully installed oracledb-3.1.1

@wojiushixiaobai
Copy link
Author

Thanks, I'll try it. You can close this question at any time.

anthony-tuininga added a commit that referenced this issue May 21, 2025
package independently in order to avoid package corruption (#495).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants