rtkbase icon indicating copy to clipboard operation
rtkbase copied to clipboard

Problem while installing (gevent 24.2.1)

Open AingTii opened this issue 1 month ago • 3 comments

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

AingTii avatar Nov 28 '25 07:11 AingTii

Hi!

2023-05-03-raspios-bullseye-arm64-lite.img.xz

This is old ! I've released a new images a few days ago : https://github.com/Stefal/build/releases/tag/2.7.0_25.11

Stefal avatar Dec 03 '25 22:12 Stefal

Maybe I wrote it missunderstandable.

I could make it run with newer raspberry OS

Can you tell me, what version you use?

So I will install exact same raspberry OS image to look if it is working with the actual release 2.7.0

Because at first I started with actual image and there where a lot of errors.

Thanks

AingTii avatar Dec 04 '25 14:12 AingTii

The images I use are here : https://github.com/Stefal/build/releases/tag/2.7.0_25.11

Stefal avatar Dec 04 '25 20:12 Stefal