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