Giter Site home page Giter Site logo

Comments (8)

kklmn avatar kklmn commented on September 17, 2024

have you tried pip install PyQtWebEngine ?

from xrt.

kklmn avatar kklmn commented on September 17, 2024

You've made me check that we can actually work with the fresh pyqt versions, and the answer is positive on Windows 10, Kubuntu 18.10 and High Sierra, please see the screenshots below.
In all three cases I used Anaconda, and on Windows 10 all the packages were the latest. So I suggest going through xrt.rtfd.io/instructions.html.
Please report back on the progress/failures.

W10_s

Kubuntu18 10_s

HighSierra_s

from xrt.

yxrmz avatar yxrmz commented on September 17, 2024

I can confirm that everything works fine on python 3.6.7 with qt 5.9.6, PyQt5 5.9.2
You could try to update your conda qt/pyqt installation as recommended here conda-forge/pyqt-feedstock#19

from xrt.

kklmn avatar kklmn commented on September 17, 2024

@mrakitin: any progress on the issue?

from xrt.

mrakitin avatar mrakitin commented on September 17, 2024

Hi @kklmn, sorry for the late reply. No progress on that. I got stuck with conda-provided packages for PyQt5, not sure how to resolve it. pip packages seem to work though. I don't know if anything can be done on your side, e.g. using something else than QtWebKitWidgets, or making it an optional import?

from xrt.

kklmn avatar kklmn commented on September 17, 2024

QtWebKitWidgets is our second choice:

    try:
        import PyQt5.QtWebEngineWidgets as QtWeb
    except ImportError:
        import PyQt5.QtWebKitWidgets as QtWeb

It is expected that you have QtWebKitWidgets only if you don't have QtWebEngineWidgets.
Please do in a python session:

import PyQt5
import PyQt5.QtWebEngineWidgets

and provide the error message.

from xrt.

mrakitin avatar mrakitin commented on September 17, 2024

Actually, the problem appeared to be related to the missing libEGL.so.1 lib:

ImportError: libEGL.so.1: cannot open shared object file: No such file or directory

See the details at https://travis-ci.org/NSLS-II/lightsource2-recipes/jobs/587514703#L1022. Installing libegl1-mesa in our Debian docker image (NSLS-II/debian-with-miniconda#20) solved the problem.

The recipe was successfully build via:

Do you want to make this recipe/package available on conda-forge? It would be trivial to create one as we already have a working recipe feedstock using their infrastructure.

from xrt.

mrakitin avatar mrakitin commented on September 17, 2024

I think this problem is resolved. Pending on your reply about the conda-forge.

from xrt.

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.