ole1986 / centronic-py

Centronic USB Stick to control Becker Shutter CC31/CC51
43 stars 10 forks source link

Error when starting Script #11

Closed kabakakao closed 4 years ago

kabakakao commented 4 years ago

Hi, I‘m getting the following error when I execute the Script:

Traceback (most recent call last): File "./centronic-stick.py", line 467, in main(sys.argv[1:]) File "./centronic-stick.py", line 389, in main class Modes(enum.IntFlag): AttributeError: 'module' object has no attribute 'IntFlag'

I‘m Running on Python 3.4.2 Any hints, what I am doing wrong?

Regards, Stephan

ole1986 commented 4 years ago

Switching to python version 3.6 or higher should fix the issue

cstorzum commented 1 year ago

Thanks Ole and the overall team for the hard work in getting the script working!

I am trying to get it run with my FHEM installation - but do face some trouble. I had the same issue as above - before updating Python to the latest version of 3.11.5. Now I am seeing the following error:

Traceback (most recent call last): File "./centronic-stick.py", line 8, in import socket File "/usr/lib/python3.5/socket.py", line 53, in from enum import IntEnum ImportError: No module named 'enum'

Any idea how to fix this?

Initially I had the issue Attributeerror: module enorm has no attribute intflag" - I did all changes I could find googling the issue - uninstalled unum34, deleted local enum file. updating to latest python 3.11.5 - and stuck throughout the weekend on this. Any help appreciated!!