Closed clemaitre58 closed 7 years ago
Hi! Unfortunately this will break most other distributions which then all would have to rely on manually installing the udev rules. Is there perhaps another solution to make this work that will not remove existing functionality from other distributions?
What about calling the udev install using os.system('sudo whatever_command')
. It will call the default python - conda for anaconda user and system for whatever distribution - and will ask for the super user password at install time.
A non-ideal workaround is to use sudo -E python setup.py install
. Copies the udev rules, but litters your virtualenv directory with a few root owned files (PKG-INFO
and txt-files).
Here some changes in order to install properly when you use anaconda python distribution.
without this comment in the setup.py (udev), you can't install with sudo python setup.py install. In fact, the installer select system python and the anaconda python.
So the solution is :
sudo cp resources/ant-usb-sticks.rules /etc/udev/rules.d sudo udevadm control --reload-rules sudo udevadm trigger --subsystem-match=usb --attr-match=idVendor=0fcf --action=add