Giter VIP home page Giter VIP logo

Comments (5)

ehrenb avatar ehrenb commented on June 12, 2024

Are you using an ARM64 Macbook?

If so, could you try running poetry install on this forked branch https://github.com/ehrenb/androguard/tree/pyqt5-qt5-fix and share the output?

Related to #1018

from androguard.

QU35T-code avatar QU35T-code commented on June 12, 2024

Hi @ehrenb

This doesn't work with pipx.
I'll try it with poetry but I think I'll get the same result.

pipx :

pipx install git+https://github.com/ehrenb/androguard@pyqt5-qt5-fix --force
[...]
pipx >(run_subprocess:168): running <checking pip's availability>
pipx >(run_subprocess:190): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0xffff9cdfaf10>, origin='/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip/__init__.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip'])
pipx >(run_subprocess:193): returncode: 0
Installing to existing venv 'androguard'
creating virtual environment...
pipx >(run_subprocess:168): running /root/.pyenv/versions/3.11.8/bin/python3.11 -m venv --without-pip /root/.local/share/pipx/venvs/androguard
pipx >(run_subprocess:190): stdout:
pipx >(run_subprocess:192): stderr:
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running <checking pip's availability>
pipx >(run_subprocess:190): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0xffff8d95af10>, origin='/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip/__init__.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip'])
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:190): stdout: /root/.local/share/pipx/venvs/androguard/lib/python3.11/site-packages
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python --version
pipx >(run_subprocess:190): stdout: Python 3.11.8
pipx >(run_subprocess:192): stderr:
pipx >(run_subprocess:193): returncode: 0
pipx >(_parsed_package_to_package_or_url:137): cleaned package spec: /tmp/androguard
installing androguard from spec '/tmp/androguard'...
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python -m pip --no-input install --force-reinstall /tmp/androguard
pipx >(run_subprocess:193): returncode: -9
pipx >(subprocess_post_check_handle_pip_error:327): '/root/.local/share/pipx/venvs/androguard/bin/python -m pip --no-input install --force-reinstall /tmp/androguard' failed
pipx >(subprocess_post_check_handle_pip_error:342): Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-04-03_07.50.23_pip_errors.log

pipx >(analyze_pip_output:306): pip seemed to fail to build package:
    PyQt5

pipx >(remove_venv:187): ⚠️  Not removing existing venv /root/.local/share/pipx/venvs/androguard because it was not created in this session
Error installing androguard from spec '/tmp/androguard'.
pipx >(cli:924): PipxError: Error installing androguard from spec '/tmp/androguard'.
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/main.py", line 921, in cli
    return run_pipx_command(parsed_pipx_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/main.py", line 219, in run_pipx_command
    return commands.install(
           ^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/commands/install.py", line 91, in install
    venv.install_package(
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/venv.py", line 254, in install_package
    raise PipxError(f"Error installing {full_package_description(package_name, package_or_url)}.")
pipx.util.PipxError: Error installing androguard from spec '/tmp/androguard'.
pipx >(cli:932): pipx finished.

Log file :

PIP STDOUT
----------
Processing /tmp/androguard
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyQt5 (from androguard==4.1.1)
  Using cached PyQt5-5.15.10.tar.gz (3.2 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started

PIP STDERR
----------

from androguard.

ehrenb avatar ehrenb commented on June 12, 2024

Hi @ehrenb

This doesn't work with pipx. I'll try it with poetry but I think I'll get the same result.

pipx :

pipx install git+https://github.com/ehrenb/androguard@pyqt5-qt5-fix --force
[...]
pipx >(run_subprocess:168): running <checking pip's availability>
pipx >(run_subprocess:190): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0xffff9cdfaf10>, origin='/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip/__init__.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip'])
pipx >(run_subprocess:193): returncode: 0
Installing to existing venv 'androguard'
creating virtual environment...
pipx >(run_subprocess:168): running /root/.pyenv/versions/3.11.8/bin/python3.11 -m venv --without-pip /root/.local/share/pipx/venvs/androguard
pipx >(run_subprocess:190): stdout:
pipx >(run_subprocess:192): stderr:
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running <checking pip's availability>
pipx >(run_subprocess:190): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0xffff8d95af10>, origin='/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip/__init__.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.11/site-packages/pip'])
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:190): stdout: /root/.local/share/pipx/venvs/androguard/lib/python3.11/site-packages
pipx >(run_subprocess:193): returncode: 0
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python --version
pipx >(run_subprocess:190): stdout: Python 3.11.8
pipx >(run_subprocess:192): stderr:
pipx >(run_subprocess:193): returncode: 0
pipx >(_parsed_package_to_package_or_url:137): cleaned package spec: /tmp/androguard
installing androguard from spec '/tmp/androguard'...
pipx >(run_subprocess:168): running /root/.local/share/pipx/venvs/androguard/bin/python -m pip --no-input install --force-reinstall /tmp/androguard
pipx >(run_subprocess:193): returncode: -9
pipx >(subprocess_post_check_handle_pip_error:327): '/root/.local/share/pipx/venvs/androguard/bin/python -m pip --no-input install --force-reinstall /tmp/androguard' failed
pipx >(subprocess_post_check_handle_pip_error:342): Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-04-03_07.50.23_pip_errors.log

pipx >(analyze_pip_output:306): pip seemed to fail to build package:
    PyQt5

pipx >(remove_venv:187): ⚠️  Not removing existing venv /root/.local/share/pipx/venvs/androguard because it was not created in this session
Error installing androguard from spec '/tmp/androguard'.
pipx >(cli:924): PipxError: Error installing androguard from spec '/tmp/androguard'.
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/main.py", line 921, in cli
    return run_pipx_command(parsed_pipx_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/main.py", line 219, in run_pipx_command
    return commands.install(
           ^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/commands/install.py", line 91, in install
    venv.install_package(
  File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pipx/venv.py", line 254, in install_package
    raise PipxError(f"Error installing {full_package_description(package_name, package_or_url)}.")
pipx.util.PipxError: Error installing androguard from spec '/tmp/androguard'.
pipx >(cli:932): pipx finished.

Log file :

PIP STDOUT
----------
Processing /tmp/androguard
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyQt5 (from androguard==4.1.1)
  Using cached PyQt5-5.15.10.tar.gz (3.2 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started

PIP STDERR
----------

It looks like androguard was already installed when you ran. Could you pipx uninstall androguard and try again? I was able to install using pipx and poetry on Linux X64. I also was able to install using poetry on Mac silicon today.

from androguard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.