Загрузка...

What does he want? python

Thread in Python created by rqp Aug 3, 2025 at 7:21 PM. 141 view

  1. rqp
    rqp Topic starter Aug 3, 2025 at 7:21 PM 728 Sep 7, 2020
    1. saiwqq
      rqp, эта сука хочет деняг
  2. oriole
    oriole Aug 3, 2025 at 7:22 PM был(а) давно
    файл не находит
     
  3. Miladora
    Хочет чтобы в папке скриншотс был такой файл как ты указал в коде
     
  4. arabesko
    arabesko Aug 3, 2025 at 7:22 PM :smile_love:СОЧНЫЙ ДИЗАЙН lolz.live/threads/7588347 :smile_love: 417 May 17, 2022
    нет такого файла или директории
     
  5. Jlexasik
    хочет чтобы ты играл чесно в сталкрафт
     
  6. ГИЛТИКУС
  7. tedxd
    tedxd Aug 3, 2025 at 7:23 PM Banned 1851 Apr 18, 2021
    25 год на дворе, родной
    [IMG]
     
  8. Python
    там же написано бро[IMG]
     
  9. десептикон
    нет файла в этой директории
     
  10. Troxip
    Troxip Aug 3, 2025 at 7:27 PM Жизнь коротка, не трать её на чтение моего статуса 13,476 Jan 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 Aug 3, 2025 at 7:29 PM Сначала мы жили бедно, а потом нас обокрали...
    тут собрание вайбкодеров?
     
  12. pvlvvlrj
    используй deepseek
     
  13. KILOSTER
    Эх вайбкодинг
     
Top
Loading...