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.

Mac OS pip install failure due to filename typo

See original GitHub issue

When cloning the pypylon repo locally and using pip install . I receive an error.

The issue is due to a mismatch between the file created in the pylon 6.1.2 Mac OS package and pypylon file setup.py line 687

A quick work-around involves copying the file with a new name

cp /Library/Frameworks/pylon.framework/Versions/Current/Resources/Tools/pylon-config
 /Library/Frameworks/pylon.framework/Versions/Current/Resources/Tools/pylon-config.sh

Rather than submit a pull request I figured this could easily be fixed by the dev team during their next commit. Thanks.

    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/setup.py'"'"'; __file__='"'"'/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/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 /private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-pip-egg-info-la04ol2m
         cwd: /private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/
    Complete output (20 lines):
    ERROR:root:Couldn't find pylon. Please install pylon in /Library/Frameworks/ or tell us the installation location using the PYLON_ROOT environment variable
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/setup.py", line 814, in <module>
        default=bs.get_version(),
      File "/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/setup.py", line 285, in get_version
        pylon_version = self.get_pylon_version()
      File "/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/setup.py", line 766, in get_pylon_version
        return self.call_pylon_config("--version")
      File "/private/var/folders/90/m73vsm9j65v09n2tyb5knn980000gn/T/pip-req-build-bc2pt03s/setup.py", line 748, in call_pylon_config
        res = subprocess.check_output(params, universal_newlines=True)
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 411, in check_output
        **kwargs).stdout
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 488, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 800, in __init__
        restore_signals, start_new_session)
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1551, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '/Library/Frameworks/pylon.framework/Versions/Current/Resources/Tools/pylon-config.sh': '/Library/Frameworks/pylon.framework/Versions/Current/Resources/Tools/pylon-config.sh'
    ----------------------------------------
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 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
thiesmoellercommented, May 25, 2020

Thanks for reporting. The release of a new pylon version changed the name of the config script

0reactions
thiesmoellercommented, Aug 28, 2020

include path for stdlibc++ headers not found

I have no issue building In homebrew environment Your clang seems to have setup issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

error when trying to install pip on mac 10.7 - Stack Overflow
This works because you download get-pip.py into your working directory, which is where the python interpreter will start searching for the file.
Read more >
pip Command Not Found – Mac and Linux Error Solved
This error could be due to the following reasons: Pip is not installed. Pip is installed, but it is not compatible with the...
Read more >
Mac install failing - solved - Prodigy Support
Executed pip install prodigy.whl* again and now I get the message: “Requirement 'prodigy*.whl' looks like a filename, but the file does not ...
Read more >
pip install - pip documentation v22.3.1
Description#. Install packages from: PyPI (and other indexes) using requirement specifiers. VCS project urls. Local project directories.
Read more >
I can't install TensorFlow-macos a… | Apple Developer Forums
Thanks. The first package is much larger than the first, I did them in two separate passes. ... pip install tensorflow-macos , is...
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