About Us Knowledge Base Community Forum Electronics Toolbox FAQ Shipping & Delivery

Community Forum

Share your projects and post your questions

Search
Register or Sign In
Forum

Impossible to import ADCPi Libraries

726 Views - Created 08/12/2017

08/12/2017

Posted by:
Daniel Ognard

Users Avatar

Location:
Laval

Dear Support,

Happy to have purchased and received our ADC Pi Plus, I am working on the software side in order to log datas in ASCII files.

I installed Python and the ABElectronics without issue but when I want to import the ADCPi class from the ADCPi.py librarie, the following message appears: "from: can't read /var/mail/ADCPi"

Then, as the commands are unknown, it's impossible to call ADCPi(,,) function or any other function (read_voltage).

What is a bit strange is that I can run the ADCPi.py but then when I try to run the demo_readvoltage.py script the first message appearing mentions that it can't import the librarie ADCPi..

 

Could I have your help on this subject?

Thank you by advance,

Have a profitable day,

Daniel Ognard

French automotive engineering student working on a data logger for agricultural application

08/12/2017

Posted by:
andrew

Users Avatar

Location:
United Kingdom

Users Twitter  Users Website  

Hello Daniel

It looks like for some reason the ADC Pi library has not installed correctly on your computer.  You should be able to get your software working by copying the ADCPi.py file into the same folder as the script you are trying to run.  Adding from ADCPi import ADCPi to the top of your code should allow it to import the library from the same folder.

AB Electronics UK Tech Support

08/12/2017

Posted by:
Daniel Ognard

Users Avatar

Location:
Laval

French automotive engineering student working on a data logger for agricultural application

08/12/2017

Posted by:
Daniel Ognard

Users Avatar

Location:
Laval

Hello,

Thank you for helping. The aquisition is properly working now. 

Thank for your kind support,

Regards

French automotive engineering student working on a data logger for agricultural application

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.