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 when run bazel build //kcws/cc:seg_backend_api #6

Closed
busyfree opened this issue Nov 28, 2016 · 11 comments
Closed

error when run bazel build //kcws/cc:seg_backend_api #6

busyfree opened this issue Nov 28, 2016 · 11 comments

Comments

@busyfree
Copy link

ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'tensorflow/workspace.bzl': no such package '@org_tensorflow//tensorflow': local_repository rule //external:org_tensorflow must specify an existing directory.
INFO: Elapsed time: 0.049s

build on:
centos6.8 x64
no gpu support
Build label: 0.4.1- (@non-git)
tensorflow-0.11.0

@koth
Copy link
Owner

koth commented Nov 28, 2016

需要先把tensorflow clone 下来在kcws的同级目录

@busyfree
Copy link
Author

tensorflow 是和 kcws 在同一个目录的,编译错误就是上面的,也试过把 tensorflow 放到 kcws 里面,和kcws里的kcws 同级,但是也是报错

@busyfree
Copy link
Author

tensorflow/workspace.bzl 这个文件是不存在,我用的最新版本的,会有这个问题吗?

@koth
Copy link
Owner

koth commented Nov 29, 2016

在tensorflow目录下运行下./configure呢?
另外最好截个图看看

@busyfree
Copy link
Author

应该是我的网络问题,在国内安装 tensorflow 有几个依赖资源请求超时,开代理太慢了

@busyfree
Copy link
Author

下面是我安装的截图
image
image
image
image

@koth
Copy link
Owner

koth commented Nov 29, 2016

tensorflow-0.11.0改名成tensorflow

@busyfree
Copy link
Author

新的错误
image

@busyfree
Copy link
Author

解决问题,修改 kcws/kcws/cc/BUILD的参数
image

这边先感谢作者,上面帮忙查问题。

@Iris6713
Copy link

Iris6713 commented Dec 2, 2016

image
我手动下载download.tar.bz2上传相应目录,重新编译,每次都自动把包清0,重新报这个错误,怎么破?

@koth
Copy link
Owner

koth commented Dec 2, 2016

可以修改tf的configure脚本把bazel clean那段去掉 @Iris6713

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