RobotLocomotion / pytorch-dense-correspondence

Code for "Dense Object Nets: Learning Dense Visual Object Descriptors By and For Robotic Manipulation"
https://arxiv.org/pdf/1806.08756.pdf
Other
559 stars 133 forks source link

python2 incompatibility in `setup.py` (visdom==0.1.8.7) #184

Closed KuKuXia closed 5 years ago

KuKuXia commented 5 years ago

Problem: OS: Ubuntu 16.04 When I run the command ./docker_build.py followed by the installation guide. The errors occurred in install_pytorch.sh file:

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-jqLhlI/visdom/setup.py", line 35, in <module>
        readme = open('README.md', 'rt', encoding='utf8').read()
    TypeError: 'encoding' is an invalid keyword argument for this function

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-jqLhlI/visdom/

which is caused by the visdom package. There is a problem in the newer version: 0.1.8.7 which has been discussed in Visdom Issues: #548. My solution is: Change the line in install_pytorch.sh files: from:

sudo pip install visdom

to:

sudo pip install visdom==0.1.8.6

So everything was ok and I finished the installation guide successfully. Hope this could help others.

peteflorence commented 5 years ago

Glad you found a way around it, and thanks for posting your fix!

My personal recommendation would be to just use tensorboard rather than visdom, I think will PR a change that does this.

Thanks!

manuelli commented 5 years ago

This should be fixed once the latest PR #196 lands.

manuelli commented 5 years ago

Should be fixed in #199