Qiskit / qiskit-metapackage

Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.
https://qiskit.org
Apache License 2.0
3.03k stars 750 forks source link

Minor import statement update #1682

Closed SooluThomas closed 1 year ago

SooluThomas commented 1 year ago

Summary

The translation build in qiskit-translations repo errors with the error

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/runner/work/qiskit-translations/qiskit-translations/docs/conf.py", line 27, in <module>
    from docs import custom_extensions
ModuleNotFoundError: No module named 'docs'

Though the reason for why it fails is a bit unclear, changing from docs import custom_extensions to import custom_extensions might fix the issue and can maintain a consistency.

Details and comments