Coder Social home page Coder Social logo

Comments (8)

JackLiar avatar JackLiar commented on June 10, 2024 1

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.

ehrenb avatar ehrenb commented on June 10, 2024

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.

JackLiar avatar JackLiar commented on June 10, 2024

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.

ehrenb avatar ehrenb commented on June 10, 2024

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 :)

@erev0s

from androguard.

erev0s avatar erev0s commented on June 10, 2024

Will release another patch version in the coming days

from androguard.

JackLiar avatar JackLiar commented on June 10, 2024

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.

ehrenb avatar ehrenb commented on June 10, 2024

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.

from androguard.

ehrenb avatar ehrenb commented on June 10, 2024

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)

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.