Closed WPluim closed 6 years ago
Could you please create a subfolder /var/log/goodwe. After you start, it should write any system errors to that folder. It might reveal some extra information about whats happening. Are you running it as root? Please provide me as much information as you can gather and I'll try to help solve the issue.
Would it have someting to do with permissions? Or would it be easier not to use a pidfile, keep track myself en use separate GWUSB-start and stop scripts?
Sorry for the bold text :-(
Your error starts with the fact that it is missing the ConfigParser python module. Did you install all dependencies correctly? Please verify the following are installed:
sudo python -m pip install pyudev sudo python -m pip install ioctl_opt sudo python -m pip install configparser sudo python -m pip install paho-mqtt sudo python -m pip install enum
I installed:
That left me wondering! It was the wrong conclusion! Use python, not python3.
I found again time to continue with MY puzzle, indeed not yours. You were right, I missed (the right) configparser and missed the complete enum. While verifying I noticed you must have been using python 2.7. Tried that first and it worked, thanks a lot! Still curious so verified now that python3 is definitly not working. Good to know. Thanks again, for the listening ear and the list op sudo pip install commands. Succes in your new projects!
I just wanted to post indeed that I'm using Python version 2.7.9 on my Raspberry Pi for this project. I'm anoyed by the fact that python is realy messing up the depedencies and is not backwards compatible in some ways. I too have tried to run it with python 3, but kept hitting a wall with these modules.
I will update the docs about these findings. Thanks for your input.
Hi Arjen, I was very, very happy to find your Logger. But I don't get it to work properly, sorry. I keep getting the following question (after starting and stopping): pidfile /var/run/goodwe/goodwecomm.pid does not exist. Daemon not running? I never saw the pidfile, it could not be written and when I provided in a goodwe-subdir in /var/run it disappeared. Printing to the python shell made visible the program had found the Goodwe as device 0x74d747d0 (for example), but was unable to open it. Any ideas? Thanks in advance, Wilfried