caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

[Python3] Python3 update master task

Open Yangqing opened this issue 9 years ago • 8 comments

Currently, Caffe2 is supporting 2.7 only and python3 support is coming. Setting up this task to have a single point for status checking and updates.

Yangqing avatar Apr 19 '17 19:04 Yangqing

Hello,

python --version shows 2.7, however, caffe2 uses python from another path:

-- Found PythonInterp: /Users/Innovate/anaconda/bin/python (found version "3.5.2") ... -- BUILD_PYTHON : ON -- Python version : 3.5.2 -- Python library : /Users/Innovate/anaconda/lib/libpython3.5m.dylib

which python /Users/Innovate/anaconda/envs/py3k/bin/python

Where to set the path to python for caffe2?

Thanks!

rachitgarg91 avatar Apr 21 '17 07:04 rachitgarg91

One criteria for our switch to Caffe2 or using a non-caffe framework instead is Python3. I don't want to bother, but do you have an estimate of when it might be available? (Weeks, Months, Years ... ;)

eddy-ilg avatar May 05 '17 12:05 eddy-ilg

Once Python2 testing is enabled with https://github.com/caffe2/caffe2/pull/817, it should be pretty simple to add another target to test python3 with every commit.

lukeyeager avatar Jun 20 '17 18:06 lukeyeager

Any update on python3 support? Our entire system is python3 and it would be a pity to not be able to use caffe2 because of this. caffe, tensorflow, and pretty much all other frameworks support python3.

:) python3 -c 'from caffe2.python import core'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/caffe2/python/core.py", line 9, in <module>
    from past.builtins import basestring
ImportError: No module named 'past'

dheera avatar Jul 27 '17 20:07 dheera

Hey guys, quick update - our internal testing of python3 support seems to suggest that we are python3 compatible, so with a few more tests we will mark this resolved. If you'd like to give it a short, please do and let us know if things work incorrectly.

@dheera - your issue is because you'll need to install future:

https://pypi.python.org/pypi/future

Yangqing avatar Aug 01 '17 01:08 Yangqing

We now run Python 3 builds for every commit. I think it's safe to close this issue now.

pietern avatar Dec 12 '17 08:12 pietern

Awesome thanks all!

dheera avatar Dec 12 '17 15:12 dheera

I am still getting this error Makefile:4: recipe for target 'all' failed I tried with python 3 and 2 both. Any suggestions?

garvita-tiwari avatar Jun 26 '18 18:06 garvita-tiwari