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

Conda install Google colab + Pip installation for CIL #932

Open
epapoutsellis opened this issue Jul 19, 2021 · 3 comments
Open

Conda install Google colab + Pip installation for CIL #932

epapoutsellis opened this issue Jul 19, 2021 · 3 comments
Assignees

Comments

@epapoutsellis
Copy link
Contributor

I have tried a lot of times to install CIL on colab or kaggle.

I did !conda install -c conda-forge -c ccpi cil and I got the following error :

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-40-6b83ac0934ef> in <module>()
      1 # Import libraries
      2 
----> 3 from cil.framework import  AcquisitionGeometry
      4 
      5 from cil.optimisation.functions import L2NormSquared, BlockFunction, MixedL21Norm, IndicatorBox

3 frames
/usr/lib/python3.7/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    362 
    363         if handle is None:
--> 364             self._handle = _dlopen(self._name, mode)
    365         else:
    366             self._handle = handle

OSError: libcilacc.so: cannot open shared object file: No such file or directory

One year ago, a conda install it was sufficient and importing CIL was working. I thought that the problem was with the new version of CIL, but I tried older versions and did not work. I tried many things to fix this error but I failed miserably. Reading online, I understood that conda and colab are not very good friends. Maybe that's why there is no Miniconda installation in google colab by default. In order to use libraries that are not pre-installed in the default conda environment of colab, the best is to use pip install.

@paskino
Copy link
Contributor

paskino commented Nov 14, 2021

I think you have written some instructions by email @epapoutsellis . these could go in an appropriate doc file.

@paskino
Copy link
Contributor

paskino commented Feb 3, 2023

Check TomographicImaging/CIL-Demos#89

@gfardell
Copy link
Member

@gfardell gfardell removed this from the Version 23.0.0 milestone Mar 17, 2023
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

4 participants