-
Notifications
You must be signed in to change notification settings - Fork 749
Py.Import returns null when importing tensorflow #299
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
Comments
Can you share your environment and exact code?
…On Fri, Dec 2, 2016, 7:48 AM Pavel Konovalov ***@***.***> wrote:
Py.Import returns null when importing tensorflow at the same time python
from command line or from IDE works with that import without any problems.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#299>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5c8ZMRupCCRSrCwlk3A5zIw_h51jks5rECGkgaJpZM4LCkWP>
.
|
It could help debugging to do a |
That is anaconda with python 3.5 + tensorflow. I can give you remote access with team viewer to that env with installed VS and pythonnet sources. I can debug and see that in pythonnet hook routine looks like Py.Import return some error. But it structure is very unclear for new guy in this topic, like me. |
Using importlib I found the exception thrown in
I think the problem is that in pythonnet we are not setting @filmor what do you think? |
@pkonovalov-softheme I'm able to import tensorflow in pythonnet with this temp fix. make a file
import it before tensorflow:
|
Maybe we could expose a |
@filmor it is already is, but it is not used in initialize: pythonnet/src/runtime/runtime.cs Line 2119 in e4b91d7
|
I put together a pull request to resolve this issue: |
Can be closed. Works. Thank you! |
Should we do another release with tensorflow example?
…On Wed, Feb 1, 2017, 9:45 AM Benedikt Reinartz ***@***.***> wrote:
Closed #299 <#299>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#299 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5aq857IGCWIqLzZYf4twC0RQ3qOqks5rYKh7gaJpZM4LCkWP>
.
|
idk about another release, though I'm getting the hang of them and should be less painful now that the long description gets written from the |
here is example how to call into tensorflow from C# using pythonnet: #473 |
Py.Import returns null when importing tensorflow at the same time python from command line or from IDE works with that import without any problems.
The text was updated successfully, but these errors were encountered: