question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyvisa-info does not start

See original GitHub issue

Running pyvisa-info in a powershell terminal on Windows fails with

Fatal error in launcher: Unable to create process using '"d:\bld\pyvisa_1584488223356\_h_env\python.exe"  "C:\Users\buchner\AppData\Local\Continuum\miniconda3\Scripts\pyvisa-info.exe" ': The system cannot find the file specified.

I have confirmed that the pyvisa-info.exe is present where the error message says, but I don’t have a Python installation at this D: path.

It seems to me that somehow during packaging a machine-local path for Python slipped into the configuration (I don’t even have a D: drive). I could not find out how the pyvisa-info exe is created, it does not seem to use a setup.py console_script entrypoint.

Curiously, this happens with both a pyvisa-py pip installation and an installation from conda-forge. Pyvisa itself is on 1.10.1 from conda-forge.

To Reproduce

Steps to reproduce the behavior:

  1. Install pyvisa-py on Windows with an Anaconda Python installation, either 0.4.0 via pip, or 0.3.1 from conda-forge (tried with both)
  2. In a terminal/powershell, run pyvisa-info
  3. Instead of diagnostic output, the above error appears

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MatthieuDartiailhcommented, May 11, 2020

Thanks. I will have a look at the conda package. Those script are created by setuptools and it requires some tweaking for conda to deal with them properly. I will try to fix the issue this week.

0reactions
bilderbuchicommented, May 12, 2020

Thanks for the quick fix, confirmed fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently asked questions — PyVISA 1.8 documentation
No. PyVISA is developed independently of National Instrument as a wrapper for the VISA library. ... Yes, PyVISA is thread safe starting from...
Read more >
Miscellaneous questions — PyVISA 1.12.1.dev45+ge01a709 ...
No. PyVISA is developed independently of National Instrument as a wrapper for the ... Yes, PyVISA is thread safe starting from version 1.6....
Read more >
Communicating with your instrument - PyVISA - Read the Docs
The information you are looking is usually located close to the beginning of the IO operation section of the manual. If you cannot...
Read more >
Installation — PyVISA 1.9.1 documentation
PyVISA is a frontend to the VISA library. It runs on Python 2.7 and 3.4+. You can install it using pip: $ pip...
Read more >
Installation — PyVISA-Py 0.5.4.dev57+g3f63d8a documentation
If you do not install any extra library pyvisa-py will only be able to access ... You will get info about PyVISA, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found