Skip to content

OpenQASM runner does not use virtual environment when run from C++ #1725

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

Open
dime10 opened this issue May 7, 2025 · 1 comment
Open

OpenQASM runner does not use virtual environment when run from C++ #1725

dime10 opened this issue May 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@dime10
Copy link
Contributor

dime10 commented May 7, 2025

Our OpenQASM runtime tests fail trying to import required packages when a virtual environment is used and the global environment does not have numpy and amazon-braket-sdk installed:

(new_env) ➜ catalyst git:(main) ✗ make test-runtime

/catalyst/runtime/tests/Test_OpenQasmDevice.cpp:624: FAILED:
due to unexpected exception with message:
  Traceback (most recent call last):
    File "<string>", line 3, in <module>
  ModuleNotFoundError: No module named 'braket.aws'

===============================================================================
test cases:  34 |  28 passed |  6 failed
assertions: 183 | 151 passed | 32 failed

At least this is the behaviour observed on macOS with the official Python installer and the built-in venv module.

@dime10 dime10 added the bug Something isn't working label May 7, 2025
@dime10
Copy link
Contributor Author

dime10 commented May 7, 2025

There are a few possible components that could be responsible here:

It might also be useful to compare some data from our developers using virtual environments on linux and macos.

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

1 participant