mabuchilab / Instrumental

Python-based instrumentation library from the Mabuchi Lab.
http://instrumental-lib.readthedocs.org/
GNU General Public License v3.0
117 stars 77 forks source link

Random number appended to import #145

Open DeverSean opened 2 years ago

DeverSean commented 2 years ago

I'm attempting to import a driver module directly in order to see why "list_instruments()" isn't listing my connected spectrometer, as recommended here. However, when I try to import using "import instrumental.drivers.spectrometers.thorlabs_ccs", I get the following error:

[Errno 13] Permission denied: 'C:\Program Files\Python37\lib\site-packages\instrumental_lib-0.6-py3.7-win-amd64.egg\instrumental\drivers\spectrometers\_tlccslib.py.~19824'

Except the number at the end after the tilde "19824" is random every time I try to import. I'm not entirely sure how to track down this error, but I thought it might be worth reporting.

DeverSean commented 2 years ago

I installed both Instrumental and NiceLib using Git

natezb commented 2 years ago

Hi, thanks for the bug report. This one is interesting, I'm not sure I've ever seen something like this before. Is there more to the traceback that you can post?

natezb commented 2 years ago

Ideally I'd like to see the full input and output, i.e. your import statement and anything that gets printed on the terminal.