Skip to content
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

Error during parseyapi.sh execution: Failed to load Skylark extension #6

Open
skerit opened this issue Mar 29, 2017 · 5 comments
Open

Comments

@skerit
Copy link

skerit commented Mar 29, 2017

I can't install the image, it fails with this error:

ERROR: Failed to load Skylark extension '//tensorflow/tensorflow:workspace.bzl'.
It usually happens when the repository is not defined prior to being used.
Maybe repository '' was defined later in your WORKSPACE file?
ERROR: cycles detected during target parsing.
@johndpope
Copy link
Owner

ahhh - so fragile - I spent weeks on this - it did actually work - end to end.
I think try getting it to build locally. It looks cpu specific I'm afraid.

@skerit
Copy link
Author

skerit commented Mar 29, 2017

I think I found the main issue.

It seems like you used a hash commit for every git repository, so the problems not there, but for the syntaxnet docker file you're basing it upon you use:

gcr.io/tensorflow/tensorflow:latest-devel

I switched it to 0.12.0-devel.

Unfortunately, then I bumped into a problem with zlib. Apparently, syntaxnet uses a specific zlib package from the main zlib.net site, but once zlib releases a new version it removes the previous one :/

That was easily fixed by chaning the syntaxnet workspace file, though.

@skerit
Copy link
Author

skerit commented Mar 30, 2017

I also had a problem with this line:

find / -name "parsey_api" -size +512k -exec cp -t "{}" /work/serving \;

In my case, the -t flag expects the source to be a directory, but that's obviously not the case. Removing the -t flag fixed that issue.

@johndpope
Copy link
Owner

frankly - I always wanted the binary file parsey_api to be simply downloaded from google drive as part of docker initialization rather than going through the pain of building it.
just need to throw it up in the cloud and rejig the gist script.

@qysnn
Copy link

qysnn commented Nov 1, 2017

Downgrading Bazel from current version to 0.3.2 solves this problem for me.
As for the zlib problem, https://github.com/tensorflow/tensorflow/issues/6594 gives servaral ways to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants