HOME Prise de donnees MML Controle commande Simulations Notes Hardware Ligne X Laser Interaction Diagnostiques Synchronisation
Controle commande TANGO IHM CC ELLIOOS
  Notes concernant les Controle commande  Not logged in ThomX    logo
Message ID: 58     Entry time: Fri Feb 9 15:15:19 2024
 Author: Entered by Hayg Guler from 134.158.89.243 on Fri Feb 9 15:15:06 2024 
 Status: Under Process 
 Type: Info 
 Category: Tango 
 Important:
 Subject: Démarrage depuis client6 
 Icon: icon1.gif 

Quel Python : 2.7 dans /usr/bin 

IHM :

ok, se lance,  sauf erreur dans le terminal : 

('------------ ', '/data/shared/Interfaces/panneaux/')
ERREUR lors de l'import IHM_health_check !!!
No module named gobject
ERREUR lors de l'import IHM_astor_server !!!
No module named gobject
('HOME_IHM = ', '/data/shared/Interfaces/panneaux/')
('IHM_SST after import #1', '15:13:53')
('IHM_SST after home IHM', '15:13:53')
('------------ ', '/data/shared/Interfaces/panneaux/')
('------------ ', '/data/shared/Interfaces/panneaux/')
ERREUR lors de l'import IHM_SST !!!
No module named gobject

Solutions ? https://stackoverflow.com/questions/37323567/install-gobject-module 

Installing the system provided PyGObject:

  1. Open a terminal
  2. Execute sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
  3. Change the directory to where your hello.py script can be found (e.g. cd Desktop)
  4. Run python3 hello.py

Installing from PyPI with pip:

  1. Open a terminal and enter your virtual environment
  2. Execute sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 to install the build dependencies and GTK
  3. Execute pip3 install pycairo to build and install Pycairo
  4. Execute pip3 install PyGObject to build and install PyGObject
  5. Change the working directory to where your hello.py script can be found
  6. Run python3 hello.py

 

Python 3.8 :

conda /data/shared/miniconda3/envs/tango_py3.8/bin/python
Taurus : version 5.1.4

IHM se lance mais plusieurs erreur subsistent par exemple des print

(tango_py3.8) [15:24:31] operateur.thomx@client6:/tmp_mnt/data/operateur.thomx > IHM
[2] 5851
(tango_py3.8) [15:24:34] operateur.thomx@client6:/tmp_mnt/data/operateur.thomx > MainThread     INFO     2024-02-09 15:24:47,654 TaurusRootLogger: Using PyQt5 (v5.12.3 with Qt 5.12.9 and Python 3.8.12)
MainThread     INFO     2024-02-09 15:24:50,994 TaurusRootLogger: Plugin "taurus_pyqtgraph" lazy-loaded as "taurus.qt.qtgui.tpg"
ERREUR lors de l'import screenshot !!!
No module named 'commands'
ERREUR lors de l'import IHM_health_check !!!
cannot import name 'Qwt5' from 'taurus.external.qt' (/data/shared/miniconda3/envs/tango_py3.8/lib/python3.8/site-packages/taurus/external/qt/__init__.py)
ERREUR lors de l'import IHM_astor_server !!!
cannot import name 'Qwt5' from 'taurus.external.qt' (/data/shared/miniconda3/envs/tango_py3.8/lib/python3.8/site-packages/taurus/external/qt/__init__.py)
ERREUR lors de l'import Laser_PhotoCathode !!!
invalid syntax (astor_server.py, line 116)
ERREUR lors de l'import Modulator !!!
Missing parentheses in call to 'print'. Did you mean print("tangotest: ", val.value, " ", value0," ", value1," ",value2)? (ModulateurStatus.py, line 124)
ERREUR lors de l'import powerSupply !!!
Missing parentheses in call to 'print'. Did you mean print(exc)? (powerSupply.py, line 55)
ERREUR lors de l'import IHM_RF !!!
No module named 'PyQt4'
ERREUR lors de l'import IHMLogBook !!!
Missing parentheses in call to 'print'. Did you mean print(self.tabAttachments)? (IHMLogBook.py, line 121)
ERREUR lors de l'import DevicesController !!!
Missing parentheses in call to 'print'. Did you mean print('Error ', i)? (DevicesController.py, line 63)
ERREUR lors de l'import DevicesStatus !!!
No module named 'PyQt4'
ERREUR lors de l'import IHM_SST !!!
Missing parentheses in call to 'print'. Did you mean print(exc)? (IHM_SST.py, line 94)
ERREUR lors de l'import IHM_power !!!
Missing parentheses in call to 'print'. Did you mean print(exc)? (IHM_power.py, line 95)
MainThread     WARNING  2024-02-09 15:24:55,111 TaurusRootLogger: <frozen importlib._bootstrap>:219: DeprecationWarning: taurus.qt.qtgui.plot is deprecated since 4.5. Use taurus_pyqtgraph instead

MainThread     INFO     2024-02-09 15:24:57,533 TaurusRootLogger: plot: Using taurus_pyqtgraph to provide a minimal API to facilitate the transition
ERREUR lors de l'import IHM_charge !!!
No module named 'PyQt4'
ERREUR lors de l'import delays !!!
Missing parentheses in call to 'print'. Did you mean print(exc)? (delays.py, line 106)
ERREUR lors de l'import phase !!!
 

 


 

ELOG V3.1.4-395e101