wkentaro / chainer-mask-rcnn

Chainer Implementation of Mask R-CNN. (Training code to reproduce the original result is available.)
MIT License
55 stars 16 forks source link

Enable to work print func of setup.py in Python 2 #34

Closed pazeshun closed 5 years ago

pazeshun commented 5 years ago

pip install chainer-mask-rcnn==0.5.16 fails due to the following error:

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-PcxpPN/chainer-mask-rcnn/setup.py", line 19
        file=sys.stderr,
            ^
    SyntaxError: invalid syntax

This PR avoids this syntax error.

FYI: this error also occurred on travis. https://travis-ci.com/wkentaro/chainer-mask-rcnn/jobs/167810300

pazeshun commented 5 years ago

@wkentaro In https://github.com/wkentaro/chainer-mask-rcnn/commit/d39ca48091a2f22da77a1b31aa3b5af3e33aa2e2#diff-2eeaed663bd0d25b7e608891384b7298R16, you search twine module. However, I can't find twine in requirements.txt. Is this OK?

pazeshun commented 5 years ago

Requires https://github.com/wkentaro/fcn/pull/116:

Collecting fcn>=6.4.8 (from chainer-mask-rcnn==0.5.16)
  Downloading https://files.pythonhosted.org/packages/f3/7a/68f715f592bbc71e7dda20641b8c96fa92325b10e8962c368edc5f9bc82b/fcn-6.4.10.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-RYmaaw/fcn/setup.py", line 21
        file=sys.stderr,
            ^
    SyntaxError: invalid syntax