-
Notifications
You must be signed in to change notification settings - Fork 110
Issue on page /notebooks/Training_and_inference_using_Google_Drive.html #2143
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
Comments
I tried the suggested fix in the conversation you referenced, but I still received an error during the process: Python 3.11.11 Selection Path Priority Status
Press to keep the current choice[*], or type selection number: ^C × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
Hi @mrnels19 !
Could you please choose Thanks, Divya |
Hi @gitttt-1234 ! Thank you for your reply! I chose 3 and then hit enter when prompted. I ran the installation code multiple times, but I could not seem to import sleap later in my code. Below is the response I got after running the installation code, followed by the code to import sleap and the response there. Response to Installation Code: Python 3.7.17 Selection Path Priority Status0 /usr/bin/python3.11 2 auto mode
Press to keep the current choice[*], or type selection number: 3 Code (start and end are marked with **) to import sleap and my response: **import sleap mpl.style.use("seaborn-deep") ModuleNotFoundError Traceback (most recent call last) ModuleNotFoundError: No module named 'sleap' NOTE: If your import is failing due to a missing package, you can To view examples of installing some common dependencies, click the
|
Hi, I just wanted to follow up on my previous post (I think the varying font sizes that occurred when I pasted my text made it hard to read), but I still cannot import or load SLEAP in a Google Colab file. I used the code referenced in this issue to install SLEAP, and I chose the number 3 when prompted. However, when I Is there another way to load SLEAP into Google Colab, or a way to evaluate a SLEAP model without using the Google Colab script? Thank you! |
Hi @mrnels19, We're looking into this, trying to resolve the dependency conflicts. Do you want to run inference with a .slp model? You could create a conda env and install sleap in your local machine and run the model evaluation code in your local directly. Let me know if you have any questions! Thanks, Divya |
Great, please let me know when the dependency conflict is resolved. I am looking to run inference and model evaluation, and I will let you know if I have any more questions. |
Hello,
I have been trying to install SLEAP in Google Colab to run inference on a set of videos. In the past (last year), I have been able to successfully install SLEAP through the following commands:
However, I now receive errors when running these commands, as shown below (the Warnings were previously present; only the text beginning with the word "error" is new). I have tried to install different versions of SLEAP and I even ran the Training_and_inference_using_Google_Drive.ipynb file provided on the SLEAP website. In both cases, I still receive an error and cannot import SLEAP or run commands associated with SLEAP later in my code. I am running this Google Colab on a 2019 MacBook Pro. If you could provide some input on what is causing this error, I would appreciate it!
WARNING: Skipping opencv-python as it is not installed.
WARNING: Skipping opencv-contrib-python as it is not installed.
Collecting sleap==1.3.1
Using cached sleap-1.3.1-py3-none-any.whl.metadata (11 kB)
Collecting numpy<1.23.0,>=1.19.5 (from sleap==1.3.1)
Using cached numpy-1.22.4.zip (11.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting attrs<=21.4.0,>=21.2.0 (from sleap==1.3.1)
Using cached attrs-21.4.0-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting cattrs==1.1.1 (from sleap==1.3.1)
Using cached cattrs-1.1.1-py3-none-any.whl.metadata (12 kB)
Collecting jsonpickle==1.2 (from sleap==1.3.1)
Using cached jsonpickle-1.2-py2.py3-none-any.whl.metadata (1.1 kB)
Requirement already satisfied: networkx in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (3.4.2)
Requirement already satisfied: tensorflow-hub in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (0.16.1)
Collecting h5py<=3.7.0,>=3.1.0 (from sleap==1.3.1)
Using cached h5py-3.7.0.tar.gz (392 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting python-rapidjson (from sleap==1.3.1)
Using cached python_rapidjson-1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (22 kB)
Collecting opencv-python<=4.6.0,>=4.2.0 (from sleap==1.3.1)
Using cached opencv_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: pandas in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (2.2.2)
Requirement already satisfied: psutil in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (5.9.5)
Collecting qtpy>=2.0.1 (from sleap==1.3.1)
Using cached QtPy-2.4.3-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: pyzmq in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (24.0.1)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.11/dist-packages (from sleap==1.3.1) (6.0.2)
Collecting pillow<=8.4.0,>=8.3.1 (from sleap==1.3.1)
Using cached Pillow-8.4.0.tar.gz (49.4 MB)
Preparing metadata (setup.py) ... done
Collecting imageio<=2.15.0 (from sleap==1.3.1)
Using cached imageio-2.15.0-py3-none-any.whl.metadata (4.1 kB)
Collecting imgaug==0.4.0 (from sleap==1.3.1)
Using cached imgaug-0.4.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting scipy<=1.9.0,>=1.4.1 (from sleap==1.3.1)
Using cached scipy-1.9.0.tar.gz (42.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The text was updated successfully, but these errors were encountered: