From: Łukasz Ż. <luk...@uj...> - 2016-07-27 12:48:40
|
Hi Carlos, I installed new VM to have clean installation of Taurus Installed /home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg Processing dependencies for taurus==4.0.1 Finished processing dependencies for taurus==4.0.1 mint@mint-VirtualBox ~/workspace/taurus $ ipython Python 2.7.6 (default, Jun 22 2015, 17:58:13) Type "copyright", "credits" or "license" for more information. IPython 1.2.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import taurus In [2]: taurus Out[2]: <module 'taurus' from '/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/__init__.pyc'> In [3]: taurus.Release.version Out[3]: '4.0.1' I tried your script: mint@mint-VirtualBox ~/workspace $ python taurusplot-test.py MainThread INFO 2016-07-27 14:13:06,967 TaurusRootLogger: Using "PyQt4" for Qt MainThread INFO 2016-07-27 14:13:07,204 taurus.qt.qtgui.icon.icon: Setting Tango icon theme (from /home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtgui/icon/) MainThread WARNING 2016-07-27 14:13:17,024 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 14:13:17,025 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 14:13:17,025 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 14:13:17,025 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 14:13:17,026 localhost.DefaultEvaluator.localhost: Missing symbol "localhost" MainThread WARNING 2016-07-27 14:13:17,027 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax Traceback (most recent call last): File "/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtgui/model/qbasemodel.py", line 581, in setModel model.setDataSource(modelObj) File "/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusmodel.py", line 223, in setDataSource self.refresh() File "/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusdatabasemodel.py", line 378, in refresh TaurusBaseModel.refresh(self, refresh_source=refresh_source) File "/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusmodel.py", line 202, in refresh self.setupModelData(self.dataSource()) File "/home/mint/.local/lib/python2.7/site-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusdatabasemodel.py", line 541, in setupModelData for domain in data.keys(): AttributeError: 'EvaluationAuthority' object has no attribute 'keys' MainThread INFO 2016-07-27 14:14:58,259 TaurusRootLogger: ********************* < Deprecation Counts (0): > Best regards, Lukasz From: Carlos Manuel Falcon Torres <cf...@ce...> Date: Wednesday 27 July 2016 at 10:02 To: Lukasz <luk...@uj...>, Zbigniew Reszela <zre...@ce...>, "tau...@li..." <tau...@li...> Subject: Re: [tauruslib-devel] Taurus & data visualization from file Hi Łukasz, It looks like very interesting. Let see how to solve your problems. How did you install taurus? and from where? I did a test installing from git and it works for me : git clone git://git.code.sf.net/p/tauruslib/taurus.git taurus cd taurus git checkout 4.0.1 python setup.py install in ipython In [1]: import taurus In [2]: taurus Out[2]: <module 'taurus' from '/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/__init__.pyc'> In [3]: taurus.Release.version Out[3]: '4.0.1' vi /usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/ # Set your default scheme (if not defined, "tango" is assumed) DEFAULT_SCHEME = "eval" taurusplot MainThread INFO 2016-07-27 07:45:02,863 TaurusRootLogger: Using "PyQt4" for Qt MainThread INFO 2016-07-27 07:45:02,960 taurus.qt.qtgui.icon.icon: Setting Tango icon theme (from /usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtgui/icon/) MainThread WARNING 2016-07-27 07:45:03,043 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 07:45:03,045 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 07:45:03,045 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 07:45:03,045 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax MainThread WARNING 2016-07-27 07:45:03,080 localhost.DefaultEvaluator.localhost: Missing symbol "localhost" MainThread WARNING 2016-07-27 07:45:03,081 TaurusRootLogger: Model name "eval://localhost" is supported but not strictly valid. It is STRONGLY recommended that you change it to strictly follow eval scheme syntax Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtgui/model/qbasemodel.py", line 581, in setModel model.setDataSource(modelObj) File "/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusmodel.py", line 223, in setDataSource self.refresh() File "/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusdatabasemodel.py", line 378, in refresh TaurusBaseModel.refresh(self, refresh_source=refresh_source) File "/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusmodel.py", line 202, in refresh self.setupModelData(self.dataSource()) File "/usr/local/lib/python2.7/dist-packages/taurus-4.0.1-py2.7.egg/taurus/qt/qtcore/model/taurusdatabasemodel.py", line 541, in setupModelData for domain in data.keys(): AttributeError: 'EvaluationAuthority' object has no attribute 'keys' I reported the attribute error in a taurus ticket (but it seems to be innocuous ) for your purposes. I attached you the taurusplot snapshot as I see. If previously you had installed taurus3, please be sure that it was uninstalled, maybe you have a conflict with the taurus launchers. Could you run this code and say me if it works for you? from taurus.qt.qtgui.plot import TaurusPlot from taurus.qt.qtgui.application import TaurusApplication import sys app = TaurusApplication() w = TaurusPlot() w.show() sys.exit(app.exec_()) Best, Carlos On 07/26/2016 11:00 PM, Łukasz Żytniak wrote: Hi Carlos, Thank you for fast reply. I changed in the tauruscustomsetting file the default scheme from “tango” to “eval”: [cid:image001.png@01D1E813.B7AB1400] when I try to run taurusplot I get error: [cid:image002.png@01D1E813.B7AB1400] I was on EuroPython and there was company that want to monitor devices in factory using python, I believe that taurus and Sardana in the future might be good solution for them. I spoke with project leader and he was interested. I would like to run some demo to present taurus magic :-) Best regards, Lukasz From: Carlos Manuel Falcon Torres <cf...@ce...><mailto:cf...@ce...> Date: Tuesday 26 July 2016 at 08:28 To: Lukasz <luk...@uj...><mailto:luk...@uj...>, Zbigniew Reszela <zre...@ce...><mailto:zre...@ce...>, "tau...@li..."<mailto:tau...@li...> <tau...@li...><mailto:tau...@li...> Subject: Re: [tauruslib-devel] Taurus & data visualization from file Hi Łukasz, The problem is that taurus assumes as default scheme Tango (for backward compatibilities reasons), and for that you see this error. The modelchooser is trying to connect to a Tango DB, to avoid it you have two options: a) Modify in the tauruscustomsetting file the default scheme. e.g. use Eval b) Give a non tango model name when you call the taurus widget. e.g. eval:1 What are you trying? What scheme are you planning to use? I hope this help you! Best, Carlos On 07/25/2016 08:23 PM, Łukasz Żytniak wrote: Hi Carlos, I have taurus 4.0.1: [cid:image003.png@01D1E813.B7AB1400] Any advice? Best regards, Lukasz From: Carlos Manuel Falcon Torres <cf...@ce...><mailto:cf...@ce...> Date: Monday 25 July 2016 at 08:29 To: Lukasz <luk...@uj...><mailto:luk...@uj...>, Zbigniew Reszela <zre...@ce...><mailto:zre...@ce...>, "tau...@li..."<mailto:tau...@li...> <tau...@li...><mailto:tau...@li...> Subject: Re: [tauruslib-devel] Taurus & data visualization from file Hi Lukasz, Which version of taurus did you have installed? Only Taurus 4 is agnostic (It is not necessary to install PyTango if you will not use tango scheme) You can install it from repository (sourceforge ) or pypi (https://pypi.python.org/pypi/taurus/4.0.1) git clone git://git.code.sf.net/p/tauruslib/taurus.git taurus python taurus/setup.py install Your 2nd snapshot is a bug that is fixed in Taurus 4, but however could be some widgets that are still being Tango-Centric. Best, Carlos On 07/23/2016 11:09 AM, Łukasz Żytniak wrote: Hello Zibi, Thank you for fast answer! I hoped to use taurus without Tango, I installed on VM only taurus (apt install python-taurus) But I get an error: [cid:image004.png@01D1E813.B7AB1400] and: [cid:image005.png@01D1E813.B7AB1400] is it possible to use taurus without PyTango? Thank you for your help in advance. Best regards, Lukasz From: Zbigniew Reszela <zre...@ce...><mailto:zre...@ce...> Date: Friday 22 July 2016 at 18:27 To: "tau...@li..."<mailto:tau...@li...> <tau...@li...><mailto:tau...@li...> Subject: Re: [tauruslib-devel] Taurus & data visualization from file Hi Lukasz, TaurusPlot is able to import data from a file: http://www.taurus-scada.org/en/stable/users/ui/plot.html#choosing-what-is-plotted I think that precisely CSV is not supported and the separator must be a white character and not a comma (you could try with the attached file). One of the Taurus4 objectives was to make the development of the custom Taurus schemes more user friendly. Personally I have not written any yet, but this should be relatively easy. That means that you could write one for your file format and use Taurus widgets to visualize data from the file. Have a nice weekend! Zibi On 07/22/2016 04:26 PM, Łukasz Żytniak wrote: Hello, I have a question, is it possible to visualize data from CSV file using taurus? Best regards, Lukasz ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Tauruslib-devel mailing list Tau...@li...<mailto:Tau...@li...> https://lists.sourceforge.net/lists/listinfo/tauruslib-devel -- [Synchr]<http://www.albasynchrotron.es> Zbigniew Reszela Controls Section - Computing Division ALBA SYNCHROTRON LIGHT SOURCE Carrer de la Llum 2-26 | 08290 | Cerdanyola del Vallès| Barcelona | Spain<http://www.albasynchrotron.es/AboutUs/Access> (+34) 93 592 4407 www.albasynchrotron.es<http://www.albasynchrotron.es> | zre...@ce...<mailto:zre...@ce...> Please, do not print this e-mail unless it is absolutely necessary. Si heu rebut aquest correu per error, us informo que pot contenir informació confidencial i privada i que està prohibit el seu ús. Us agrairíem que ho comuniqueu al remitent i l'elimineu. Gràcies. Si ha recibido este correo por error, le informo de que puede contener información confidencial y privada y que está prohibido su uso. Le agradeceré que lo comunique a su remitente y lo elimine. Gracias. If you have received this e-mail in error, please note that it may contain confidential and private information, therefore, the use of this information is strictly forbidden. Please inform the sender of the error and delete the information received. Thank you. ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Tauruslib-devel mailing list Tau...@li...<mailto:Tau...@li...> https://lists.sourceforge.net/lists/listinfo/tauruslib-devel |