Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Configuring ADCDCA lib to python path

2192 Views - Created 15/05/2017


Posted by:

mingweiyang Avatar

United States

Hi All,I followed the instruction in the website here: I tried it in Raspberry Pi model 3 B and ADC DAC Pi Zero. However, I found that after the command "export PYTHONPATH=${PYTHONPATH}:~/Desktop/ABElectronics_Python_Libraries/ADCDACPi/", I'm able to use the lib in terminal. However, I can't use it in python IDLE. After reboot, even termial way can't work. I got the error: from ABE_ADCDACPi import ADCDACPiImportError: No module named ABE_ADCDACPiI guess it's the python path problem. I tried sudo su to run expert command in admin account. It doesn't work. How can I put the lib in my pathon path permanently and be able to use it in IDLE? Could anyone help me on this problem?


Posted by:

andrew Avatar

United Kingdom

andrew Twitter  andrew Website  


To make the pythonpath work after a reboot you will need to put it in the ~/.bashrc file.

We have a tutorial in our knowledge base that explains how to get the python path working.

Sign in to post your reply

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.