Closed issue by Eloitor on void-packages repository https://github.com/void-linux/void-packages/issues/47135 Description: ### Is this a new report? Yes ### System Info Void 6.5.9_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFFFFFFFFFFFFFFF ### Package(s) Affected sagemath-10.1_4 jupyterlab-4.0.7_1 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? _No response_ ### Expected behaviour I can use sagemath in a virtual environment in `jupyter lab`. ### Actual behaviour I can use sagemath in a virtualenvironment in the repl, but not with `jupyer lab`. ### Steps to reproduce 1. Install `sagemath` and `jupyterlab` 2. Create a python virtual environment: `python3 -m venv /path/to/venv` 3. Activate the virtual environment: `. /path/to/venv/bin/activate` 4. Run `sage`, output is ``` $ sage ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.1, Release Date: 2023-08-20 │ │ Using Python 3.12.0. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ /usr/lib/python3.12/site-packages/IPython/core/interactiveshell.py:913: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. warn( sage: ``` After this, sage works as expected. 5. Quit sage with `Control + D`. 6. run `jupyter lab`, and create a new sagemath notebook. The notebook does not work (computations get stuck forever). ``` /path/to/venv/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') ```