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

OSError: [Errno 2] No such file or directory on Mac ElCapitan #25

Closed
janmasarik opened this issue Nov 1, 2016 · 4 comments
Closed

OSError: [Errno 2] No such file or directory on Mac ElCapitan #25

janmasarik opened this issue Nov 1, 2016 · 4 comments

Comments

@janmasarik
Copy link

janmasarik commented Nov 1, 2016

Hi, got this when trying to call generate_barcode...

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/treepoem/__init__.py", line 123, in generate_barcode
    bbox_lines = _get_bbox(code)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/treepoem/__init__.py", line 84, in _get_bbox
    stderr=subprocess.PIPE,
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
@adamchainz
Copy link
Owner

This is probably because you don't have Ghostscript installed: https://github.com/YPlan/treepoem/blob/master/treepoem/__init__.py#L79

Sorry the README doesn't document any install process

@adamchainz
Copy link
Owner

N.B. on mac it's brew install ghostscript

@adamchainz
Copy link
Owner

Documenting in #26

@janmasarik
Copy link
Author

thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants