Broken QCoDeS install from conda (was Problem running Qcodes for kEYSIGHT B1505A) #5926
-
Hello, I run Keysight connection expert and connect my instrument. I can send the basic command and get answer for the qcodes example for B1505A for example with pyvisa : `import pyvisa Initialize the PyVISA resource managerrm = pyvisa.ResourceManager() List available resources (including GPIB instruments)print(rm.list_resources()) Open a connection to your GPIB instrumentinst = rm.open_resource('GPIB0::17::INSTR') # Adjust the address as per your instrument Query the instrument for identificationprint(inst.query("*IDN?")) But, I'm encountering issues with driver missing for B1505 and also the file dataset when I run the code I have found in this website with Qcode: [https://microsoft.github.io/Qcodes/examples/driver_examples/Qcodes%20example%20with%20Keysight%20B1500%20Parameter%20Analyzer.html] `from IPython.display import Markdown, display import qcodes as qc I can't import qcode.dataset neither import KeysightB1500. An I am blocked in these line and can't run the rest of the code as I can't import the librairies. I am using Spyder with Ananconda and I have installed qcode in ananconda prompt using : conda install qcodes. Does anyone have this problem once? How can I solve it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
For more info I get the error: No module named 'qcodes.dataset |
Beta Was this translation helpful? Give feedback.
-
@Dianebonk From your description it sounds like your problem is a broken install of qcodes from conda. I have just created a fresh conda environment fresh and installed qcodes from conda forge and the import seems to work as expected.
Which conda channel are you installing qcodes from? QCoDeS is only available in conda-forge as far as I know so can you confirm that this is where you installed it from. I would suggest that you try to create a new conda environment from fresh and try again. Personally I find the anaconda navigator more confusing than useful so I would Open a (anaconda) terminal and run
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, I am trying to do the qcodes install, after doing the first create and activate qcodetest. (base) PS C:\Users\BB274165> conda activate qcodestest CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) |
Beta Was this translation helpful? Give feedback.
-
ok thanks for replying, i'll try to reinstall my ananconda. |
Beta Was this translation helpful? Give feedback.
-
I have uninstalled ananconda reinstalled it. When I run just this part of the code: import qcodes as qc I get this error : I don't understand why some files of qcodes is missing after my installation. Is it possible to have the file missing and put it in the right path and run the program? |
Beta Was this translation helpful? Give feedback.
This is a very old version of qcodes which is not compatible with the versions of the rest of the dependencies. I have no idea why you would happen but you could try installing a specific version. E.g conda install qcodes=0.44.1