freakent/dbus-mqtt-devices

Installation error on CerboGX

Closed this issue · 30 comments

Hello,

I have the problem that when I want to install on my CerboGX I get an installation error.

ERROR: Command errored out with exit status 1:
  command: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmps13l3ngw
      cwd: /var/volatile/tmp/pip-install-xn7uhxjb/PyYAML
 Complete output (48 lines):
 running egg_info
 writing lib/PyYAML.egg-info/PKG-INFO
 writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
 writing top-level names to lib/PyYAML.egg-info/top_level.txt
 Traceback (most recent call last):
   File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
     main()
   File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
     json_out['return_val'] = hook(**hook_input['kwargs'])
   File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
     return hook(config_settings)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
     return self._get_build_requires(config_settings, requirements=['wheel'])
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
     self.run_setup()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
     exec(code, locals())
   File "<string>", line 288, in <module>
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
     return distutils.core.setup(**attrs)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
     return run_commands(dist)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
     dist.run_commands()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
     self.run_command(cmd)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
     super().run_command(command)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
     cmd_obj.run()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
     self.find_sources()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
     mm.run()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
     self.add_defaults()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
     sdist.add_defaults(self)
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
     super().add_defaults()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
     self._add_defaults_ext()
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
     self.filelist.extend(build_ext.get_source_files())
   File "<string>", line 204, in get_source_files
   File "/var/volatile/tmp/pip-build-env-ml43w1px/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
     raise AttributeError(attr)
 AttributeError: cython_sources
 ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmps13l3ngw Check the logs for                                full command output.

Hi, Please provide more info. What version of VenusOS and what commands did you run. I really need to see more of the log file.

Hi,

the actual Venos OS is by 3.01, this is the actual firmware.

I installed the driver with this command

./dbus-mqtt-devices-0.6.2/bin/setup.sh

Thanks ...

Can you include more of the log file, I really need to see at which point in the setup this happened.

Which protocol do you want to see ? Which can be seen in the whole during the installation

Just the 10 to 20 lines immediately before the error message that you sent earlier.

Hi,

sorry i thought i have written. Here is the log complete.

`

root@einstein:/data/drivers# ./dbus-mqtt-devices-0.6.2/bin/setup.sh
dbus-mqtt-devices: Setup in /data/drivers/dbus-mqtt-devices-0.6.2 started
dbus-mqtt-devices: Checking to see if Python's Pip is installed
pip 20.0.2 from /usr/lib/python3.8/site-packages/pip (python 3.8)
dbus-mqtt-devices: Pip install module dependencies
Collecting PyYAML==6.0
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpl6ogwtev
       cwd: /var/volatile/tmp/pip-install-zib_cg3g/PyYAML
  Complete output (48 lines):
  running egg_info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 288, in <module>
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
      self.find_sources()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
      mm.run()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
      self.add_defaults()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
      sdist.add_defaults(self)
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
      super().add_defaults()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
      self.filelist.extend(build_ext.get_source_files())
    File "<string>", line 204, in get_source_files
    File "/var/volatile/tmp/pip-build-env-nt0rwfm3/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpl6ogwtev Check the logs for full command output.
dbus-mqtt-devices: Set up Victron module libraries
dbus-mqtt-devices: Set up device service to autorun on restart
dbus-mqtt-devices: Adding device service to /data/rc.local
dbus-mqtt-devices: Setup complete

`

It looks like you already have Pip installed, but maybe not the Python Modules package. Ordinarily they both get installed at the same time.

Try running this from the command line :
opkg update && opkg install python3-modules

Then run the install again:
./dbus-mqtt-devices-0.6.2/bin/setup.sh

same here, I tried with RPi4 3.01:


Configuring python3-modules.
dbus-mqtt-devices: Pip install module dependencies
Collecting PyYAML==6.0
  Downloading PyYAML-6.0.tar.gz (124 kB)
     |████████████████████████████████| 124 kB 2.9 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmprr2z104r
       cwd: /var/volatile/tmp/pip-install-6uji0jtn/PyYAML
  Complete output (48 lines):
  running egg_info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 288, in <module>
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
      self.find_sources()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
      mm.run()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
      self.add_defaults()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
      sdist.add_defaults(self)
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
      super().add_defaults()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
      self.filelist.extend(build_ext.get_source_files())
    File "<string>", line 204, in get_source_files
    File "/var/volatile/tmp/pip-build-env-zog16q3t/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmprr2z104r Check the logs for full command output.
dbus-mqtt-devices: Set up Victron module libraries
dbus-mqtt-devices: Set up device service to autorun on restart
dbus-mqtt-devices: Adding device service to /data/rc.local
dbus-mqtt-devices: Setup complete

and:
root@raspberrypi4:~# opkg update && opkg install python3-modules
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/Packages.gz.
Updated source 'cortexa7hf-neon-vfpv4'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/raspberrypi4/Packages.gz.
Updated source 'raspberrypi4'.
No packages installed or removed.

Update, ​it is not due to version 3.01, same with 3.00 today, but last month there was no problem on 3.00:


root@raspberrypi4:/data/drivers# ./dbus-mqtt-devices-0.6.2/bin/setup.sh
dbus-mqtt-devices: Setup in /data/drivers/dbus-mqtt-devices-0.6.2 started
dbus-mqtt-devices: Checking to see if Python's Pip is installed
/usr/bin/python: No module named pip
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/Packages.gz.
Updated source 'cortexa7hf-neon-vfpv4'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/raspberrypi4/Packages.gz.
Updated source 'raspberrypi4'.
Installing python3-debugger (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-debugger_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-tkinter (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-tkinter_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-mailbox (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-mailbox_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-idle (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-idle_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-db (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-db_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-smtpd (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-smtpd_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-syslog (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-syslog_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-curses (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-curses_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-xmlrpc (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-xmlrpc_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-terminal (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-terminal_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-venv (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-venv_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-image (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-image_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-mmap (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-mmap_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-profile (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-profile_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-resource (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-resource_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing libjitterentropy2 (2.2.0) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/libjitterentropy2_2.2.0-r0_cortexa7hf-neon-vfpv4.ipk.
Installing libsysfs2 (2.1.0) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/libsysfs2_2.1.0-r5_cortexa7hf-neon-vfpv4.ipk.
Installing python3-doctest (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-doctest_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-pip (20.0.2) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-pip_20.0.2-r0_cortexa7hf-neon-vfpv4.ipk.
Installing rng-tools (6.9) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/rng-tools_6.9-r0_cortexa7hf-neon-vfpv4.ipk.
Installing python3-modules (3.8.13) on root
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/python3-modules_3.8.13-r0_cortexa7hf-neon-vfpv4.ipk.
Configuring python3-debugger.
Configuring python3-tkinter.
Configuring libjitterentropy2.
Configuring libsysfs2.
Configuring rng-tools.
 Adding system startup for /etc/init.d/rng-tools.
Starting random number generator daemon.
Configuring python3-mailbox.
Configuring python3-idle.
Configuring python3-db.
Configuring python3-smtpd.
Configuring python3-syslog.
Configuring python3-curses.
Configuring python3-xmlrpc.
Configuring python3-terminal.
Configuring python3-venv.
Configuring python3-image.
Configuring python3-pip.
Configuring python3-mmap.
Configuring python3-doctest.
Configuring python3-profile.
Configuring python3-resource.
Configuring python3-modules.
dbus-mqtt-devices: Pip install module dependencies
Collecting PyYAML==6.0
  Downloading PyYAML-6.0.tar.gz (124 kB)
     |████████████████████████████████| 124 kB 2.9 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpep9wokuu
       cwd: /var/volatile/tmp/pip-install-qqs6mc58/PyYAML
  Complete output (48 lines):
  running egg_info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 288, in <module>
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
      self.find_sources()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
      mm.run()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
      self.add_defaults()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
      sdist.add_defaults(self)
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
      super().add_defaults()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
      self.filelist.extend(build_ext.get_source_files())
    File "<string>", line 204, in get_source_files
    File "/var/volatile/tmp/pip-build-env-97kyqpxl/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpep9wokuu Check the logs for full command output.
dbus-mqtt-devices: Set up Victron module libraries
dbus-mqtt-devices: Set up device service to autorun on restart
dbus-mqtt-devices: Adding device service to /data/rc.local
dbus-mqtt-devices: Setup complete
root@raspberrypi4:/data/drivers#

also tried:

root@raspberrypi4:~# opkg update && opkg install python3-modules
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/Packages.gz.
Updated source 'cortexa7hf-neon-vfpv4'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/raspberrypi4/Packages.gz.
Updated source 'raspberrypi4'.
No packages installed or removed.

got a workround with PyYAML-6.0-cp38-cp38-linux_armv7l.whl
file.zip

copy to Pi then:
python -m pip install PyYAML-6.0-cp38-cp38-linux_armv7l.whl

maybe before:
opkg update && opkg install python3-modules python3-pip

after this of course: ./dbus-mqtt-devices-0.6.2/bin/setup-ccgx.sh

@Becker884 I don't believe these issues are related. It would have been better to open a new issue.

@mactoolz can you confirm the status of your install now?

got a workround with PyYAML-6.0-cp38-cp38-linux_armv7l.whl file.zip
copy to Pi then: python -m pip install PyYAML-6.0-cp38-cp38-linux_armv7l.whl

i can confirm the same problem with dependencies... just with python3 -m pip install PyYAML-6.0-cp38-cp38-linux_armv7l.whl worked

@unmateria is this also on a Raspberry Pi?

@unmateria is this also on a Raspberry Pi?

No idea, i don't use raspis anymore... Im trying on a recently bought and updated cerbo gx.

Now the service starts between reboots, but cant manage to make it work. Log is:

Last login: Sun Jul 30 21:24:37 +0000 2023 on /dev/ttyS0.
root@einstein:~# tail -f /var/log/dbus-mqtt-devices/current
@4000000064c6d53407329914 return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
@4000000064c6d5340732a4cc File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 666, in call_blocking
@4000000064c6d5340733299c reply_message = self.send_message_with_reply_and_block(
@4000000064c6d5340733393c dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.victronenergy.system was not provided by any .service files
@4000000064c6d5351abef25c *** starting dbus-mqtt-devices ***
@4000000064c6d53f223d5ba4 -------- dbus_mqtt_devices, v0.5.1 is starting up --------
@4000000064c6d53f223d82b4 INFO:logger:Loglevel set to INFO
@4000000064c6d53f296f75c4 INFO:device_manager:Using portalId 102c6b9d0696
@4000000064c6d5412d045c54 INFO:mqtt_gobject_bridge:[Init] Connecting to local broker
@4000000064c6d54134f113e4 INFO:device_manager:[Connected] Result code 0
The name com.victronenergy.system was not provided by any .service files

Dont know if the log is after trying to register... The json sent was
{"clientId":"sdep","connected":1,"version":"1.0", "services":{"nivel1":"tank"}}

Same problem here:

root@cerbosgx:/data/drivers# opkg update && opkg install python3-modules
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/Packages.gz.
Updated source 'cortexa7hf-neon-vfpv4'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cerbosgx/Packages.gz.
Updated source 'cerbosgx'.
No packages installed or removed.
root@cerbosgx:/data/drivers# ./dbus-mqtt-devices-0.6.2/bin/setup.sh
dbus-mqtt-devices: Setup in /data/drivers/dbus-mqtt-devices-0.6.2 started
dbus-mqtt-devices: Checking to see if Python's Pip is installed
pip 20.0.2 from /usr/lib/python3.8/site-packages/pip (python 3.8)
dbus-mqtt-devices: Pip install module dependencies
Collecting PyYAML==6.0
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp7pohpkyg
       cwd: /var/volatile/tmp/pip-install-xscsvtch/PyYAML
  Complete output (48 lines):
  running egg_info
  writing lib/PyYAML.egg-info/PKG-INFO
  writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
  writing top-level names to lib/PyYAML.egg-info/top_level.txt
  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 288, in <module>
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
      self.find_sources()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
      mm.run()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
      self.add_defaults()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
      sdist.add_defaults(self)
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
      super().add_defaults()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
      self.filelist.extend(build_ext.get_source_files())
    File "<string>", line 204, in get_source_files
    File "/var/volatile/tmp/pip-build-env-rshk1x02/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp7pohpkyg Check the logs for full command output.
dbus-mqtt-devices: Set up Victron module libraries
dbus-mqtt-devices: Set up device service to autorun on restart
dbus-mqtt-devices: Adding device service to /data/rc.local
dbus-mqtt-devices: Setup complete

I am using a Cerbo-S GX: Linux cerbosgx 5.10.109-venus-11 #1 SMP Mon Jul 17 17:11:55 UTC 2023 armv7l GNU/Linux

Good morning!

sorry I'm on vacation and build my photovoltaic system on my roof.
I see that some users are trying to install the driver with the solution.

What is actually the state of affairs, I'm not really a Linux professional.

Do you have any idea what else to try ?

Greetings

Hi there,

I have tested the problem from the comment

#56 (comment)

and it works. I see the name of my OpenWb wallbox under the devices on the cerboGX.

Only I do not know if everything is in order. What can I check to see if it works correctly?

I too am on vacation with little access to equipment. As far as I can see, there has been a change in python3-modules and it no longer includes PYyaml. What I can't tell is whether this is just limited to one platform or all. Sorry, no quick fix available.

See the troubleshooting instructions in the readme. Register a device and monitor log files, if there are no errors all should be OK.

OK, no problem, I'll check again.

Does this mean that it is no longer possible to register a device as a DBUS device?

It seems to be connected, you can see that in the instance, but the values such as current etc. are not displayed in the instance in Cerbo.

Thank you very much, I will check this again.

Maybe after the holidays we can try again together how to check different things.

Thank you and have a nice holiday

hi :)

finally I could install it (couldnt remember why I decided to not use python ever again lol), at least for Venus OS RC (release candidate) firmware since different errors came with "latest/stable" version.

echo "cython<3" > constraint.txt
export PIP_CONSTRAINT=$PWD/constraint.txt
pip install pyyaml
./data/drivers/dbus-mqtt-devices-0.6.2/bin/setup.sh

going to test everything now... good holidays man! :D

Ok, i can confirm your driver is working now and installing new devices. I will edit later when I test everything :-)

Thank you again man :-)

Hello,

my driver only seems to display the device but values are not transferred. The topics can be seen in the MQTT Explorer.
What changes have you made to make the driver work for you?

greeting

I still didnt made the esp32 part. Didnt tested more than Freakent tool to be able to create the devices (it works).
In fact I dont have any idea the mqtt path etc to make those values visibles on the app.
Do you know how? I mean... something like device/tank1/litersInTank

I would have been finished everything in some hours just with the traditional mqtt server+dashboard in B4A... is much more difficult, obscure, slow and unstable using all that venus OS tools with the traditional python package mess on each update.
I think i will finish the project just making a modbus-tcp device and forget Cerbo GX mess forever :-). The SSH console doesnt work either and I had to cable it too... pfff

@unmateria You need to read

There are examples I have provided in the github project in the test-data folder. Also look at the services.yml file.

got a workround with PyYAML-6.0-cp38-cp38-linux_armv7l.whl file.zip

copy to Pi then: python -m pip install PyYAML-6.0-cp38-cp38-linux_armv7l.whl

maybe before: opkg update && opkg install python3-modules python3-pip

after this of course: ./dbus-mqtt-devices-0.6.2/bin/setup-ccgx.sh

Same Problem here with a raspberry Pi 3b
I tried VenusOS 3.0 and 3.1
Only with the workaround it is ok

I am currently working on replacing the YAML configuration with a config file format that is native to Python and requires no external libraries. This YAML library has been a PITA since day 1. I'll announce a new release when available.

Hi,

thats fine, thanks for your work.

Hi, updating requirements.txt with "PyYAML==6.0.1" (latest version) and "python -m pip install -r requirements.txt" after failed installation fixed the Problem for me.

Awesome, I love simple fixes. I'll try it myself and create a new release if it works for me.

I am still working on a new version, that doesn't use YAML. But that still needs more testing.

See release v0.6.3