-
Notifications
You must be signed in to change notification settings - Fork 74.7k
Tensorflow testing script cannot import numpy whereas it is installed #3569
New issue
< 8000 strong>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
@martinwicke would you take a look? |
In the configure step, did you specify the same python you're usually using? My guess would be that you're getting a different installation of python, without numpy installed. |
Oh this is a good guess! Unfortunately the one specified in the configure is the good one :-( My own guess is that it is somehow related to the issue #2703, I think my $PYTHONPATH variable is not loaded in the test environment and then it cannot find all my libs. I will do some test to check that and keep you posted. |
My guess was the good one, my Python environment is not loaded properly. I modified the file
To add these two lines at the beginning:
And this is what I have in the log file:
These three paths are missing:
Which correspond to my $PYTHONPATH environment variable. |
@damienmg we have seen this before right? I couldn't find a bug open for bazel, and I forget whether this is intended behavior (it doesn't look like intended behavior to me). |
@martinwicke this is an issue with the environment being stripped, @aehlig is working on a principle solution to it. |
@aehlig let me know when a fix is available in bazel and when that would hit a release so we can recommend a new minimum version. |
@martinwicke: The "principle solution" @dmarting was talking about The first working implementation of the --action_env just hit the
It will be included in the 0.4 release, expected to be released in October. Regards, Klaus Aehlig |
Ok. We'll wait for 0.4, make that the minimum version and add the |
FYI this flag is in 0.3.2 release candidate, so should be out in the next week |
jplu@, can you try this again? We are now building with bazel 0.3.2, so this may work now, or at least we have the opportunity to make it work if it doesn't. |
Thanks!! I will try today with bazel 0.3.2 and let you know if everything is now ok. |
Hello, I do have an issue to compile tensorflow with 0.3.2 now:
I have this error every time I try to run configure even after doing Is the problem is that my desktop machine is fully on a remote file system? |
I believe that may be the problem (see warning in the output). You should On Friday, October 28, 2016, Julien Plu notifications@github.com wrote:
|
Apparently it is indeed a known issue bazelbuild/bazel#1970 I gonna try the fix and let you know. |
The fix in the linked issue solved the compilation error but I still have the same issue than at the beginning :(
I think it is due to the configure, as I have selected only one Python library path, how is it possible to select multiple paths? |
This is odd -- we are using several paths from PYTHONPATH. Is PYTHONPATH different between running configure and at runtime? |
This is odd -- we are using several paths from PYTHONPATH.
Is PYTHONPATH different between running configure and at runtime?
Any variable that should be taken from the invocation environment to
bazel's build action must be declared with --action_env, any variable
that should be visible in tests must be declared with --test_env. This
can be done by either specifying these options on the command line, or
in one of the rc-files.
|
@martinwicke What I can see is that my PYTHONPATH is missing when I do the same process than in my previous comment #3569 (comment) |
Hello, any update on this issue? |
So the bazel fix you tried did not work? |
@jplu feel free to open a new issue if the problem persists. |
Hello,
I have the following error when I try to compile the pip package from the source code.
Environment info
Operating System: Ubuntu 14.04
Installed version of CUDA and cuDNN:
(please attach the output of
ls -l /path/to/cuda/lib/libcud*
):If installed from sources, provide the commit hash: 5c44302
Steps to reproduce
Logs or other output that would be helpful
And here the content of the
test.log
file:But, I do have numpy installed:
I do not understand why I get this Python error. Any idea of what is going wrong?
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: