evok
evok copied to clipboard
I can't install Evok on fresh install of Raspbian
Prerequisites
- [Yes ] Are you running the latest Master or the latest release version?
- [Yes ] Did you try to reinstall EVOK?
- [Yes ] Did you perform a cursory search on the [forum] and [google]?
Log files needed
Include the output of the following commands on your Neuron/UniPi device:
sudo su
cat /var/log/evok.access.log
ps -fax
cat /var/log/evok.log
I don't have this files on the rpi.
Description
[Description of the bug or feature] I try to install evok on fresh install Raspbian Stretch / Stretch Lite / Buster / Buster Lite / Bullseye... several versions of each with no succes, because i think the Evok isn't compatible with the new versions, but with no succes. I must to mention that we have a Raspberry Pi 3 B+ Version with Unipi 1.1 and Unipi 1.1 Lite versions.
The message i got was:
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/PyYAML.egg-info
writing pip-egg-info/PyYAML.egg-info/PKG-INFO
writing top-level names to pip-egg-info/PyYAML.egg-info/top_level.txt
writing dependency_links to pip-egg-info/PyYAML.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/PyYAML.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-OAS5c5/pyyaml/
And when I try to run the test file: " from jsonrpclib import Server s=Server("http://localhost:8181/rpc") s.relay_set(1,1) s.relay_get(1) s.relay_set(1,0) s.relay_get(0) s.ai_get(1) "
root@Matrita4gb:/home/pi/Desktop# python test.py
Traceback (most recent call last):
File "test.py", line 1, in
root@Matrita4gb:/home/pi/Desktop# python3 test.py
Traceback (most recent call last):
File "test.py", line 1, in
I try to update/upgrade pip and pip3, I try to chage the default python to python 2, I try to make different tricks with no succes. We have more Unipi 1.1 and Lite versions on more sites and we stuck with old os with more packages that what we need, we have backups from it and to new site we have to use the old images because we stuck on it. Sometimes the jsonrpclib is installed, but evok don't work, and the input/output don't show on the web interface. What I make wrong?
After I installed the jsorpclib library manually I received this message:
root@Matrita4gb:/home/pi/Desktop# python test.py
Traceback (most recent call last):
File "test.py", line 3, in
And the evok service status is:
root@Matrita4gb:/home/pi/Desktop# sudo systemctl status evok ● evok.service - Evok Modbus/Websocket/Rpc Server Loaded: loaded (/etc/systemd/system/evok.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2024-03-26 09:18:09 EET; 19min ago Process: 1180 ExecStart=/usr/bin/python2 /opt/evok/evok.py (code=exited, status=1/FAILURE) Main PID: 1180 (code=exited, status=1/FAILURE)
Mar 26 09:18:09 Matrita4gb systemd[1]: evok.service: Service RestartSec=100ms expired, scheduling resta Mar 26 09:18:09 Matrita4gb systemd[1]: evok.service: Scheduled restart job, restart counter is at 5. Mar 26 09:18:09 Matrita4gb systemd[1]: Stopped Evok Modbus/Websocket/Rpc Server. Mar 26 09:18:09 Matrita4gb systemd[1]: evok.service: Start request repeated too quickly. Mar 26 09:18:09 Matrita4gb systemd[1]: evok.service: Failed with result 'exit-code'. Mar 26 09:18:09 Matrita4gb systemd[1]: Failed to start Evok Modbus/Websocket/Rpc Server.
Steps to Reproduce
sudo su apt update --allow-releaseinfo-change apt-get update --allow-releaseinfo-change apt upgrade apt-get upgrade reboot
sudo su wget https://github.com/UniPiTechnology/evok/archive/2.4.34.zip unzip 2.4.34.zip chmod 777 evok-2.4.34 cd evok-2.4.34 chmod 777 * bash install-evok.sh
Hello, It seems that the problem may be caused by the loss of support for some of the required dependencies. I will try to solve this issue.
Nevertheless, a new version of Evok will be released shortly, which is currently in beta. If you are developing a new application or updating an existing one, we recommend considering transitioning to the new version of Evok. You can see more information here.
Evok v3.0.1 is released.