Comments (5)
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.
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.
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)
- Session save and load don't work / exist HOT 1
- Error trying to install HOT 2
- ValueError: 4 is not a valid HiddenApiClassDataItem.DomapiApiFlag HOT 1
- Error: No such command 'cg' HOT 1
- Question about dx.get_permissions(a.get_effective_target_sdk_version())
- A malform AndroidManifest file HOT 3
- The new two types of TypeMapItem are not parsed in androguard.core.dex.parse HOT 8
- ResParserError: res1 must be zero! HOT 9
- get_android_resources function exception struct.error: unpack requires a buffer of 2 bytes HOT 5
- Could not install androguard in Python 3.12.2 using poetry due to no matching version pyqt5-qt5 HOT 8
- Decompilation crashes during export
- handles duplicate block IDs in APK Signing Block differently from Android/apksigner HOT 3
- 4.1.1 - androguard sign --show --all is broken - same way as Androguard 3.* was broken in #764 HOT 1
- androguard.core.api_specific_resources: Requested API level 34 is larger than maximum we have, returning API level 28 instead. HOT 1
- question about call graph HOT 1
- There is a problem in obtaining permission_module HOT 2
- AssertionError: "dot" with args ['-Tpng', 'C:\\Users\\walea\\AppData\\Local\\Temp\\tmpx9yppf7q'] returned code: 1 HOT 1
- Why can't find the class Landroid/os/Build;? HOT 1
- Get only imported, used class and modules not all names under the packages HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androguard.