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

PerfTiger119 hitting errors when importing azure.storage.blob #4242

Closed
LoopedBard3 opened this issue May 30, 2024 · 1 comment
Closed

PerfTiger119 hitting errors when importing azure.storage.blob #4242

LoopedBard3 opened this issue May 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@LoopedBard3
Copy link
Member

LoopedBard3 commented May 30, 2024

PerfTiger119 appears to be hitting errors importing azure.storage.blob:

Traceback (most recent call last):
  File "C:\h\w\AD00097E\w\A8140924\e\performance\scripts\benchmarks_ci.py", line 361, in <module>
    main(sys.argv[1:])
  File "C:\h\w\AD00097E\w\A8140924\e\performance\scripts\benchmarks_ci.py", line 349, in main
    import upload
  File "C:\h\w\AD00097E\w\A8140924\e\performance\scripts\upload.py", line 3, in <module>
    from azure.storage.blob import BlobClient, ContentSettings
  File "D:\python3\lib\site-packages\azure\storage\blob\__init__.py", line 11, in <module>
    from ._blob_client import BlobClient
  File "D:\python3\lib\site-packages\azure\storage\blob\_blob_client.py", line 24, in <module>
    from ._shared.encryption import generate_blob_encryption_data
  File "D:\python3\lib\site-packages\azure\storage\blob\_shared\encryption.py", line 15, in <module>
    from cryptography.hazmat.backends import default_backend
ValueError: source code string cannot contain null bytes

This is being seen only on this machine so far and can be found in the failing micro runs in these two pipeline runs:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2463158&view=results https://dev.azure.com/dnceng/internal/_build/results?buildId=2463346&view=results

Taking it out of rotation so we can more fully investigate and to get the few runs green again. (dotnet/dnceng#2977)

FYI: @DrewScoggins @caaavik-msft

@caaavik-msft
Copy link
Contributor

This is now fixed. Somehow the python install on PERFTIGER119 is corrupted with whole packages inside site-packages missing important metadata files and source files being replaced with null bytes. All pip commands that attempted to reinstall these packages were failing because of the missing metadata. With #4339 merged we are now correctly using the python venv so the runs won't break if the machine has any issues with the global site packages.

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

2 participants