cjweeks / tensorflow-cmake

Integrate TensorFlow with CMake projects effortlessly
MIT License
331 stars 83 forks source link

Can't Find Eigen Version #9

Closed kevindean87 closed 7 years ago

kevindean87 commented 7 years ago

Made it through building tensorflow with bazel (and have copied all necessary files to /usr/local/). Now trying to go through installing Eigen locally but running into a problem. The script, eigen.sh, cannot find the "eigen_version" from /tensorflow/workspace.bzl.

this is the command: sudo ./eigen.sh install ../tensorflow (using default install and current directory for download)

this is the error from the terminal: Finding Eigen version in ../tensorflow using method 0... Finding Eigen version in ../tensorflow using method 1... Finding Eigen version in ../tensorflow using method 2... Failure: could not find Eigen version in ../tensorflow

Going through eigen.sh (line by line), I found that it finds EIGEN_TEXT: grep -Pzo ${EIGEN_REGEX} ${TF_DIR}/tensorflow/workspace.bzl native.new_http_archive( name = "eigen_archive", urls = [ "http://bazel-mirror.storage.googleapis.com/bitbucket.org/eigen/eigen/get/60578b474802.tar.gz", "https://bitbucket.org/eigen/eigen/get/60578b474802.tar.gz", ], sha256 = "7527cda827aff351981ebd910012e16be4d899c28a9ae7f143ae60e7f3f7b83d", strip_prefix = "eigen-eigen-60578b474802", build_file = str(Label("//third_party:eigen.BUILD")

however, it cannot find the EIGEN_ARCHIVE_HASH_REGEX or EIGEN_HASH_REGEX (these return nothing)

grep -Pzo ${EIGEN_ARCHIVE_HASH_REGEX} ${TF_DIR}/tensorflow/workspace.bzl grep -Pzo ${EIGEN_HASH_REGEX} ${TF_DIR}/tensorflow/workspace.bzl

alimirzaei commented 7 years ago

Don't you want to resolve this bug?

lucbettaieb commented 7 years ago

Bump... I have the same issue. @cjweeks any idea as to whats going on?

cjweeks commented 7 years ago

Hello, and I am very sorry for the significantly late reply. I have the following questions for each of you who are experiencing this bug:

  1. What version of TensorFlow are you using?
  2. What Linux distribution / version are you using?

I am currently using the latest master branch of TensorFlow with Ubuntu 16.04 LTS, and I do not encounter this problem. My command is identical to yours. If you are using an older version of TensorFlow, this may very well be the problem; that should be a relatively easy fix.

ShapingView commented 7 years ago

I had previously and still have the same issue. I just pulled and recompiled the latest state of the master branch of the tensorflow-repo at this commit.

I'm using Ubuntu 16.04.1 LTS.

kevindean87 commented 7 years ago

I have done the same thing with the latest release. But I am running off of Cent OS 7

On Mon, Feb 27, 2017 at 1:42 PM, ShapingView notifications@github.com wrote:

I had previously and still have the same issue. I just pulled and recompiled the latest state of the master branch of the tensorflow-repo https://github.com/tensorflow/tensorflow at this https://github.com/tensorflow/tensorflow/commit/d699a66e940b26e991b29b27f4e3ad2e8e3282d2 commit.

I'm using Ubuntu 16.04.1 LTS.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cjweeks/tensorflow-cmake/issues/9#issuecomment-282863681, or mute the thread https://github.com/notifications/unsubscribe-auth/AQLxgqbe2EjHlbg3jxDvwH8jgDnG6glxks5rg0NfgaJpZM4LgDZ2 .

-- This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please report the error to the sender by return email and delete this communication from your records.

alimirzaei commented 7 years ago

I am using 14.04 and lastest master branch of tensorflow.

cjweeks commented 7 years ago

I have added a rule that should account for the problems you all have addressed. In my case, the script successfully finds Eigen on Ubuntu 16.04 at the TensorFlow commit that @ShapingView referenced. Please try this new version on your our own, and let me know of its success.

ShapingView commented 7 years ago

@cjweeks I tested it and it works! Sorry for the late reply, and thanks for your help!

cjweeks commented 7 years ago

No problem at all. Please let me know if any other issues arise.

oregonduckman commented 6 years ago

I am receiving "Finding Eigen version in /home/xxxxxxx/tensorflow using method 0 "followed by "Command failed - script terminated." I placed all of this scripts in your repo in the tensorflow root directory and I am running Cenos7. Any help on this issue is appreciated.