Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Building from source code shows an error #533

Open
jaebaek opened this issue Apr 25, 2019 · 1 comment
Open

Building from source code shows an error #533

jaebaek opened this issue Apr 25, 2019 · 1 comment

Comments

@jaebaek
Copy link

jaebaek commented Apr 25, 2019

I followed the instruction here.

(tf-test) ➜  ngraph-tf git:(master) ✗ python --version
Python 3.5.4
(tf-test) ➜  ngraph-tf git:(master) ✗ python build_ngtf.py 
ARTIFACTS location: /home/jaebaek/ngraph-tf/build_cmake/artifacts
Running virtualenv with interpreter /home/jaebaek/tf-test/bin/python3
Using base prefix '/usr'
New python executable in /home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/python3
Not overwriting existing python script /home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/python (you must use /home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/python3)
Installing setuptools, pip, wheel...
done.
Loading virtual environment from: /home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3
Traceback (most recent call last):
  File "build_ngtf.py", line 314, in <module>
    main()
  File "build_ngtf.py", line 141, in main
    load_venv(venv_dir)
  File "/home/jaebaek/ngraph-tf/tools/build_utils.py", line 110, in load_venv
    dict(__file__=activate_this_file), dict(__file__=activate_this_file))
  File "/home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/activate_this.py", line 46, in <module>
    sys.path[:] = [i for i in new if i not in prev] + [i for i in new if i in prev]
  File "/home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/activate_this.py", line 46, in <listcomp>
    sys.path[:] = [i for i in new if i not in prev] + [i for i in new if i in prev]
NameError: name 'prev' is not defined
(tf-test) ➜  ngraph-tf git:(master) ✗ /home/jaebaek/ngraph-tf/build_cmake/venv-tf-py3/bin/python3 --version
Python 3.5.4
(tf-test) ➜  ngraph-tf git:(master) ✗ 
@avijit-nervana
Copy link
Contributor

This is related to the version of the virtualenv installed on your system. The version needs to be 1.16.0 or less. Please let us know if you still have issues

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

No branches or pull requests

2 participants