-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[solution] Habitat_sim installs failing in Colab #1818
Comments
@Skylion007 -- thoughts? |
Here's temporary fix that worked for me from the second solution here. Run this one time:
Then, restart the runtime -- or -- modify the imports to automatically restart:
|
Thank you @arjunmajum. |
Trying to find a long term fix here that doesn't require a Colab restart. I am really confused where the new LIBCXX is being installed / overwritten from. |
@arjunmajum's suggestion of restart worked well and was very usable. But as of last evening, executing the install script to install habitat-sim is running into another issue. PackagesNotFoundError: The following packages are not available from current channels:
Any suggestion or work around will be appreciated. !curl -L https://raw.githubusercontent.com/facebookresearch/habitat-sim/master/examples/colab_utils/colab_install.sh | NIGHTLY=false bash -s --2022-08-02 13:43:47-- https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh Miniconda3-latest-L 100%[===================>] 73.06M 234MB/s in 0.3s 2022-08-02 13:43:48 (234 MB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [76607678/76607678] PREFIX=/usr/local Package Planenvironment location: /usr/local added / updated specs: The following NEW packages will be INSTALLED: _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main Preparing transaction: done PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're
and use the search bar at the top of the page. An error occured during the installation of Habitat-sim or Habitat-Lab. |
@srkiyengar Were you able to get this installation issue resolved? I am having the same problem as well. |
Not properly @pkachana3. I harded coded numba to 0.51.2. In the install script: conda install -S -y --prefix /usr/local -c "${CHANNEL}" -c conda-forge habitat-sim=0.2.0 headless withbullet "python=${PYTHON_VERSION}" "numpy=${NUMPY_VERSION}" "pillow=${PIL_VERSION}" "cffi=${CFFI_VERSION}" "scipy=${SCIPY_VERSION}" "numba=0.51.2" It seems to install the habitat. |
Thanks for the temporary solutions here, folks! With these I'm able to run the colabs successfully. @Skylion007 and I will work on a real fix. For now, you can:
Edited path 10/11
|
@aclegg3 thank you for advice! |
Note we have stopped supporting colab and converted tutorials to local Jupyter notebooks instead. |
Recently, habitat_sim colab installs seem to fail in "import habitat-sim" after successful installtion. It seems to be a complaining about missing library:
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/lib/python3.7/dist-packages/scipy/optimize/_group_columns.cpython-37m-x86_64-linux-gnu.so)
The two colab habitat-sim install that I have tried are,
https://colab.research.google.com/github/facebookresearch/habitat-sim/blob/main/examples/tutorials/colabs/ECCV_2020_Interactivity.ipynb
!curl -L https://raw.githubusercontent.com/facebookresearch/habitat-sim/master/examples/colab_utils/colab_install.sh | NIGHTLY=false bash -s
Error details while importing habitat-sim in ECCV_2020_Interactivity.ipynb
ImportError Traceback (most recent call last)
in ()
17 from PIL import Image
18
---> 19 import habitat_sim
20 from habitat_sim.utils import common as ut
21 from habitat_sim.utils import viz_utils as vut
11 frames
/usr/local/lib/python3.7/dist-packages/scipy/optimize/_numdiff.py in ()
6 from scipy.sparse.linalg import LinearOperator
7 from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find
----> 8 from ._group_columns import group_dense, group_sparse
9
10
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/lib/python3.7/dist-packages/scipy/optimize/_group_columns.cpython-37m-x86_64-linux-gnu.so)
Error details of "import habitat-sim" after install from "https://raw.githubusercontent.com/facebookresearch/habitat-sim/master/examples/colab_utils/colab_install.sh | NIGHTLY=false bash -s"
/content/oreo-pybullet/agent_oreo.py in ()
----> 1 import habitat_sim
2 import numpy as np
3 import quaternion
4 import math
5 import cv2
/usr/local/lib/python3.7/dist-packages/habitat_sim/init.py in ()
11 if not getattr(builtins, "HSIM_SETUP", False):
12 # TODO: kept only for compatibiliy with existing code. Please gradually remove
---> 13 from habitat_sim import (
14 agent,
15 attributes,
/usr/local/lib/python3.7/dist-packages/habitat_sim/agent/init.py in ()
7 # type: ignore
8
----> 9 from .agent import * # noqa: F403
10 from .controls import * # noqa: F403
11
/usr/local/lib/python3.7/dist-packages/habitat_sim/agent/agent.py in ()
29 )
30
---> 31 from .controls import ActuationSpec, ObjectControls
32
33 all = ["ActionSpec", "SixDOFPose", "AgentState", "AgentConfiguration", "Agent"]
/usr/local/lib/python3.7/dist-packages/habitat_sim/agent/controls/init.py in ()
8 from habitat_sim.agent.controls.default_controls import * # noqa: F401, F403
9 from habitat_sim.agent.controls.object_controls import ObjectControls
---> 10 from habitat_sim.agent.controls.pyrobot_noisy_controls import PyRobotNoisyActuationSpec
11
12 all = [
/usr/local/lib/python3.7/dist-packages/habitat_sim/agent/controls/pyrobot_noisy_controls.py in ()
18 import magnum as mn
19 import numpy as np
---> 20 import scipy.stats
21 from attr import Attribute
22 from numpy import ndarray
/usr/local/lib/python3.7/dist-packages/scipy/stats/init.py in ()
439 """
440
--> 441 from .stats import *
442 from .distributions import *
443 from .morestats import *
/usr/local/lib/python3.7/dist-packages/scipy/stats/stats.py in ()
41 import scipy.special as special
42 from scipy import linalg
---> 43 from . import distributions
44 from . import mstats_basic
45 from ._stats_mstats_common import (_find_repeats, linregress, theilslopes,
/usr/local/lib/python3.7/dist-packages/scipy/stats/distributions.py in ()
6 # instead of
git blame -Lxxx,+x
.7 #
----> 8 from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)
9
10 from . import _continuous_distns
/usr/local/lib/python3.7/dist-packages/scipy/stats/_distn_infrastructure.py in ()
22 # for root finding for continuous distribution ppf, and max likelihood
23 # estimation
---> 24 from scipy import optimize
25
26 # for functions of continuous distributions (e.g. moments, entropy, cdf)
/usr/local/lib/python3.7/dist-packages/scipy/optimize/init.py in ()
398 """
399
--> 400 from .optimize import *
401 from ._minimize import *
402 from ._root import *
/usr/local/lib/python3.7/dist-packages/scipy/optimize/optimize.py in ()
34 line_search_wolfe2 as line_search,
35 LineSearchWarning)
---> 36 from ._numdiff import approx_derivative
37 from scipy._lib._util import getfullargspec_no_self as _getfullargspec
38 from scipy._lib._util import MapWrapper
/usr/local/lib/python3.7/dist-packages/scipy/optimize/_numdiff.py in ()
6 from scipy.sparse.linalg import LinearOperator
7 from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find
----> 8 from ._group_columns import group_dense, group_sparse
9
10
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/lib/python3.7/dist-packages/scipy/optimize/_group_columns.cpython-37m-x86_64-linux-gnu.so)
Hopefully the details are sufficient to troubleshoot the colab environment working.The installs used to work nicely the last time I checked 3-4 weeks ago.
Thanks.
The text was updated successfully, but these errors were encountered: