You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using pyside6 (pyDracula) to build GUI and connecting to pyfluent code. After importing pyside6, pyfluent could not be imported successfully.
Error message:
"c:/Users/u/OneDrive - Trane Technologies/Desktop/code/Modern_GUI_PyDracula_PySide6_or_PyQt6-master/have a test/main.py"
Traceback (most recent call last):
File "c:\Users\u\OneDrive - Trane Technologies\Desktop\code\Modern_GUI_PyDracula_PySide6_or_PyQt6-master\have a test\main.py", line 18, in
meshing = pyfluent.launch_fluent(precision="double", processor_count=4, mode="meshing", ui_mode="gui")
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\utils\deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\utils\deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\launcher.py", line 292, in launch_fluent
launcher = launcher_type(**launcher_argvals)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\standalone_launcher.py", line 212, in init
self._launch_string += _build_journal_argument(
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\launcher_utils.py", line 85, in build_journal_argument
from beartype import BeartypeConf, beartype
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_init.py", line 158, in
from beartype._decor.decormain import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_decor\decormain.py", line 26, in
from beartype._conf.confcls import BeartypeConf
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_conf\confcls.py", line 49, in
from beartype._conf.confoverrides import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_conf\confoverrides.py", line 14, in
from beartype.roar import BeartypeHintOverridesException
File "shibokensupport/signature/loader.py", line 61, in feature_imported
File "shibokensupport/feature.py", line 137, in feature_imported
File "shibokensupport/feature.py", line 148, in _mod_uses_pyside
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1147, in getsource
lines, lnum = getsourcelines(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1128, in getsourcelines
object = unwrap(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 639, in unwrap
while _is_wrapper(func):
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 630, in is_wrapper
return hasattr(f, 'wrapped')
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype\roar_init.py", line 180, in getattr
from beartype._util.module.utilmoddeprecate import deprecate_module_attr
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\module\utilmoddeprecate.py", line 21, in
from beartype._util.utilobject import SENTINEL
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\utilobject.py", line 19, in
from beartype._data.cls.datacls import TYPES_CONTEXTMANAGER_FAKE
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_data\cls\datacls.py", line 18, in
from beartype._cave._cavefast import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_cave_cavefast.py", line 46, in
from beartype.roar import BeartypeCallUnavailableTypeException
File "shibokensupport/signature/loader.py", line 61, in feature_imported
File "shibokensupport/feature.py", line 137, in feature_imported
File "shibokensupport/feature.py", line 148, in _mod_uses_pyside
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1147, in getsource
lines, lnum = getsourcelines(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1128, in getsourcelines
object = unwrap(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 639, in unwrap
while _is_wrapper(func):
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 630, in is_wrapper
return hasattr(f, 'wrapped')
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype\roar_init.py", line 180, in getattr
from beartype._util.module.utilmoddeprecate import deprecate_module_attr
ImportError: cannot import name 'deprecate_module_attr' from partially initialized module 'beartype._util.module.utilmoddeprecate' (most likely due to a circular import) (C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\module\utilmoddeprecate.py)
PS C:\Users\u\OneDrive - Trane Technologies\Desktop\code\Modern_GUI_PyDracula_PySide6_or_PyQt6-master>
🔍 Before submitting the issue
🐞 Description of the bug
I'm using pyside6 (pyDracula) to build GUI and connecting to pyfluent code. After importing pyside6, pyfluent could not be imported successfully.
Error message:
"c:/Users/u/OneDrive - Trane Technologies/Desktop/code/Modern_GUI_PyDracula_PySide6_or_PyQt6-master/have a test/main.py"
Traceback (most recent call last):
File "c:\Users\u\OneDrive - Trane Technologies\Desktop\code\Modern_GUI_PyDracula_PySide6_or_PyQt6-master\have a test\main.py", line 18, in
meshing = pyfluent.launch_fluent(precision="double", processor_count=4, mode="meshing", ui_mode="gui")
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\utils\deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\utils\deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\launcher.py", line 292, in launch_fluent
launcher = launcher_type(**launcher_argvals)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\standalone_launcher.py", line 212, in init
self._launch_string += _build_journal_argument(
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\ansys\fluent\core\launcher\launcher_utils.py", line 85, in build_journal_argument
from beartype import BeartypeConf, beartype
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_init.py", line 158, in
from beartype._decor.decormain import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_decor\decormain.py", line 26, in
from beartype._conf.confcls import BeartypeConf
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_conf\confcls.py", line 49, in
from beartype._conf.confoverrides import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_conf\confoverrides.py", line 14, in
from beartype.roar import BeartypeHintOverridesException
File "shibokensupport/signature/loader.py", line 61, in feature_imported
File "shibokensupport/feature.py", line 137, in feature_imported
File "shibokensupport/feature.py", line 148, in _mod_uses_pyside
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1147, in getsource
lines, lnum = getsourcelines(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1128, in getsourcelines
object = unwrap(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 639, in unwrap
while _is_wrapper(func):
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 630, in is_wrapper
return hasattr(f, 'wrapped')
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype\roar_init.py", line 180, in getattr
from beartype._util.module.utilmoddeprecate import deprecate_module_attr
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\module\utilmoddeprecate.py", line 21, in
from beartype._util.utilobject import SENTINEL
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\utilobject.py", line 19, in
from beartype._data.cls.datacls import TYPES_CONTEXTMANAGER_FAKE
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_data\cls\datacls.py", line 18, in
from beartype._cave._cavefast import (
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_cave_cavefast.py", line 46, in
from beartype.roar import BeartypeCallUnavailableTypeException
File "shibokensupport/signature/loader.py", line 61, in feature_imported
File "shibokensupport/feature.py", line 137, in feature_imported
File "shibokensupport/feature.py", line 148, in _mod_uses_pyside
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1147, in getsource
lines, lnum = getsourcelines(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 1128, in getsourcelines
object = unwrap(object)
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 639, in unwrap
while _is_wrapper(func):
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\inspect.py", line 630, in is_wrapper
return hasattr(f, 'wrapped')
File "C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype\roar_init.py", line 180, in getattr
from beartype._util.module.utilmoddeprecate import deprecate_module_attr
ImportError: cannot import name 'deprecate_module_attr' from partially initialized module 'beartype._util.module.utilmoddeprecate' (most likely due to a circular import) (C:\Users\u\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype_util\module\utilmoddeprecate.py)
PS C:\Users\u\OneDrive - Trane Technologies\Desktop\code\Modern_GUI_PyDracula_PySide6_or_PyQt6-master>
📝 Steps to reproduce
import sys
import os
import platform
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QComboBox, QFrame, QGridLayout,
QHBoxLayout, QLabel, QLayout, QLineEdit,
QMainWindow, QPlainTextEdit, QPushButton, QSizePolicy,
QStackedWidget, QTextEdit, QVBoxLayout, QWidget)
import ansys.fluent.core as pyfluent
meshing = pyfluent.launch_fluent(precision="double", processor_count=4, mode="meshing", ui_mode="gui")
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
ANSYS 2024R2/2023R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: