Giter Site home page Giter Site logo

Comments (11)

dschick avatar dschick commented on June 28, 2024

Hi,

same for me though.

QtWebkit seems to be hard to get for PyQt4.
I tried to change al imports from PyQt4 to PyQt5 and were able to install without errors.
However, when trying the simple example the taurus imports do import again PyQt4 and this crashes the example due to the imports of both versions.
Also the QtWebkit seems to differ from PyQt4 to PyQt5, at least the sub-modules seem to be different.

from lib-maxiv-svgsynoptic.

dschick avatar dschick commented on June 28, 2024

moreover, this packges seems to be python2.
Are there any efforts to directly move to python3?

Is there maybe a demo available?
I would really like to test it!

from lib-maxiv-svgsynoptic.

hayg25 avatar hayg25 commented on June 28, 2024

Dear @dschick,
I used conda to install all the needed packages under ubuntu18 / debian9 but I had the following issue:

Fontconfig warning: ignoring C.UTF-8: not a valid language tag
init TaurusSynopticWidget
/home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo/example.html
var modelNames ={value3 : "sys/tg_test/2/ampli",value2 : "sys/tg_test/1/ampli",value1 : "sys/tg_test/1/double_scalar",};
absolute path /home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo//home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo/example.html
placeholder found
set_url /home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo/example.html
JsConsole(file:///home/guler/anaconda3/envs/taurus_sardana2/lib/python2.7/site-packages/svgsynoptic2/web/js/main.js:68):
load /home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo/example.svg
JsConsole(file:///home/guler/anaconda3/envs/taurus_sardana2/lib/python2.7/site-packages/svgsynoptic2/web/js/main.js:68):
/home/guler/anaconda3/envs/taurus_sardana2/lib/python2.7/site-packages/svgsynoptic2/web/
JsConsole(:1):
XMLHttpRequest cannot load file:///home/guler/TANGO/Repository/MaxIV/lib-maxiv-svgsynoptic/examples/tango_ooo/example.svg. Cross origin requests are only supported for HTTP.
JsConsole(undefined:0):
TypeError: 'null' is not an object
JsConsole(undefined:0):
NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.  

it seems that the code should be updated at some point.
may be @AntoineDupre have you a way to solve those problems ?

Thx

from lib-maxiv-svgsynoptic.

dschick avatar dschick commented on June 28, 2024

hi @hayg25 , thanks for your help.
I actually wanted to avoid using conda, since I am using pip in my installation.
But I fear that conda might be the only way to get PyQT.Qtwebkit running on Ubuntu.

So having an updated version of the code is highly appriciated.

from lib-maxiv-svgsynoptic.

dschick avatar dschick commented on June 28, 2024

maybe one can have a look at #32

from lib-maxiv-svgsynoptic.

wkitka avatar wkitka commented on June 28, 2024

Hej @hayg25 and @dschick,
You may want to check #31
It worked fine in my local test environment with Python 3.6, Taurus 4.7 and PyQt 5.15.
You should be able to install all the dependencies from pip.

from lib-maxiv-svgsynoptic.

hayg25 avatar hayg25 commented on June 28, 2024

dear @wkitka ,
that's a really good news ! I will check asap. Is it on the developp branch ?

Cheers

from lib-maxiv-svgsynoptic.

wkitka avatar wkitka commented on June 28, 2024

Hej @hayg25,

it's not yet merged into develop branch. You can find code here: https://github.com/wkitka/lib-maxiv-svgsynoptic/tree/python3

from lib-maxiv-svgsynoptic.

hayg25 avatar hayg25 commented on June 28, 2024

Hi @wkitka,
so I have few issues to install the module, but nothing serious.
But, I had problem when I tried to run it :

MainThread     INFO     2020-10-20 19:18:24,184 TaurusRootLogger: Using PyQt5 (v5.12.3 with Qt 5.12.5 and Python 3.8.6)
MainThread     INFO     2020-10-20 19:18:24,606 TaurusRootLogger: Plugin "taurus_pyqtgraph" lazy-loaded as "taurus.qt.qtgui.tpg"
MainThread     WARNING  2020-10-20 19:18:27,621 TaurusRootLogger: Qtdefault None.None[0]: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
MainThread     CRITICAL 2020-10-20 19:18:28,611 TaurusRootLogger: Qtdefault None.None[0]: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
Aborted

any idea ?
btw I run it under python 3.8.6 with pyqt5.12

from lib-maxiv-svgsynoptic.

hayg25 avatar hayg25 commented on June 28, 2024

Hi again,
first issue was related to the config file :

# I commented the line below and installation works fine
#release = 1%{?dist}.maxlab

from lib-maxiv-svgsynoptic.

hayg25 avatar hayg25 commented on June 28, 2024

Hi @wkitka ,
just an answer about my last attempt : it did not work through ssh, but works fine if I do it directly on the server.

from lib-maxiv-svgsynoptic.

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.