- Notifications
You must be signed in to change notification settings - Fork750
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Environment Details System.ArgumentException: Illegal characters in path. DLL is not a new implementation. Same DLL and same path was working fine with python 3.7 and PythonNET 2.4.0. This issue started happening when we upgraded python and Pythonnet versions. Anyone faced such similar issue? Not sure if I am missing something. Appreciate if someone sharing thoughts. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 4 comments
-
I would try putting the file path through os.path.abspath(). |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks a lot for reply. But no luck. Tried with os.path.abspath() and also directly from C: just to reduce the path length. Still I see the same "Illegal characters in path" error. One more point is, same code is working fine when tested from Visual studio 2022 environment. But when executed from windows command line I get into this wired issue. Not sure how Visual studio environment is making the difference. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Tried to load the same DLL using Assembly.LoadFrom(path) - this works without any issues. But clr.AddReference(path) throws Illegal characters in path exception. from System.Reflection import Assembly |
BetaWas this translation helpful?Give feedback.
All reactions
-
This is resolved. This issue is because of bad sys.path. Details can be found in#2376 |
BetaWas this translation helpful?Give feedback.