Skip to content
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

Installation error in Google Colab #359

Open
jatin-k31 opened this issue Apr 11, 2023 · 0 comments
Open

Installation error in Google Colab #359

jatin-k31 opened this issue Apr 11, 2023 · 0 comments

Comments

@jatin-k31
Copy link

I tried installing ecole in google colab on both mac and windows with this code.

'''
! wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh
! chmod +x Miniconda3-py37_4.8.2-Linux-x86_64.sh
! bash ./Miniconda3-py37_4.8.2-Linux-x86_64.sh -b -f -p /usr/local
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')

!conda update -n base conda
!conda config --add channels conda-forge
!conda config --set channel_proirity strict
!conda install -c conda-forge ecole
'''

But I keep getting this error again and again.

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in call
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/usr/local/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 80, in do_call
module = import_module(relative_mod, name.rsplit('.', 1)[0])
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.7/site-packages/conda/cli/main_install.py", line 8, in
from .install import install
File "/usr/local/lib/python3.7/site-packages/conda/cli/install.py", line 19, in
from ..core.index import calculate_channel_urls, get_index
File "/usr/local/lib/python3.7/site-packages/conda/core/index.py", line 10, in
from .package_cache_data import PackageCacheData
File "/usr/local/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in
from .path_actions import CacheUrlAction, ExtractPackageAction
File "/usr/local/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in
from ..gateways.connection.download import download
File "/usr/local/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 13, in
import ctypes
File "/usr/local/lib/python3.7/ctypes/init.py", line 7, in
from _ctypes import Union, Structure, Array
ImportError: libffi.so.6: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/conda", line 13, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/conda/cli/main.py", line 150, in main
return conda_exception_handler(_main, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1371, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1082, in call
return self.handle_exception(exc_val, exc_tb)
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1126, in handle_exception
return self.handle_unexpected_exception(exc_val, exc_tb)
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1137, in handle_unexpected_exception
self.print_unexpected_error_report(error_report)
File "/usr/local/lib/python3.7/site-packages/conda/exceptions.py", line 1207, in print_unexpected_error_report
from .cli.main_info import get_env_vars_str, get_main_info_str
File "/usr/local/lib/python3.7/site-packages/conda/cli/main_info.py", line 19, in
from ..core.index import _supplement_index_with_system
File "/usr/local/lib/python3.7/site-packages/conda/core/index.py", line 10, in
from .package_cache_data import PackageCacheData
File "/usr/local/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in
from .path_actions import CacheUrlAction, ExtractPackageAction
File "/usr/local/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in
from ..gateways.connection.download import download
File "/usr/local/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 13, in
import ctypes
File "/usr/local/lib/python3.7/ctypes/init.py", line 7, in
from _ctypes import Union, Structure, Array
ImportError: libffi.so.6: cannot open shared object file: No such file or directory

Can you please help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant