-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
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
(from visualstudio-docs repo) "Call the DLL from Python" example not working #6931
Comments
Please send your findings on to the original poster Lyudmil. |
I have this problem as well when running this FinRL 0.3.4 tutorial with VS 2019, python 3.9 on Windows 10. |
I am unable to reproduce this on VS 2022 regardless of Python version or bitness. Can you please clarify the exact version numbers involved? |
See my post on May 5 for version number info. |
Does it still reproduce for you if you try running the same solution with VS 2022? |
I haven’t updated VS yet and have no plans to at this point. I’m sure I will in the future though.
From: Pavel Minaev ***@***.***
Sent: Wednesday, July 6, 2022 13:05
To: microsoft/PTVS
Cc: jaysacco; Manual
Subject: Re: [microsoft/PTVS] (from visualstudio-docs repo) "Call the DLL from Python" example not working (Issue #6931)
Does it still reproduce for you if you try running the same solution with VS 2022?
—
Reply to this email directly, view it on GitHub <#6931 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGBBAPMGZ2NMPM7FJLVIHGTVSXDGTANCNFSM5RIVSQVA> .
You are receiving this because you are subscribed to this thread.Image removed by sender.Message ID: ***@***.***>
|
Closing old issue. If this is still a problem, please reopen with the information requested. thanks |
This still occurs with Visual Studio 2022 (17.3.5), Python 3.913, and TensorFlow 2.10.0 |
I confirm It is still happening In Visual Studio 2022 with python 3.9 and python 3.10 |
Possible bug in Call the DLL from Python, per this visualstudio-docs issue.
Here is that issue's original content:
When trying to run the Call the DLL from Python section, nothing gets printed on screen and the console simply prompts me to press any key. Upon closing the terminal, I get a Visual Studio error window, with the following description:
Could not convert to integer 3221225477, Path 'exitCode'. Value was either too large or too small for an Int32
For reference, I have only followed the PyBind11 section, and my
.py
and.cpp
files are shown below:main.py
module.cpp
:I should not that the above error occurs during the import statement
from superfastcode import fast_tanh
.Any clues? Thanks much in advance.
The text was updated successfully, but these errors were encountered: