Comments (8)
It's good :)
whole procedure:
$ pyenv shell 3.12.0
$ virtualenv venv
$ source venv/bin/activate
$ pip install poetry
$ poetry install
Updating dependencies
Resolving dependencies... (1.6s)
Package operations: 44 installs, 0 updates, 0 removals
- Installing markupsafe (2.1.5)
- Installing six (1.16.0)
- Installing asttokens (2.4.1)
- Installing executing (2.0.1)
- Installing mako (1.3.2)
- Installing numpy (1.26.4)
- Installing parso (0.8.3)
- Installing pure-eval (0.2.2)
- Installing sqlalchemy (1.4.52)
- Installing traitlets (5.14.2)
- Installing typing-extensions (4.10.0)
- Installing wcwidth (0.2.13)
- Installing alembic (1.13.1)
- Installing banal (1.0.6)
- Installing contourpy (1.2.1)
- Installing cycler (0.12.1)
- Installing decorator (5.1.1)
- Installing fonttools (4.50.0)
- Installing jedi (0.19.1)
- Installing kiwisolver (1.4.5)
- Installing matplotlib-inline (0.1.6)
- Installing pillow (10.3.0)
- Installing prompt-toolkit (3.0.43)
- Installing pygments (2.17.2)
- Installing pyparsing (3.1.2)
- Installing pyqt5-qt5 (5.15.13)
- Installing pyqt5-sip (12.13.0)
- Installing python-dateutil (2.9.0.post0)
- Installing stack-data (0.6.3)
- Installing apkinspector (1.2.2)
- Installing asn1crypto (1.5.1)
- Installing click (8.1.7)
- Installing colorama (0.4.6)
- Installing dataset (1.6.2)
- Installing frida (16.2.1)
- Installing ipython (8.18.1)
- Installing loguru (0.7.2)
- Installing lxml (5.2.1)
- Installing matplotlib (3.8.4)
- Installing mutf8 (1.0.6)
- Installing networkx (3.2.1)
- Installing pydot (2.0.0)
- Installing pyqt5 (5.15.10)
- Installing pyyaml (6.0.1)
Writing lock file
Installing the current project: androguard (4.1.1)
from androguard.
This is because PyQT5-qt5 has been releasing whls on PyPi for ONLY macosx arm64 and x64 for some reason. The previous fix I made constrained the PyQT5-Qt5 package in poetry to {version = "^5.15,!=5.15.11,!=5.15.12",!=5.15}
. This "fix" made the assumption the future 5.15.13
would fix this by including linux/windows whls. Well, 5.15.13
was just released, and only contains the macos whls again...so we should lock this dependency strictly to 5.15.2
for a while I think.
I tested the below and was able to install again using poetry install
:
pyproject.toml
...
networkx = "*"
PyQt5 = "*"
PyQt5-Qt5 = {version = "5.15.2"}
...
Related to #985 (comment) which stemmed from this: python-poetry/poetry#8540.
Looks like there was a very recent release of PyQt5-qt5: https://pypi.org/project/PyQt5-Qt5/#history
I have generated a PR with this fix: #1019
from androguard.
Oh thx dude! May I ask would there be a hot fix release like 4.1.2? That would be a great help to all the users :)
from androguard.
Oh thx dude! May I ask would there be a hot fix release like 4.1.2? That would be a great help to all the users :)
from androguard.
Will release another patch version in the coming days
from androguard.
It seems like even lock down to pyqt5-qt5 5.15.2, it still fails on apple silicon environment. Linux x86_64 is ok though
from androguard.
Ok, this should be resolvable by installing the "right" version based on a platform condition. For example, when sys_platform == 'darwin'
and (platform_machine == 'arm64'
or platform_machine == 'x86_64'
), we should be safe to install the latest version of pyqt5-qt5, otherwise we need to use the older version. I don't have an ARM MacOS machine to test this on.
- https://python-poetry.org/docs/dependency-specification/#using-environment-markers
- https://peps.python.org/pep-0508/#environment-markers
from androguard.
It seems like even lock down to pyqt5-qt5 5.15.2, it still fails on apple silicon environment. Linux x86_64 is ok though
Could you try cloning and running poetry install
on this forked branch https://github.com/ehrenb/androguard/tree/pyqt5-qt5-fix and share the output?
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
- Decompilation crashes during export
- Installation on ARM64 HOT 5
- 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.