Загрузка...

Что он хочет? питон

Тема в разделе Python создана пользователем rqp 3 авг 2025 в 19:21. 86 просмотров

  1. rqp
    rqp Автор темы 3 авг 2025 в 19:21 728 7 сен 2020
    1. saiwqq
      rqp, эта сука хочет деняг
  2. oriole
    oriole 3 авг 2025 в 19:22 был(а) давно
    файл не находит
     
  3. Miladora
    Miladora 3 авг 2025 в 19:22 :coder: 10 328 30 июн 2019
    Хочет чтобы в папке скриншотс был такой файл как ты указал в коде
     
  4. arabesko
    arabesko 3 авг 2025 в 19:22 :smile_love:СОЧНЫЙ ДИЗАЙН lolz.live/threads/7588347 :smile_love: 396 17 май 2022
    нет такого файла или директории
     
  5. Jlexasik
    хочет чтобы ты играл чесно в сталкрафт
     
  6. ГИЛТИКУС
  7. tedxd
    tedxd 3 авг 2025 в 19:23 Экономь с умом :righthand:trx-energy.ru:lefthand: 1855 18 апр 2021
    25 год на дворе, родной
    [IMG]
     
  8. Python
    там же написано бро[IMG]
     
  9. десептикон
    нет файла в этой директории
     
  10. Troxip
    Troxip 3 авг 2025 в 19:27 Жизнь коротка, не трать её на чтение моего статуса 13 476 8 янв 2017
    The error in the image is:
    vbnetCopyEdit
    FileNotFoundError: [Errno 2] No such file or directory: 'screenshots/screenshot.jpeg'


    Root Cause:


    The script is trying to save a screenshot to screenshots/screenshot.jpeg, but the screenshots directory does not exist.

    Fix:


    Create the screenshots folder before calling pyautogui.screenshot(...).

    You can fix it by modifying the code like this:

    pythonCopyEdit
    import os
    import pyautogui

    # Ensure the 'screenshots' directory exists
    os.makedirs("screenshots", exist_ok=True)

    # Then take the screenshot
    pyautogui.screenshot('screenshots/screenshot.jpeg')


    This will automatically create the screenshots folder if it doesn't already exist, preventing the FileNotFoundError.

    Let me know if you want the full file patched.
     
  11. sunshine
    sunshine 3 авг 2025 в 19:29 Сначала мы жили бедно, а потом нас обокрали...
    тут собрание вайбкодеров?
     
  12. pvlvvlrj
    используй deepseek
     
  13. KILOSTER
    Эх вайбкодинг
     
Top
Загрузка...