Skip to content

Problem while installing (gevent 24.2.1) #515

@AingTii

Description

@AingTii

Describe the bug
While installing, there is an Error at teh step
INSTALLING RTKBASE REQUIREMENTS

at gevent 24.2.1

Message:
Collecting gevent==24.2.1 (from -r /home/tacker/rtkbase_lc29hbs_patch/rtkbase/web_app/requirements.txt (line 15))
Downloading gevent-24.2.1.tar.gz (6.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 3.3 MB/s 0:00:01
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Compiling src/gevent/resolver/cares.pyx because it changed.
[1/1] Cythonizing src/gevent/resolver/cares.pyx

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef tuple integer_types

  if sys.version_info[0] >= 3:
      integer_types = int,
  else:
      integer_types = (int, long)
                            ^
  ------------------------------------------------------------
  src/gevent/libev/corecext.pyx:69:26: undeclared name not builtin: long
  Compiling src/gevent/libev/corecext.pyx because it changed.
  [1/1] Cythonizing src/gevent/libev/corecext.pyx
  Traceback (most recent call last):
    File "/home/tacker/rtkbase_lc29hbs_patch/rtkbase/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/home/tacker/rtkbase_lc29hbs_patch/rtkbase/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
    File "/home/tacker/rtkbase_lc29hbs_patch/rtkbase/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-e36qjxac/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "/tmp/pip-build-env-e36qjxac/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-e36qjxac/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup
      exec(code, locals())
    File "<string>", line 54, in <module>
    File "/tmp/pip-install-4ls6a2x9/gevent_443336e026dc4de6930a7c90fd84e735/_setuputils.py", line 249, in cythonize1
      new_ext = cythonize(
    File "/tmp/pip-build-env-e36qjxac/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1153, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-e36qjxac/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1297, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'gevent' when getting requirements to build wheel

At the end the rtkbase does not start the services

To Reproduce
Steps to reproduce the behavior:

  1. setup the raspi-config , SPI, I2C and Serial Port => ON
  2. cd ~
  3. wget https://raw.githubusercontent.com/Stefal/rtkbase/master/tools/install.sh -O install.sh
  4. chmod +x install.sh
  5. sudo ./install.sh --all release

Expected behavior
A clear and concise description of what you expected to happen.

Software/Hardware (please complete the following information):

  • RTKBase release number 2.6.4
  • OS: Raspberry Pi Os (2023-05-03-raspios-bullseye-arm64-lite.img.xz)
    all newer once doesn't work because of newer python3 version!
  • SBC Raspberry Pi 4B
  • GNSS Device: LC29hbs
  • Connection type: HAT, Serial

Additional context
I find Workaround with (only with 2023-05-03-raspios-bullseye-arm64-lite.img.xz)

  1. modify the /rtkbase/web_app/requirements.txt
    change gevent==24.2.1 to gevent==21.12.0

  2. source /home/[USER]/rtkbase/venv/bin/activate

  3. pip install -r /home/[USER]/rtkbase/web_app/requirements.txt --ignore-installed --no-cache-dir

  4. deactivate

  5. sudo reboot

I Don't know, why the gevent 24.2.1 or newer python has Problems.

but maybe its a good idea to change the gevent version directly in the repository?

Or does noone else has that Problem?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions