Missing rioboard module - Arch linux

8 years 11 months ago #29529763 by QuiXXotic
I cant import the rioboard module on Arch linux.
[root@alarmpi ~]# python2
Python 2.7.8 (default, Sep 24 2014, 05:50:30)
[GCC 4.8.2 20131219 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rioboard
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rioboard
>>>

By manually giving this command before python execution the import works.
export PYTHONPATH=/riofiles:$PYTHONPATH

Please Log in or Create an account to join the conversation.

8 years 11 months ago - 8 years 11 months ago #29529765 by opal
Replied by opal on topic Missing rioboard module - Arch linux
Hello QuiXXotic,

Thanks for sharing the of solution:
export PYTHONPATH=/riofiles:$PYTHONPATH

Another alternative/workaround would be to start Python interpreter from /riofiles directory.

For the next version we will update the install script accordingly to provide the path to "rioboard" at boot time.

Regards

Please Log in or Create an account to join the conversation.

8 years 11 months ago #29529774 by QuiXXotic
Is there any file i can add that line to myself to get it executed during boot? Because i autostart a python script after boot so i need to get that exported during boot.

Please Log in or Create an account to join the conversation.

8 years 10 months ago - 8 years 10 months ago #29529782 by opal
Replied by opal on topic Missing rioboard module - Arch linux
Hello QuiXXotic,

According to this description " Arch Linux::Environment variables " you can modify one of the following files:
  • "/etc/profile"
  • "/etc/bash.bashrc"
  • "/etc/environment"
Consider also adjusting the PATH variable for your user only (see further in the aforementioned manual)

Regards

Please Log in or Create an account to join the conversation.

Moderators: opal
Time to create page: 0.064 seconds