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

Will not run. Raspberry Pi 5 #6

Open
worikgh opened this issue Jan 3, 2024 · 9 comments
Open

Will not run. Raspberry Pi 5 #6

worikgh opened this issue Jan 3, 2024 · 9 comments

Comments

@worikgh
Copy link

worikgh commented Jan 3, 2024

$ 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

Once the application is running if I select "start" for MOD Host + UI

  × 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

@falkTX
Copy link
Member

falkTX commented Jan 3, 2024

Should be fixed in 8c56054
Dont forget to update the git submodules

@worikgh
Copy link
Author

worikgh commented Oct 3, 2024

On a frseh Raspberry-5 Debian 12.7

Cloned --recusive-submodules

Running

make
Makefile:36: *** PyQt is not available, please install it.  Stop.

I cannot find a Debian package to satisfy this requirtement

@worikgh
Copy link
Author

worikgh commented Oct 3, 2024

On a fresh Raspberry-5 Debian 12.7

$ python --version
Python 3.11.2

Cloned --recurse-submodules

Running

make
Makefile:36: *** PyQt is not available, please install it.  Stop.

I cannot find a Debian package to satisfy this requirement

@henning
Copy link

henning commented Oct 3, 2024

how did you search?
did you try to google for "pyqt debian"?

that gives me this as first result:

https://tracker.debian.org/pkg/pyqt5

you could try to install some of these, maybe starting with python3-pyqt5

and it's likely for building apps that use pyqt that the dev package is also necessary.

(it's a while ago that i built mod-panel myself but i try to help by explaining what i would do facing this error message)

@worikgh
Copy link
Author

worikgh commented Oct 4, 2024

how did you search?

I looked in all the usual places.

aptitude show pyqt5
E: Unable to locate package pyqt5      

@falkTX
Copy link
Member

falkTX commented Oct 4, 2024

the list of deps are in the readme

https://github.com/mod-audio/mod-panel?tab=readme-ov-file#dependencies

@henning
Copy link

henning commented Oct 4, 2024

aptitude show pyqt5

E: Unable to locate package pyqt5      

but aptitude show is no search.
it only shows you if a package with this exact name exists.

the problem is, the packages needed to install dependencies that a makefile build dependency check mentions are usually not found under these exact names that are reported, but, as i already wrote, they are usually the dev packages.

because makefiles "talk" about development code, not distribution packages. These tools are not distribution specific and they don't know/care about distribution packages.

thats why you need to look for the dev packages that contain the name mentioned by the makefile.

@worikgh
Copy link
Author

worikgh commented Oct 4, 2024

pyqt5-dev-tools is the required package

@worikgh worikgh closed this as completed Oct 4, 2024
@worikgh worikgh reopened this Oct 4, 2024
@worikgh
Copy link
Author

worikgh commented Oct 4, 2024

Then when using mod-panel and clicking "start" this is in the "File Browser" tab, and it stops ("start" is active again

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

It does not say what is missing

There was nothing reported in the console

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

3 participants