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

Failed install: setup.py install is deprecated #145

Open
worikgh opened this issue Dec 10, 2023 · 4 comments
Open

Failed install: setup.py install is deprecated #145

worikgh opened this issue Dec 10, 2023 · 4 comments

Comments

@worikgh
Copy link

worikgh commented Dec 10, 2023

Following the instructions from the README.rst

Start by cloning the repository::

    $ git clone git://github.com/moddevices/mod-ui
    $ cd mod-ui

Create a python virtualenv::

    $ virtualenv modui-env
    $ source modui-env/bin/activate

Install python requirements::

    $ pip3 install -r requirements.txt

Compile libmod_utils::

    $ make -C utils

At the pip3 install -r requirements.txt step....

Installing collected packages: tornado, pyserial, pycrypto, Pillow, aggdraw
  Running setup.py install for pycrypto ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for pycrypto did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      /home/puppy/mod-ui/modui-env/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(
      src/_fastmath.c:32:10: fatal error: longintrepr.h: No such file or directory
         32 | #include <longintrepr.h>                                /* for conversions */
            |          ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pycrypto

note: This is an issue with the package mentioned above, not pip.
@worikgh
Copy link
Author

worikgh commented Dec 10, 2023

 $ uname -a
Linux raspberrypi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
 $ cat /etc/issue
Raspbian GNU/Linux 12 \n \l

@falkTX
Copy link
Member

falkTX commented Dec 10, 2023

mod-ui is not compatible with python3.11, so this wont work.

for pycrypto it can be replaced with pycryptodomex, and the code has already been prepared to work for both, but afaik we cannot put "this || that" kinda dependency in the requirements.txt so we keep compat with current MOD environment first.

try installing via https://github.com/moddevices/mod-panel which contains some workarounds for this

@worikgh
Copy link
Author

worikgh commented Dec 11, 2023

What pythons is it compatible with?

I could install it.

@worikgh
Copy link
Author

worikgh commented Dec 11, 2023

try installing via https://github.com/moddevices/mod-panel which contains some workarounds for this

Does not work unfortunately

  × Running setup.py install for pycrypto did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      /home/puppy/mod-panel/source/mod-ui/modui-env/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(
      src/_fastmath.c:32:10: fatal error: longintrepr.h: No such file or directory
         32 | #include <longintrepr.h>                                /* for conversions */
            |          ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants