Coder Social home page Coder Social logo

QT/PyQT/PyOpenGL about berryconda HOT 9 CLOSED

jjhelmus avatar jjhelmus commented on June 26, 2024
QT/PyQT/PyOpenGL

from berryconda.

Comments (9)

jjhelmus avatar jjhelmus commented on June 26, 2024 1

@kmuehlbauer The recipes I used for Qt/PyQt are in the wip_qt branch. The Qt recipe does not yet work and the PyQT recipe uses the system installed Qt5 package. Let me know if you make any progress on this.

from berryconda.

jjhelmus avatar jjhelmus commented on June 26, 2024

Building Qt5 on the Raspberry Pi 3 would be an involved process. Even building the software from source on a powerful x86 machine can take a significant amount of time.

Perhaps a simpler solution would be to install Qt5 via apt get and build PyQt5 against this version. This is not ideal since it depends on more libraries to be provided by the system but it is also more obtainable.

PyOpenGL, at least the one from conda-forge, seems to depend on mesa-libGL-devel being installed on the system. I think this too would be a practical way to provide this package, in fact it may be the only way as pyopengl seems to be a pure Python package that uses ctypes to interface with an opengl library.

from berryconda.

jjhelmus avatar jjhelmus commented on June 26, 2024

I created a recipe for pyopengl and uploaded packages for armv7l. Packages for avmv6l are one their way as well.

I was able to get a PyQt build working using the Qt5 libraries provided by the apt install. I had to disable to QtWebKitWidgets module to get the build working. I am not familiar enough with Qt/PyQt to know how critical this option is to PyQt use. The package was linked against many of the system libraries.

from berryconda.

kmuehlbauer avatar kmuehlbauer commented on June 26, 2024

I was able to get a PyQt build working using the Qt5 libraries provided by the apt install. I had to disable to QtWebKitWidgets module to get the build working. I am not familiar enough with Qt/PyQt to know how critical this option is to PyQt use. The package was linked against many of the system libraries.

Did you also use the conda-forge recipe? I'm a bit at loss atm from where to start.

from berryconda.

kmuehlbauer avatar kmuehlbauer commented on June 26, 2024

I created a recipe for pyopengl and uploaded packages for armv7l. Packages for avmv6l are one their way as well.

@jjhelmus Thanks for quickly looking into this and providing a solution. And berryconda is a great improvement into getting scientific python stack on the PI.

from berryconda.

kmuehlbauer avatar kmuehlbauer commented on June 26, 2024

@jjhelmus This will take some time. If I get improvements I'll come back. Thanks for setting up the branch.

from berryconda.

kmuehlbauer avatar kmuehlbauer commented on June 26, 2024

@jjhelmus Unfortunately the application I use doesn't work well with Qt5. So I copied the pyqt recipe from the qt4-branch and made some changes to run it on the PI. It conda build well so far. I also needed to conda build pyopengl because conda install pyopengl didn't return (it seemed to run forever).

I could create a conda environment with these packages (pyopengl, pyqt, sip) and do pip install vispy to get vispy (and numpy) into this env. I tried to use the packaged numpy, but this wasn't detected by the pip install vispy process. Do you have any ideas on that?

Next step is to try to get Qt build with conda.

from berryconda.

jjhelmus avatar jjhelmus commented on June 26, 2024

Qt4 is available via apt which might be a short term solution. I expect building Qt from scratch will be a long and difficult process given that building it on traditionally platforms is challenging.

I'm not sure why conda install pyopengl did not work, updating conda might help.

I do not have a good answer as to why numpy was not seen by pip when installing vispy. Does numpy show up in pip list? The numpy conda package includes a .egg-info directory which pip should be detecting. It might be good to double check that the pip in question is coming from the conda install and from the correct environment.

from berryconda.

flatflyfish avatar flatflyfish commented on June 26, 2024

Apologies as i'm a bit of a noob, but can someone help explain how to install pyqt4 on berryconda via apt-get? Once installed the berryconda version of Python doesn't seem to acknowledge the pyqt4 install.

from berryconda.

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.