Skip to content
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

Xonsh no longer start #301444

Closed
SamLukeYes opened this issue Apr 4, 2024 · 3 comments · Fixed by #301449
Closed

Xonsh no longer start #301444

SamLukeYes opened this issue Apr 4, 2024 · 3 comments · Fixed by #301449
Labels
0.kind: bug Something is broken

Comments

@SamLukeYes
Copy link
Member

Describe the bug

After a recent nixos-unstable update, xonsh is no longer able to launch.

Traceback (most recent call last):
  File "/nix/store/ghr6zvrvjcww884wrcj0pimmpjs2kx61-xonsh-0.15.1/bin/xonsh", line 5, in <module>
    from xonsh.main import main
ModuleNotFoundError: No module named 'xonsh'

Steps To Reproduce

Launch xonsh

Expected behavior

Xonsh should start without issue

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

I've found a change of python env that reached nixos-unstable recently (#297628). Perhaps it is the change that breaks xonsh.

Notify maintainers

@AndersonTorres

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.22-xanmod1, NixOS, 24.05 (Uakari), 24.05pre-git
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.2
  • nixpkgs: /etc/nix/inputs/nixpkgs

Add a 👍 reaction to issues you find important.

@SamLukeYes SamLukeYes added the 0.kind: bug Something is broken label Apr 4, 2024
@FlyingWombat
Copy link
Contributor

May not be the same issue, but this doesn't work either:

❯ nix-shell -p 'python3.withPackages (p: with p; [ xonsh ])'
❯ python
Python 3.11.8 (main, Feb  6 2024, 21:21:21) [GCC 13.2.0] on linux
>>> import xonsh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'xonsh'

@3541
Copy link

3541 commented Apr 13, 2024

python3.withPackages (p: with p; [ xonsh ])'

Not sure this ever worked—xonsh in this expression is coming from Nixpkgs directly, not p. It still does not work after #302385.

@SamLukeYes
Copy link
Member Author

python3.withPackages (p: with p; [ xonsh ])'

Not sure this ever worked—xonsh in this expression is coming from Nixpkgs directly, not p. It still does not work after #302385.

That's a different issue. You should probably use xonsh.override { extraPackages = ps: with p; [ ... ]; } instead. However, if you really need the full python env, unfortunately there's no way to use it outside the xonsh derivation for now. Maybe we should add it to passthru.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants