-
-
Notifications
You must be signed in to change notification settings - Fork 321
Description
Hello,
I hope I am in the right place for this question. I apologize if I should be asking this somewhere else. I did post this question on the general Lazarus forum but did not get any feedback.
I am using Python for Lazarus in an application to communicate with a few different lab instruments.
I have a Lazarus application that was running well using the NI-Visa library for python. It suddenly stopped working and is now throwing an error:
AttributeError: module 'visa' has no attribute 'ResourceManager'
The odd part is that the same python code runs fine from IDLE or python directly? I am struggling to find any information on how P4L or P4D interacts with python and where this problem could be coming from. I would think they would use the same python module?
I did get some good feedback from python visa forum but I think the visa and python side check out as ok because it is running in python itself. This seems to be something specific to the Lazarus side?
Simple python script that returns error:
import visa
from ThorlabsPM100 import ThorlabsPM100
rm = visa.ResourceManager()
Other python scripts seem to run fine from the same Lazarus application.
Any information would be greatly appreciated.