SUMMER SALE • UP TO 20% OFF • Ends 31st AUGUST 2025 *excludes trade customers
Support Forum

Share your projects and post your questions

The Forum

Configuring ADCDCA lib to python path

The ADC Pi is an Analogue to Digital converter for the Raspberry Pi

15/05/2017

Posted by:
mingweiyang

mingweiyang Avatar

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 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?

16/05/2017

Posted by:
andrew

andrew Avatar

Hi

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.

Using Pythonpath with the Python Libraries

Forum Notice – Closure to New Posts

As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.

We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.

We appreciate your understanding and continued 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.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout