From: Carlos M. F. T. <cf...@ce...> - 2016-07-27 08:03:04
|
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? fromtaurus.qt.qtgui.plotimportTaurusPlot fromtaurus.qt.qtgui.applicationimportTaurusApplication importsys 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”: > > when I try to run taurusplot I get error: > > 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...> > *Date: *Tuesday 26 July 2016 at 08:28 > *To: *Lukasz <luk...@uj...>, Zbigniew Reszela > <zre...@ce...>, "tau...@li..." > <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: > > 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: > > and: > > 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 > > -- > > A Synchrot <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 > |