RussTedrake / underactuated

The course text for MIT 6.832 (and 6.832x on edX)
Other
750 stars 215 forks source link

trimesh is broken on colab #218

Closed RussTedrake closed 4 years ago

RussTedrake commented 5 years ago

trimesh strikes again.

to reproduce: open https://colab.research.google.com/github/RussTedrake/underactuated/blob/master/src/underactuated_scratchpad.ipynb and just run the install shell. at the end of the installer, i see:

Setting up python-pip (9.0.1-2.3~ubuntu1) ...
     |████████████████████████████████| 768kB 4.8MB/s 
     |████████████████████████████████| 112kB 49.6MB/s 
     |████████████████████████████████| 1.3MB 45.3MB/s 
     |████████████████████████████████| 51kB 3.8MB/s 
     |████████████████████████████████| 522kB 43.7MB/s 
     |████████████████████████████████| 327kB 42.4MB/s 
  Building wheel for meshcat (setup.py) ... done
  Building wheel for tornado (setup.py) ... done
  Building wheel for trimesh (setup.py) ... done
ERROR: google-colab 1.0.0 has requirement ipykernel~=4.6.0, but you'll have ipykernel 4.8.2 which is incompatible.
ERROR: google-colab 1.0.0 has requirement ipython~=5.5.0, but you'll have ipython 5.8.0 which is incompatible.
ERROR: google-colab 1.0.0 has requirement tornado~=4.5.0, but you'll have tornado 5.1.1 which is incompatible.
ERROR: fastai 0.7.0 has requirement torch<0.4, but you'll have torch 1.1.0 which is incompatible.
ERROR: Cannot uninstall 'u-msgpack-python'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

ImportErrorTraceback (most recent call last)
<ipython-input-1-eee2e349a5f1> in <module>()
     10 
     11 import os
---> 12 import underactuated
     13 underactuated_src_dir = os.path.dirname(os.path.dirname(os.path.abspath(underactuated.__file__)))

1 frames
/opt/underactuated/src/underactuated/planar_scenegraph_visualizer.py in <module>()
     14 import matplotlib.pyplot as plt
     15 import scipy as sp
---> 16 import trimesh
     17 
     18 from drake import lcmt_viewer_load_robot

ImportError: No module named trimesh

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
gizatt commented 5 years ago

Not 100% convinced this is trimesh's fault. The specified ipython, ipykernel, and tornado versions are conflicting and causing the script to end early without trimesh getting installed, I think. Opening a PR to play with some changes.