Skip to content

Build Problem #13

@Elkoumy

Description

@Elkoumy

Hello,
I am trying to install the tf-pjc package on Linux ubuntu, but it fails. I run the following:

pip install -e .
python setup.py install 

Then I couldn't import the library because I got the error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gamal/tf-pjc/tf_pjc/__init__.py", line 1, in <module>
    from tf_pjc.python.protocol import PrivateIntersectionSum
  File "/home/gamal/tf-pjc/tf_pjc/python/protocol.py", line 3, in <module>
    from tf_pjc.python.ops import pjc_run_client
  File "/home/gamal/tf-pjc/tf_pjc/python/ops.py", line 8, in <module>
    pjc_ops = load_library.load_op_library(op_lib_file)
  File "/home/gamal/anaconda3/envs/tf-pjc/lib/python3.7/site-packages/tensorflow_core/python/framework/load_library.py", line 61, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/gamal/tf-pjc/tf_pjc/python/_pjc_ops.so: cannot open shared object file: No such file or directory

I tried to build the tool using the command

make build

I got the following error:

ERROR: /home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl:130:29: Traceback (most recent call last):
	File "/home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl", line 125
		rule(<3 more arguments>)
	File "/home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl", line 130, in rule
		attr.label(cfg = "host", <3 more arguments>)
'single_file' is no longer supported. use allow_single_file instead. You can use --incompatible_disable_deprecated_attr_params=false to temporarily disable this check.
ERROR: /home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_github_google_private_join_and_compute/util/BUILD:37:11: error loading package '@com_google_protobuf//': Extension file 'protobuf.bzl' has errors and referenced by '@com_github_google_private_join_and_compute//util:status_includes'
ERROR: Analysis of target '//tf_pjc:pjc_ops_py' failed; build aborted: Analysis failed
INFO: Elapsed time: 82.443s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (33 packages loaded, 127 targets configured)
Makefile:12: recipe for target 'build' failed
make: *** [build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions