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

Importing QGL code gives noisy errors #49

Open
ahelsing opened this issue Jun 19, 2019 · 0 comments
Open

Importing QGL code gives noisy errors #49

ahelsing opened this issue Jun 19, 2019 · 0 comments

Comments

@ahelsing
Copy link
Contributor

My code included a spurious QGL1 import:

from QGL.PulsePrimitives import Y

Errors are long (~700 lines), noisy, not helpful:

not_main:16: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
not_main:2: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
....
falling back on __name__ and __path__
<unknown>:136: DeprecationWarning: invalid escape sequence \o
<string>:136: DeprecationWarning: invalid escape sequence \o
not_main:12: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
...
error: import of [../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:16:0: error: in ../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py [
from . import PulseShapes
] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:16:0: warning: cannot evaluate exprs in a relative import [None]
error: import of [../../../../Projects/Quantum/QGL/QGL/__init__.py] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/__init__.py:1:0: error: in ../../../../Projects/Quantum/QGL/QGL/__init__.py [
from .Channels import Qubit
from .Channels import Measurement
from .Channels import Edge
.....
] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/__init__.py:1:0: warning: cannot evaluate exprs in a relative import [Channels]
error: import of [../../../../Projects/Quantum/QGL/QGL/Channels.py] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/Channels.py:24:0: error: in ../../../../Projects/Quantum/QGL/QGL/Channels.py [
from . import config
] failed: No module named 'not_main'
...
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:18:0: warning: cannot evaluate exprs in a relative import [None]
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:19:0: error: in ../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py [
from . import config
] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:19:0: warning: cannot evaluate exprs in a relative import [None]
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:24:0: error: in ../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py [
from .PulseSequencer import Pulse
from .PulseSequencer import TAPulse
from .PulseSequencer import CompoundGate
from .PulseSequencer import align
] failed: No module named 'not_main'
../../../../Projects/Quantum/QGL/QGL/PulsePrimitives.py:24:0: warning: cannot evaluate exprs in a relative import [PulseSequencer]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant