Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: `jupyter lab` not working in virtual enviroment
Date: Sun, 26 Nov 2023 17:29:23 +0100	[thread overview]
Message-ID: <20231126162923.SliOmL9xWUacwL51wbhN7icORQiqd-cChSlTxNL1Iu0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47135@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/47135#issuecomment-1826828577

Comment:
Of course this is expected and how venv works afaik:
```
$ python -m venv bad-venv
$ . bad-venv/bin/activate
(bad-venv) $ python -m sage
.../bad-venv/bin/python: No module named sage
(bad-venv) $
```

What you want can be acomplished with `--system-site-packages`:
```
$ python -m venv --system-site-packages good-venv
$ . good-venv/bin/activate
(good-venv) $ python -m sage
.../good-venv/bin/python: No module named sage.__main__; 'sage' is a package and cannot be directly executed
(good-venv) $ jupyter console --kernel=sagemath
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
Jupyter console 6.6.3

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.2.rc4, Release Date: 2023-11-17                │
│ Using Python 3.12.0. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
In [1]: 
```

Please check if this works for you. Note that running sage like this is unsupported upstream. They really want you to build the whole kitchen sink.

  parent reply	other threads:[~2023-11-26 16:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-09 14:36 [ISSUE] " Eloitor
2023-11-09 15:21 ` Eloitor
2023-11-26 16:29 ` tornaria [this message]
2023-11-27  8:27 ` Eloitor
2023-11-28  2:25 ` tornaria
2023-11-28  2:31 ` [ISSUE] [CLOSED] " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231126162923.SliOmL9xWUacwL51wbhN7icORQiqd-cChSlTxNL1Iu0@z \
    --to=tornaria@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).