mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 16:14:37 +08:00
Merge pull request #174 from madcowswe/sam_python_fixes
Fix odrive pip install
This commit is contained in:
@@ -10,7 +10,6 @@ import traceback
|
||||
import fibre.protocol
|
||||
import fibre.utils
|
||||
import fibre.remote_object
|
||||
import fibre.serial_transport
|
||||
from fibre.utils import Event, Logger
|
||||
from fibre.protocol import ChannelBrokenException
|
||||
|
||||
|
||||
+4
-1
@@ -75,7 +75,10 @@ if not creating_package:
|
||||
if platform.system() == 'Linux':
|
||||
import odrive.utils
|
||||
from fibre.utils import Logger
|
||||
odrive.utils.setup_udev_rules(Logger())
|
||||
try:
|
||||
odrive.utils.setup_udev_rules(Logger())
|
||||
except PermissionError:
|
||||
print("Warning: could not set up udev rules. Run `sudo odrivetool udev-setup` to try again.")
|
||||
|
||||
setup(
|
||||
name = 'odrive',
|
||||
|
||||
Reference in New Issue
Block a user