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

Fix sphinx-alt-text-validator encoding error in Windows #2453

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

arnaucasau
Copy link
Collaborator

The linter had an encoding error when reading the files in Windows:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\qiskit-ibm-runtime\tools\verify_images.py", line 108, in <module>
    main()
  File "c:\qiskit-ibm-runtime\tools\verify_images.py", line 83, in main
    results = pool.map(validate_image, files)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\multiprocessing\pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\multiprocessing\pool.py", line 774, in get
    raise self._value
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 1420: character maps to <undefined>

@arnaucasau arnaucasau marked this pull request as draft December 10, 2024 09:41
@arnaucasau arnaucasau marked this pull request as ready for review December 10, 2024 09:50
@arnaucasau arnaucasau added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 7ae965c Dec 10, 2024
2 checks passed
@arnaucasau arnaucasau deleted the AC/fix-linter-windows branch December 10, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants