Skip to content

AttributeError: module 'plistlib' has no attribute 'readPlist' #3

@tekumara

Description

@tekumara
❯ pip install macos-lswin
Collecting macos-lswin
  Using cached macos_lswin-0.2-py3-none-any.whl (5.3 kB)
Collecting pyobjc-framework-Quartz==6.1
  Using cached pyobjc-framework-Quartz-6.1.tar.gz (3.4 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/5y/hhvf46cx393_j75q4gm7tvzw0000gq/T/pip-install-mfm4tqj1/pyobjc-framework-quartz_531f40edf8f74007bb75bfbab6fe8a6a/setup.py", line 64, in <module>
          Extension("Quartz.CoreVideo._CVPixelBuffer", ["Modules/_CVPixelBuffer.m"]),
        File "/private/var/folders/5y/hhvf46cx393_j75q4gm7tvzw0000gq/T/pip-install-mfm4tqj1/pyobjc-framework-quartz_531f40edf8f74007bb75bfbab6fe8a6a/pyobjc_setup.py", line 408, in Extension
          os_level = get_os_level()
        File "/private/var/folders/5y/hhvf46cx393_j75q4gm7tvzw0000gq/T/pip-install-mfm4tqj1/pyobjc-framework-quartz_531f40edf8f74007bb75bfbab6fe8a6a/pyobjc_setup.py", line 218, in get_os_level
          pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
      AttributeError: module 'plistlib' has no attribute 'readPlist'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
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.

[notice] A new release of pip is available: 23.0 -> 23.0.1
[notice] To update, run: pip install --upgrade pip

python 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions