-
Notifications
You must be signed in to change notification settings - Fork 49
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
Crash after condacolab installation #52
Comments
Can you use the https://github.com/conda-incubator/condacolab/tree/0.1.x#faq |
Hello, I have the same problem with my colab notebook. I'm following the installation procedure as described in your repo, but running the cell after the installation bring to an unexpected behaviour where the required packages are not installed. The temporary solution is to run the cell twice, which doubles the installation time (which is already 10 minutes), or to add a fake cell between the two, but this didn't happen in any of the previous installations of condacolab. Do you think it can be solved? |
We haven't changed anything significant in between versions, just the default installer we point to. So it must be a Colab change. Using different cells work for me in the linked example from the readme (tried on Saturday). |
Yes I can also use For the record, I succeeded in running together the first two cells reported in the message above without the
So I've added a third cell to set the environment:
And again, all is fine if I run the cells one by one, but if I select 7 frames ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/local/lib/python3.9/site-packages/pandas/_libs/window/aggregations.cpython-39-x86_64-linux-gnu.so) This happens with specific libraries. If I comment out pandas, then I get the same error on scipy. So it looks like there are problems with environmental paths after the condacolab installation and the kernel restart is needed to reset the path settings. I was wondering if there is a way to adjust these paths (similarly to the fix I've used to get |
We need an interpreter restart to LD_LIBRARY_PATH is re-read. I don't know of any other ways for the
You are seeing those ABI issues with some libraries precisely because of that. So in a nutshell, no, we don't support "Run All Cells". You need to issue the restart and wait. I can probably look into adding a |
I have this issue with running a colab notebook using condacolab.
CELL 1
import subprocess
subprocess.run( 'pip install -q condacolab'.split() )
import condacolab
condacolab.install()
CELL 2
import condacolab
condacolab.check()
This returns the following error:
AssertionError Traceback (most recent call last)
in <cell line: 2>()
1 import condacolab
----> 2 condacolab.check()
/usr/local/lib/python3.9/dist-packages/condacolab.py in check(prefix, verbose)
300 f"{prefix}/bin" in os.environ["PATH"]
301 ), f"💥💔💥 PATH was not patched! Value: {os.environ['PATH']}"
--> 302 assert (
303 f"{prefix}/lib" in os.environ["LD_LIBRARY_PATH"]
304 ), f"💥💔💥 LD_LIBRARY_PATH was not patched! Value: {os.environ['LD_LIBRARY_PATH']}"
AssertionError: 💥💔💥 LD_LIBRARY_PATH was not patched! Value: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
If I skip
condacolab.check
and proceed to installing and importing packages:CELL 2
import subprocess
_ = subprocess.run( 'mamba install scipy -c conda-forge --yes'.split() )
import scipy
I get a crash from colab:
Your session crashed for an unknown reason.
Remarkably, in both cases, I only get this issue when executing all cells together. If instead I execute Cell 1, wait its completion, then execute the second, this runs smoothly.
The text was updated successfully, but these errors were encountered: