taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

DeprecationWarning when using taurus newgui CLI #1119

Open lucabar opened 4 years ago

lucabar commented 4 years ago

Hey everyone, I'm pretty new to taurus and thus facing a problem I can't fix by myself. I'm running taurus, tango and sardana on Linux Mint 19.3 and python3 and am currently trying to set up a new gui configuration in taurus. I have installed all of the dependencies for taurus except the PyQt4.Qwt5<=5.2 (but I think that should not be a problem since I'm using pyqtgraph).

Now when I run taurus newgui or taurus designer I get the following warning:

MainThread     WARNING  2020-06-23 14:54:32,193 TaurusRootLogger: <frozen importlib._bootstrap>:219: DeprecationWarning: taurus.external.qt.Qwt5 is deprecated since 4.5
terminate called after throwing an instance of 'Tango::DevFailed'
Aborted (core dumped)

And what puzzles me most about this is that besides designer and newgui all other taurus applications run without a problem. I can plot using taurus tpg, I can read and write attributes within the taurus panel or taurus device.

Has anyone else encountered this or does anyone know what possible solutions there could be?

cpascual commented 4 years ago

Hi, welcome to the community! First of all, quite probably the abort (with core dump) is unrelated to the previous deprecation warning, and most likely related to either Tango or Qt (more on this later)

Regarding the deprecation warning, I can reproduce it when I run taurus designer (I just filed a bug report with it) but not when I run taurus newgui (I tested with the latest version from the develop branch).

Can you please report which version of taurus are you using (taurus --version) and how you installed it (from pip, from .deb packages, from conda...)? Also the same questions for the dependencies, especially for Qt, PyQt and (py)tango...

Also, if possible, it would be great if you could check if you reproduce the issue with taurus from the develop branch?

PS: Regarding the crash, note that this bug in tango that is causing quite a lot of crashes in taurus, is probably fixed with cpptango 9.3.4-rc5

reszelaz commented 4 years ago

Hi all,

terminate called after throwing an instance of 'Tango::DevFailed' Aborted (core dumped)

Kind of similar error message to the one from https://github.com/taurus-org/taurus/issues/1086

lucabar commented 4 years ago

Hi thanks for all your tips! I reinstalled both tango and taurus (with all needed dependencies) because I could not remember exactly how I installed all of the dependencies (I usually do it through pip). After reinstalling, taurus newgui works but taurus designer still does not. This is not a huge problem, though, because I'm mainly interested in creating my own GUI and the designer applet is optional for me.

cpascual commented 4 years ago

After reinstalling, taurus newgui works but taurus designer still does not. This is not a huge problem, though, because I'm mainly interested in creating my own GUI and the designer applet is optional for me.

ok, I am glad to hear you are no longer blocked by this issue... still, if you want us to have a look at the problem with the designer, please provide the info about installed versions and installed method.

I usually do it through pip

I normally use either deb packages (but they are not as up-to-date) or conda. Here you have a recipe for installing taurus and all its dependencies which should leave you with a working installation