You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using rules_python to import pip packages required for my py_binary application.
So far so good, but I run into an issue when importing tensorflow - my py_binary cannot import it.
The reason is that the tensorflow.whl file contains this folder structure:
/folder1/folder2/tensorflow/__init__.py
Instead of what rules_python expects/assumes:
/tensorflow/__init__.py
I would like to be able to append folder1/folder2 to the tensorflow path that is added to PYTHONPATH, in order to be able to import it. Similar to the imports option in py_library.
Is this supported?
The only alternative solution is to import the TensorFlow Bazel workspace and build from source, but it is unnecessary and will take long time to build.
@carlosgalvezp I think this is a duplicate of #71, and I see you've commented already in that issue. I've given an update there, which is hopefully sufficient.
Hi,
I'm using
rules_python
to import pip packages required for my py_binary application.So far so good, but I run into an issue when importing
tensorflow
- mypy_binary
cannot import it.The reason is that the tensorflow.whl file contains this folder structure:
/folder1/folder2/tensorflow/__init__.py
Instead of what rules_python expects/assumes:
/tensorflow/__init__.py
I would like to be able to append
folder1/folder2
to the tensorflow path that is added to PYTHONPATH, in order to be able to import it. Similar to theimports
option inpy_library
.Is this supported?
The only alternative solution is to import the TensorFlow Bazel workspace and build from source, but it is unnecessary and will take long time to build.
Related issue: tensorflow/tensorflow#21461
Thanks!
The text was updated successfully, but these errors were encountered: