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

Community Forum

Share your projects and post your questions

Register or Sign In

Configuring ADCDCA lib to python path

985 Views - Created 15/05/2017


Posted by:

Users Avatar

United States

Hi All,

I followed the instruction in the website here: https://www.abelectronics.co.uk/kb/article/15/adcdac-pi-with-python 

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 ADCDACPi
ImportError: No module named ABE_ADCDACPi

I 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:

Users Avatar

United Kingdom

Users Twitter  Users Website  


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

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


AB Electronics UK Tech Support

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.