I'm new to python.
I wrote a program that automatically takes a screenshot of the kindle screen and saves it, but I get an error and it doesn't work.
How can it work? We look forward to hearing from you.
page = 5
span = 1
h_foldername = "output"
h_filename = "picture"
folder_name = h_foldername + "_" + str (datetime.datetime.now (). strftime ("% Y% m% d% H% M% S"))
for p in range (page):
out_filename = h_filename + "_" + str (p + 1) .zfill (4) +'.png'
s = pyautogui.screenshot ()
s.save (folder_name + "/" + out_filename)
〇 Error message
Traceback (most recent call last):
File "C: \ Users \ cjrr6 \ Desktop \ save_kindle_screen.py", line 29, in
s = pyautogui.screenshot ()
File "C: \ Users \ cjrr6 \ AppData \ Local \ Programs \ Python \ Python39-32 \ lib \ site-packages \ pyscreeze \init.py ", line 134, in wrapper
raise PyScreezeException ('The Pillow package is required to use this function.')
pyscreeze.PyScreezeException: The Pillow package is required to use this function.
〇 Referenced site
Kindle automatic screenshot save program
Answer # 1
The Pillow package is required to use this function
Because it says, the Pillow package is not installed or cannot be loaded.
Try reinstalling Pillow with pip.
- i want a program that uses watchdog to be automatically executed when a python computer is started
- python 3x - i want to create a system that automatically searches google by multiplying the given keywords
- database - create a program that reads a text file with a java program on the server side, saves the contents in a db, and retur
- visual c ++ - i want to create a program that uses enumeration types to fortune-telling with random numbers
- python - django image folder reasons to create static and madia folders separately
- how to automatically open a tool written in python when maya (2016) starts
- i can't think of a way to create a program below the average or i don't understand
- python - i want to create a function that finds the standard deviation sigma from x, y
- python - background program by sharley method
- python - tabelog scraping: i want to create a data frame for each store name, address, and evaluation score
- how to write a python program for the fibonacci sequence
- python - i don't see the error in the face cropping program with opencv
- python - a code that automatically selects the features used in machine learning
- please tell me how to write a program to end when the result is executed 5 times [python]
- python 3x - the program only works on the first line
- python 3x - i want to be able to run a scraping program created in python on a website
- get gogole search screen automatically with python
- i want to create polygon data in python geojson format
- python - i want to modify the program
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory