question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when installing: No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'

See original GitHub issue

when updating to 5.0 on Ubuntu 18.04 and python3.6

   ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/setup.py'"'"'; __file__='"'"'/tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/pip-egg-info
         cwd: /tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/setup.py", line 25, in <module>
        extra_link_args=["-framework", "CoreFoundation"],
      File "/tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/pyobjc_setup.py", line 408, in Extension
        os_level = get_os_level()
      File "/tmp/pip-install-543k_rpn/pyobjc-framework-Cocoa/pyobjc_setup.py", line 218, in get_os_level
        pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
      File "/usr/lib/python3.6/plistlib.py", line 162, in readPlist
        with _maybe_open(pathOrFile, 'rb') as fp:
      File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
        return next(self.gen)
      File "/usr/lib/python3.6/plistlib.py", line 120, in _maybe_open
        with open(pathOrFile, mode) as fp:
    FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

``

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cbrnrcommented, Oct 24, 2019

Fixed in v0.5.1 - please try installing now, I’ve tested this on my Linux machine and it works.

1reaction
cbrnrcommented, Oct 24, 2019

Hm, it’s trying to install pyobjc-framework-Cocoa, which only exists for macOS. I thought the following lines in setup.py should have handled this:

if sys.platform.startswith("darwin"):
    install_requires.append('pyobjc-framework-Cocoa')

I’ll check on my Linux machine right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Info.plist file "no such file" error - Stack Overflow
plist file usually is located in the same folder ad project. You can always open project file in vi and edit it manually....
Read more >
Issues - GitHub
While installing uYou Plus IPA I'm always getting this “ MessagesExtension.appex/Info.plist: No such file or directory”.
Read more >
App Won't Compile with Embedded Third Party Framework
"Build succeeds" but the app won't run and Xcode spits out an error: Could not install at this time. Failed to load Info.plist...
Read more >
How to Fix Python `No such file or directory` Compiler Errors ...
A common error that you may receive when installing Python modules is the No such file or directory error. This error results from...
Read more >
Chapter 8. Advanced pkg-plist Practices
A dynamic package list is a package list which is generated at the time the port is compiled based upon the files and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found