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

python310: syntax error in plistlib.py #307196

Open
Vovan-S opened this issue Apr 27, 2024 · 0 comments
Open

python310: syntax error in plistlib.py #307196

Vovan-S opened this issue Apr 27, 2024 · 0 comments

Comments

@Vovan-S
Copy link

Vovan-S commented Apr 27, 2024

Describe the bug

After installing latest python310 package (python 3.10.14) from channel nixos-23.11 there appears syntax error in plistlib.py in standard library:

$ nix-shell -p python310 --run "python3.10 -c 'import plistlib'"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/nix/store/19p5bpvplh27z3q9diznip0r14mbbqxr-python3-3.10.14/lib/python3.10/plistlib.py", line 498
    ! return struct.unpack(f, self._fp.read(s))[0]
                                                  ^
IndentationError: unindent does not match any outer indentation level

The syntax error itself is the exclamation mark ! at the beginning of line. Nor this exclamation mark is present in source code of cpython 3.10.14, neither it appears in tarball from python ftp, but it clearly is in source code after installation. It seems like some patching can lead to this.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Make sure that channel is 23.11.
  2. Run nix-shell -p python310 --run "python3.10 -c 'import plistlib'".
  3. You should see error message IndentationError: unindent does not match any outer indentation level.

Expected behavior

This module is expected to be imported without any issues, as it is a part of standard library.

Notify maintainers

@FRidh

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.87, NixOS, 23.11 (Tapir), 23.11.6621.dd37924974b9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.11, nixos-23.11-23.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants