-
Notifications
You must be signed in to change notification settings - Fork 4
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
Some wheels published fail to install with "BadZipFile - Bad CRC-32 for file" #531
Comments
Starting in the repo root directory, running either of the following
Then this setup
Makes this complete successfully
... since this is the case, maybe we can override the |
+1 - there seems to be the same issue for the recently released Can you please yank out the broken files from the PyPI release? |
The wheel installation fails on Windows Python 3.12 with `Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cp312-win_amd64.pyd'` Revert after the fix of rigetti/qcs-sdk-rust#531
The wheel installation fails on Windows Python 3.12 with `Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cp312-win_amd64.pyd'` Revert after the fix of rigetti/qcs-sdk-rust#531
The installation of `qcs-sdk-python==0.21.11` fails on Linux Python 3.12 with `zlib.error: Error -3 while decompressing data: invalid block type`. Block new versions of qcs-sdk-python until this gets sorted out. Ref: rigetti/qcs-sdk-rust#531
This seems to be happening for the recent release 0.21.11 as well: $ wget 'https://files.pythonhosted.org/packages/a3/f3/8c346e87159ca2216dfb8fd8fcec19bd2247f1ca23ab36af086bba24b25b/qcs_sdk_python-0.21.11-cp312-cp312-manylinux_2_28_x86_64.whl'
$ unzip qcs_sdk_python-0.21.11-cp312-cp312-manylinux_2_28_x86_64.whl
Archive: qcs_sdk_python-0.21.11-cp312-cp312-manylinux_2_28_x86_64.whl
...
inflating: qcs_sdk/qcs_sdk.cpython-312-x86_64-linux-gnu.so
error: invalid compressed data to inflate
inflating: qcs_sdk_python-0.21.11.dist-info/RECORD Can you please add a zipfile integrity test to the publishing process? |
The installation of `qcs-sdk-python==0.21.11` fails on Linux Python 3.12 with `zlib.error: Error -3 while decompressing data: invalid block type`. Block new versions of qcs-sdk-python until this gets sorted out. Ref: rigetti/qcs-sdk-rust#531
@pavoljuhas https://pypi.org/project/qcs-sdk-python/0.21.12/ should have fixed most of these errors, although some still remain only for the linux python3.9 versions. Can you try to update? Particularly, https://files.pythonhosted.org/packages/ae/8b/1009f78b20b0fd709ab170395daab64329d8cfeed5993d6bd6bba08b4384/qcs_sdk_python-0.21.12-cp312-cp312-manylinux_2_28_x86_64.whl should be fixed. |
The recent release qcs-sdk-python-0.21.12 should be fixed per rigetti/qcs-sdk-rust#531. This rolls back quantumlib#7056 and quantumlib#7026
We do not support Python 3.9 so that is not an issue. |
The recent release qcs-sdk-python-0.21.12 should be fixed per rigetti/qcs-sdk-rust#531. This rolls back #7056 and #7026
The installation of `qcs-sdk-python==0.21.13` fails on Linux Python 3.10 with `zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'` Block new versions of qcs-sdk-python until this is fixed. Ref: rigetti/qcs-sdk-rust#531
@jselig-rigetti - we just hit the same issue for the yesterday's release qcs-sdk-python-0.21.13 for Linux Python 3.10. $ pip install --no-deps ./qcs_sdk_python-0.21.13-cp310-cp310-manylinux_2_28_x86_64.whl
...
zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so' Strangely, the wheel file passes
Can you please do a check-up pip-install of your wheels before publishing them on PyPI? |
* Avoid broken wheels for qcs-sdk-python The installation of `qcs-sdk-python==0.21.13` fails on Linux Python 3.10 with `zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'` Block new versions of qcs-sdk-python until this is fixed. Ref: rigetti/qcs-sdk-rust#531 * Also adjust Dockerfile to avoid the bad wheel
* Avoid broken wheels for qcs-sdk-python The installation of `qcs-sdk-python==0.21.13` fails on Linux Python 3.10 with `zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'` Block new versions of qcs-sdk-python until this is fixed. Ref: rigetti/qcs-sdk-rust#531 * Also adjust Dockerfile to avoid the bad wheel
Preinstall a working version of qcs-sdk-python package. Ref: rigetti/qcs-sdk-rust#531 Ref: quantumlib#7126
Preinstall a working version of qcs-sdk-python package. Ref: rigetti/qcs-sdk-rust#531 Ref: #7126
@pavoljuhas apologies, looking at this now - this is has been a tricky one as we are already test-installing the wheels via https://github.com/rigetti/qcs-sdk-rust/blob/main/.github/action-common-python-release/action.yml#L68 |
Thank you for checking. The wheel file also fails integrity test as follows - $ python -m zipfile --test qcs_sdk_python-0.21.13-cp310-cp310-manylinux_2_28_x86_64.whl
The following enclosed file is corrupted: 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'
Done testing Unfortunately, |
@pavoljuhas based on the similarity to https://bugs.python.org/issue32304 I suspect this may be an issue that is particular to uploading, I've opened PyO3/maturin#2499 |
I believe this was a regression caused by https://github.com/rigetti/qcs-sdk-rust/pull/514/files, that is: Both That is to say, if you are publishing two packages with different names because they use different rust feature flags, make sure they are named correctly and their artifact names don't overlap! |
Closing as #531 (comment) is the expected fix. Please re-open if this issue persists. |
* Small fixes. * Update pass_operations_over with fixed conjugated_by * Order the qubit_pauli_map in the output for PauliStringPhasor * Fix coverage * Fix pauli_string_phasor_test. pass_operations_over doesn't necessarily preserve the order of qubits. * Avoid broken wheels for qcs-sdk-python (#7126) * Avoid broken wheels for qcs-sdk-python The installation of `qcs-sdk-python==0.21.13` fails on Linux Python 3.10 with `zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'` Block new versions of qcs-sdk-python until this is fixed. Ref: rigetti/qcs-sdk-rust#531 * Also adjust Dockerfile to avoid the bad wheel * Fix coverage, the num_qubits func in the Faked gate in the test isn't necessary for the test --------- Co-authored-by: Pavol Juhas <[email protected]>
* Small fixes. * Update pass_operations_over with fixed conjugated_by * Order the qubit_pauli_map in the output for PauliStringPhasor * Fix coverage * Fix pauli_string_phasor_test. pass_operations_over doesn't necessarily preserve the order of qubits. * Avoid broken wheels for qcs-sdk-python (#7126) * Avoid broken wheels for qcs-sdk-python The installation of `qcs-sdk-python==0.21.13` fails on Linux Python 3.10 with `zipfile.BadZipFile: Bad CRC-32 for file 'qcs_sdk/qcs_sdk.cpython-310-x86_64-linux-gnu.so'` Block new versions of qcs-sdk-python until this is fixed. Ref: rigetti/qcs-sdk-rust#531 * Also adjust Dockerfile to avoid the bad wheel * Fix coverage, the num_qubits func in the Faked gate in the test isn't necessary for the test --------- Co-authored-by: Pavol Juhas <[email protected]>
Found during rigetti/pyquil#1817
This may only affect some platforms and versions, but can be reproduced by:
docker run -it --platform="linux/x86_64" python:3.9 pip install qcs-sdk-python
Resulting in:
The text was updated successfully, but these errors were encountered: