We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use the resolver module from pymechanical instead of resolve() function in main.py
Add ansys.mechanical.core as a dependency
from ansys.mechanical.core.embedding import resolver
get_version() - only return version
version = get_version() resolver()
I got this error, so I have to debug this to see if this implementation is possible:
CRITICAL - - logging - handle_exception - Uncaught exception Traceback (most recent call last): File "C:\Users\kmcadams\mechanical-stubs\main.py", line 23, in ansys.mechanical.core.embedding.resolver.resolve(version) File "C:\Users\kmcadams\mechanical-stubs.venv\Lib\site-packages\ansys\mechanical\core\embedding\resolver.py", line 14, in resolve clr.AddReference("Ansys.Mechanical.Embedding") System.IO.FileNotFoundException: Could not load file or assembly 'Ansys.Mechanical.Embedding' or one of its dependencies. The system cannot find the file specified. File name: 'Ansys.Mechanical.Embedding' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
📝 Description of the feature
use the resolver module from pymechanical instead of resolve() function in main.py
💡 Steps for implementing the feature
Add ansys.mechanical.core as a dependency
from ansys.mechanical.core.embedding import resolver
get_version() - only return version
version = get_version()
resolver()
I got this error, so I have to debug this to see if this implementation is possible:
CRITICAL - - logging - handle_exception - Uncaught exception
Traceback (most recent call last):
File "C:\Users\kmcadams\mechanical-stubs\main.py", line 23, in
ansys.mechanical.core.embedding.resolver.resolve(version)
File "C:\Users\kmcadams\mechanical-stubs.venv\Lib\site-packages\ansys\mechanical\core\embedding\resolver.py", line 14, in resolve
clr.AddReference("Ansys.Mechanical.Embedding")
System.IO.FileNotFoundException: Could not load file or assembly 'Ansys.Mechanical.Embedding' or one of its dependencies. The system cannot find the file specified.
File name: 'Ansys.Mechanical.Embedding'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
🔗 Useful links and references
No response
The text was updated successfully, but these errors were encountered: