maximkulkin / lewansoul-lx16a

Library and UI to configure and control LewanSoul LX-16A servos
MIT License
64 stars 23 forks source link

Raspberry Pi Installation #3

Open aramperez opened 5 years ago

aramperez commented 5 years ago

It appears that on a RasPi you need to install with the sudo command. But you still get an error concerning the PyQt5 files: Traceback (most recent call last): File "/usr/local/bin/lewansoul_lx16a_terminal", line 4, in import('pkg_resources').run_script('lewansoul-lx16a-terminal==0.1', 'lewansoul_lx16a_terminal') File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3191, in @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3175, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3204, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 583, in _build_master ws.require(requires) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'PyQt5' distribution was not found and is required by lewansoul-lx16a-terminal

I've tried installing the PyQt5 package with Preferences->Add/Remove Software but I still get an error.

maximkulkin commented 5 years ago

It seems to be a problem with RPi python-pyqt5 (and python3-pyqt5) debian packages which do not include .egg-info files or directories. The easiest way would be to edit setup.py in this repo to remove dependency on PyQt5

aramperez commented 5 years ago

I'll try to do that but I do not know Python that well. Thanks!

1scai commented 4 years ago

I'll try to do that but I do not know Python that well. Thanks!

aramperez did you figure out how to control the arm with the pi? I'm having the same issue. Thanks.

aramperez commented 4 years ago

Sorry, that was more than 1 year ago. I was able install the package and can communicate with the servos. However, I ended up writing my own library in C++ based on the request from my client.

BerGar92 commented 9 months ago

Hi, it's been a while since this thread was messaged but I'm trying to work with these servos myself and am currently struggling to interact with them other than the desktop software for individual servo control/debug. You say you created your own C++ library for them few questions, first is it possible to get that library? second did you end up running it on a RP or for use with Arduino like I have seen in some of your other projects? finally did you manage to get full functionality out of them with every command which is programmed into them?

aramperez commented 9 months ago

Hi BerGar92, I'll have to ask my client if he wants to open source the library. It runs on a RP but should be adaptable to an Arduino. I haven't look at the library is quite a while but IIRC, it had most of the functionality. It shouldn't be hard to add any missing functionality.