You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run mixer calibration (I copied and modified the mixer calibration script that middelware uses for the 11q chip ) for the quantum machine on the qw5q_platinum using 0.1 version of qibolab I get an error with the import of numpy (see attached file). I appears that numpy is trying to import platform which does not exist.
File "/home/users/luca.herrmann/.envs/lbh_dev/lib/python3.10/site-packages/numpy/lib/utils.py", line 8, in<module>
import platform
File "/nfs/users/luca.herrmann/qibolab_platforms_qrc/qw5q_platinum/platform.py", line 3, in<module>
from qibolab.channels import Channel, ChannelMap
Thank you for reporting this. I see from the attached logs that the mixer calibration script is executed from within the qw5q_platinum directory. This directory contains a platform.py file which I think is conflicting with an internal numpy import. Could you try moving the script to a different directory (one that does not contain any platform.py) and execute from there?
Indeed, platform is a standard library module. Unfortunately, Python has the (arguably bad) habit of adding the current directory to its module path...
Thank you for your help, indeed the issue was that platform is a standard library module. After moving the file to a different directory as well as the additional fix by Stavros (#1127) I can now run the mixer calibration!
When trying to run mixer calibration (I copied and modified the mixer calibration script that middelware uses for the 11q chip ) for the quantum machine on the qw5q_platinum using 0.1 version of qibolab I get an error with the import of numpy (see attached file). I appears that numpy is trying to import platform which does not exist.
_qw5q_platinum_mixers.log
The text was updated successfully, but these errors were encountered: