screenshot icon indicating copy to clipboard operation
screenshot copied to clipboard

How to use screenshot on Mac OS X?

Open ssxcxS45XT opened this issue 4 years ago • 1 comments

I got the following error on Mac OS X 10.15.6. Could anybody let me know how to fix it?

$ pip3 install screenshot
Requirement already satisfied: screenshot in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (1.0.1)
Requirement already satisfied: detect in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (2020.12.3)
Requirement already satisfied: click in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (7.0)
Requirement already satisfied: pyobjc-framework-Quartz in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (7.1)
Requirement already satisfied: pyobjc-framework-Cocoa>=7.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyobjc-framework-Quartz->screenshot) (7.1)
Requirement already satisfied: pyobjc-core>=7.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyobjc-framework-Quartz->screenshot) (7.1) 
$ screenshot Terminal
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/screenshot", line 5, in <module>
    from screenshot.mac.capture import run
ModuleNotFoundError: No module named 'screenshot.mac'

ssxcxS45XT avatar Jan 17 '21 12:01 ssxcxS45XT

Hi @ssxcxS45XT,

Sorry that you're experiencing a problem with screenshot, but thanks for opening an issue.

A broken version was pushed to PyPI with the version number 1.0.1. Using version 1.0.0 should fix your issue:

python3 -m pip install screenshot==1.0.0

If you're still encountering a problem, please report it here and I'll see what I can do about fixing it.

alexdelorenzo avatar Jan 27 '21 22:01 alexdelorenzo