7,723 questions
2
votes
1
answer
46
views
Tensorflow images guide not working in Google Colab
I'm trying to run the first guide from Tensorflow in Google Colab.
I import the dataset with
import pathlib
dataset_url = "https://storage.googleapis.com/download.tensorflow.org/example_images/...
1
vote
0
answers
28
views
Importing pyannote.audio into collab
Installation of all the packages I'm using into the collab environment worked fine
However whenever I try to run the following code cell
from pyannote.audio.pipelines.speaker_verification import ...
0
votes
1
answer
44
views
Importing torchcodec is crashing colab
Trying to import torchcodec is crashing on GPU T4 runtime on colab.
I was trying to actually train an ASR but then it started crashing, so tried to narrow it down it ended with just two lines, the ...
-6
votes
0
answers
37
views
Regarding the version issue of langchain ! . Anyone pls help in resolving the issue for the version 1.0.1 [closed]
from langchain_community.document_loaders import WebBaseLoader
from langchain.text_splitters import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from langchain.chains ...
0
votes
0
answers
34
views
Problem with spconv library on Google Colab
Installed spconv library on Google Colab.
Got following compilation error while importing
[1/42] [GCC][c++/pch]/usr/local/lib/python3.11/dist-packages/cumm/build/core_cc/include/tensorview_bind/...
-1
votes
0
answers
123
views
Dependency Hell in Google Colab [closed]
I was trying to train a NN in Google Colab with Pytorch and then convert it to TFlite. It seems that everything works only with Python 3.11. I was able to find a "switch" that returns Colab ...
4
votes
1
answer
270
views
Colab "Unable to connect to the runtime" or 404 error
I recently encountered this problem. When I want to open colab page (https://colab.research.google.com/), it shows me a 404 error.
Sometimes it can load the page. But then it show this error message:
...
-1
votes
0
answers
41
views
ModuleNotFoundError for installed module
I want to use Biopython on Google Colab, but yhere are ModuleNotFoundError error.
!pip install biopython
import biopython
and as output
Requirement already satisfied: biopython in /usr/local/lib/...
-2
votes
1
answer
77
views
How to install a compatible version of TensorFlow Federated on Google Colab (Python 3.12 + TensorFlow 2.19)?
I am using Google Colab, which comes with:
Python 3.12.11
TensorFlow 2.19.0
When I try:
!pip uninstall -y numpy jax jaxlib
!pip install tensorflow_federated
Pip starts backtracking and tries to ...
1
vote
0
answers
198
views
Encountering an AttibuteError: module 'torch' has no attribute 'xpu'
I'm encountering an error
AttibuteError: module 'torch' has no attribute 'xpu'
when running the diffusers library in a Google Colab environment with a CUDA GPU. I'm trying to use DiffusionPipleline....
3
votes
1
answer
198
views
Why does auth.authenticate_user() in Google Colab not give access to my personal Google Calendar?
I’m trying to access my Google Calendar events from Google Colab using the Google Calendar API.
from google.colab import auth
from googleapiclient.discovery import build
import google.auth
import ...
1
vote
0
answers
43
views
Reliable Colab Notebook Secret Usage
In Google Colab, I use notebook-level secrets to follow best practices for credential management. However, it is a little bit buggy.
from google.colab import userdata
from google.cloud import storage
...
1
vote
1
answer
111
views
printf (inside C code) called from python in google colab. (no output)
printf doesn't output anything
google colab cell:
%%writefile my_functions.c
#include <stdio.h>
#include <stdlib.h>
void my_void_func() {
printf("my_void_func called from C!\n");
...
2
votes
1
answer
238
views
Installing Python Libraries to Google Drive in Colab is extremely slow or re-installing
screenshot of installation
colab link
its been 25 minutes it is still installing the lib
I'm trying to optimize my Google Colab workflow by installing Python libraries directly to my Google Drive ...
0
votes
1
answer
105
views
SSL:CERTIFICATE_VERIFY_FAILED for TensorFlow dataset loading
Issue
I have previously loaded this dataset in Google Colab without error, but I now encounter an error.
Code
!pip install --upgrade 'tensorflow_data_validation[visualization]<2'
import tensorflow ...