Fix for TypeError: _NamespacePath object is not reversible #1406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Most files in optiSLang are encrypted while shipping to pye. To handle imports in these files pye_loader is used. This lead to the error shown be while in meshing mode via encrypted python scripts in optiSLang environment. The similar issue from solver was fixed as a part of this PR #700:
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\site-packages\ansys\fluent\core\session_meshing.py", line 46, in workflow
return super(Meshing, self).workflow if not self.switched else None
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\site-packages\ansys\fluent\core\session_pure_meshing.py", line 39, in workflow
return self._base_meshing.workflow
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\site-packages\ansys\fluent\core\session_base_meshing.py", line 92, in workflow
self.workflow = WorkflowWrapper(self.workflow_se, self.meshing)
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\site-packages\ansys\fluent\core\session_base_meshing.py", line 71, in meshing
self.tui,
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\site-packages\ansys\fluent\core\session_base_meshing.py", line 44, in tui
f"ansys.fluent.core.meshing.tui{self.version}"
File "C:\Program Files\Dynardo\ANSYS optiSLang\2023 R2\lib\python3.7\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 963, in _find_and_load_unlocked
File "", line 902, in _find_spec
File "", line 876, in _find_spec_legacy
File "pye_loader.py", line 39, in find_module
TypeError: '_NamespacePath' object is not reversible