Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2019-10-02 09:05:24

mecour
Member
From: Ostrava (Czech)
Registered: 2011-04-04
Posts: 132

AsterStudy PyQT5 problem

Hello,

after some problems described here code-aster.org/forum2/viewforum.php?id=26 I was able to run salome_meca2019.

When I tried to run the AsterStudy I obtain the message Failed to activate module AsterStudy, with error message in shell:

Traceback (most recent call last):
  File "/home/mecour/bin/sm2019/appli_V2019_univ/lib/python3.6/site-packages/salome/ASTERSTUDYGUI.py", line 29, in <module>
    from asterstudy.common import debug_message, info_message
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/__init__.py", line 29, in <module>
    from .excepthook import enable_except_hook
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/excepthook.py", line 29, in <module>
    from .utilities import show_exception
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/utilities.py", line 890, in <module>
    def connect(signal, slot, connection_type=Q.Qt.UniqueConnection):
AttributeError: module 'PyQt5.Qt' has no attribute 'Qt'
Traceback (most recent call last):
  File "/home/mecour/bin/sm2019/appli_V2019_univ/lib/python3.6/site-packages/salome/ASTERSTUDYGUI.py", line 29, in <module>
    from asterstudy.common import debug_message, info_message
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/__init__.py", line 29, in <module>
    from .excepthook import enable_except_hook
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/excepthook.py", line 29, in <module>
    from .utilities import show_exception
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/utilities.py", line 890, in <module>
    def connect(signal, slot, connection_type=Q.Qt.UniqueConnection):
AttributeError: module 'PyQt5.Qt' has no attribute 'Qt'
Traceback (most recent call last):
  File "/home/mecour/bin/sm2019/appli_V2019_univ/lib/python3.6/site-packages/salome/ASTERSTUDYGUI.py", line 29, in <module>
    from asterstudy.common import debug_message, info_message
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/__init__.py", line 29, in <module>
    from .excepthook import enable_except_hook
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/excepthook.py", line 29, in <module>
    from .utilities import show_exception
  File "/home/mecour/bin/sm2019/V2019_univ/modules/ASTERSTUDY_20190/lib/python3.6/site-packages/asterstudy/common/utilities.py", line 890, in <module>
    def connect(signal, slot, connection_type=Q.Qt.UniqueConnection):
AttributeError: module 'PyQt5.Qt' has no attribute 'Qt'

How can I change the salome local PyQT5 libraries to system one?

thank you

mecour

Offline