Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ruamel fails to build #5136

Closed
jdavid54 opened this issue Nov 17, 2022 · 2 comments
Closed

[BUG] ruamel fails to build #5136

jdavid54 opened this issue Nov 17, 2022 · 2 comments

Comments

@jdavid54
Copy link

jdavid54 commented Nov 17, 2022

Describe the bug

Try to install the packages from
https://learnembeddedsystems.co.uk/easy-raspberry-pi-iot-server

error while running ./menu.sh

Running setup.py install for ruamel.yaml.clib did not run successfully.

  │ exit code: 1
  ╰─> [27 lines of output]
      sys.argv ['/tmp/pip-install-w42v2zo9/ruamel-yaml-clib_ec2758fc94a7421d8aa3e020cc106826/setup.py', 'install', '--record', '/tmp/pip-record-ou8r8r84/install-record.txt', '--single-version-externally-managed', '--compile', '--install-headers', '/home/pi/Documents/IOTstack/.virtualenv-menu/include/site/python3.11/ruamel.yaml.clib']
      test compiling /tmp/tmp_ruamel_xz5xte8a/test_ruamel_yaml.c -> test_ruamel_yaml OK
      /home/pi/Documents/IOTstack/.virtualenv-menu/lib/python3.11/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
        warnings.warn(msg, SetuptoolsDeprecationWarning)
      running install
      /home/pi/Documents/IOTstack/.virtualenv-menu/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-311
      creating build/lib.linux-armv7l-cpython-311/ruamel
      copying .ruamel/__init__.py -> build/lib.linux-armv7l-cpython-311/ruamel
      creating build/lib.linux-armv7l-cpython-311/ruamel/yaml
      copying .ruamel/yaml/__init__.py -> build/lib.linux-armv7l-cpython-311/ruamel/yaml
      creating build/lib.linux-armv7l-cpython-311/ruamel/yaml/clib
      copying ./__init__.py -> build/lib.linux-armv7l-cpython-311/ruamel/yaml/clib
      copying ./LICENSE -> build/lib.linux-armv7l-cpython-311/ruamel/yaml/clib
      running build_ext
      building '_ruamel_yaml' extension
      creating build/temp.linux-armv7l-cpython-311
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi/Documents/IOTstack/.virtualenv-menu/include -I/usr/local/include/python3.11 -c _ruamel_yaml.c -o build/temp.linux-armv7l-cpython-311/_ruamel_yaml.o
      _ruamel_yaml.c:198:12: fatal error: longintrepr.h: Aucun fichier ou dossier de ce type
         #include "longintrepr.h"
                  ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

Code to reproduce the behaviour:

# example code

Expected behaviour

No response

Environment

OS: [e.g. Linux, Windows, macOS]
Python version [e.g. 3.10.2]
Cython version [e.g. 3.0.0a11]

Additional context

No response

@mattip
Copy link
Contributor

mattip commented Nov 17, 2022

That might be due to using a really old version of ruamel.yaml which ships pre-cythonized versions of *.pyx files built for python2 only. I am not sure how to fix this for your use case, you might get further commenting on the tutorial itself.

@scoder
Copy link
Contributor

scoder commented Jan 11, 2023

Not an issue in Cython itself but in a third-party tool that uses Cython.

@scoder scoder closed this as completed Jan 11, 2023
@scoder scoder changed the title [BUG] [BUG] ruamel fails to build Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants