darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
315 stars 98 forks source link

error while running make python #71

Closed staebchen0 closed 3 years ago

staebchen0 commented 3 years ago

Hi,

I'm currently installing on the Raspberry PI 4

all previous steps are done

with the command

I get the info about the relay
$sudo usbrelay

Device Found
  type: 16c0 05df
  path: /dev/hidraw4
  serial_number: 
  Manufacturer: www.dcttech.com
  Product:      USBRelay2
  Release:      100
  Interface:    0
  Number of Relays = 2
HURTM_1=0
HURTM_2=0

now i would like to install the Python extension and get no further with make pyhton:

step

Install Python3 dev package

Packages have been installed;

pi @ raspberrypi: ~ / home/usr / usbrelay $ sudo apt install libpython3.5-dev
Package lists are being read ... Done
The dependency tree is built.
Status information is read in .... Done
libpython3.5-dev is the newest version (3.5.4-4).
0 updated, 0 reinstalled, 0 removed, and 0 not updated.

Next step ##Build libusbrelay_py.so $ make python

pi @ raspberrypi: ~ $ make python
make: *** No rule to create "python". Enough.

python3.7 is installed on the pi.

what am I doing wrong?

darrylb123 commented 3 years ago

That seems to be a very old version of usbrelay. Later versions do not display debugging information without the -d flag. Did you build it or install the package. You need to build (compile) the latest version by following all the instructions.

On Sat, Oct 23, 2021 at 1:32 AM staebchen0 @.***> wrote:

Hi,

I'm currently installing on the Raspberry PI 4

all previous steps are done

with the command

I get the info about the relay $sudo usbrelay

Device Found type: 16c0 05df path: /dev/hidraw4 serial_number: Manufacturer: www.dcttech.com Product: USBRelay2 Release: 100 Interface: 0 Number of Relays = 2 HURTM_1=0 HURTM_2=0

now i would like to install the Python extension and get no further with make pyhton:

step

Install Python3 dev package

Packages have been installed;

pi @ raspberrypi: ~ / home/usr / usbrelay $ sudo apt install libpython3.5-dev Package lists are being read ... Done The dependency tree is built. Status information is read in .... Done libpython3.5-dev is the newest version (3.5.4-4). 0 updated, 0 reinstalled, 0 removed, and 0 not updated.

Next step ##Build libusbrelay_py.so $ make python

pi @ raspberrypi: ~ $ make python make: *** No rule to create "python". Enough.

python3.7 is installed on the pi.

what am I doing wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/71, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVPDXY3NQ2HAA5WRRT3UIF7Y5ANCNFSM5GQ2LEZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

staebchen0 commented 3 years ago

those are from the readme and I followed the steps in this guide: [(https://github.com/darrylb123/usbrelay/issues/32)]

staebchen0 commented 3 years ago

I've downloaded the latest version. Now everything works! Thanks!