evok icon indicating copy to clipboard operation
evok copied to clipboard

I can't install Evok on fresh install of Raspbian

Open BucuresteanuPC opened this issue 11 months ago • 1 comments

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 "", line 1, in File "/tmp/pip-install-OAS5c5/pyyaml/setup.py", line 295, in python_requires='>=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., !=3.5.', File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/init.py", line 162, in setup return distutils.core.setup(**attrs) File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 296, in run self.find_sources() File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 303, in find_sources mm.run() File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 534, in run self.add_defaults() File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 570, in add_defaults sdist.add_defaults(self) File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/tmp/pip-build-env-fLDcsE/lib/python2.7/site-packages/setuptools/command/py36compat.py", line 120, in _add_defaults_ext self.filelist.extend(build_ext.get_source_files()) File "/tmp/pip-install-OAS5c5/pyyaml/setup.py", line 201, in get_source_files self.cython_sources(ext.sources, ext) File "/usr/lib/python2.7/distutils/cmd.py", line 105, in getattr raise AttributeError, attr AttributeError: cython_sources

----------------------------------------

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 from jsonrpclib import Server ImportError: No module named jsonrpclib

root@Matrita4gb:/home/pi/Desktop# python3 test.py Traceback (most recent call last): File "test.py", line 1, in from jsonrpclib import Server ModuleNotFoundError: No module named 'jsonrpclib'

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 s.relay_set(1,1) File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 288, in call return self.__send(self.__name, args) File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 237, in _request response = self._run_request(request) File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 255, in _run_request verbose=self.__verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1311, in single_request self.send_content(h, request_body) File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 126, in send_content connection.endheaders() File "/usr/lib/python2.7/httplib.py", line 1083, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 909, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 871, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 848, in connect self.timeout, self.source_address) File "/usr/lib/python2.7/socket.py", line 575, in create_connection raise err socket.error: [Errno 111] Connection refused

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

BucuresteanuPC avatar Mar 26 '24 07:03 BucuresteanuPC

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.

kratochvil01 avatar Mar 26 '24 21:03 kratochvil01

Evok v3.0.1 is released.

kratochvil01 avatar Jun 20 '24 08:06 kratochvil01