I am using sketchpy to draw an image but i got an error

118 Views Asked by At

I have written this code in python while executing i got below error.

Traceback (most recent call last):
  File "C:\Users\DOLU RAMBABU\AppData\Roaming\Python\Python312\site-packages\sketchpy\library.py", line 232, in log
    with open(path, 'r') as f:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DOLU RAMBABU\\AppData\\Local\\Programs\\Python\\data.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Python_practice\draw.py", line 1, in <module>
    from sketchpy import library as gfg
  File "C:\Users\DOLU RAMBABU\AppData\Roaming\Python\Python312\site-packages\sketchpy\library.py", line 243, in <module>
    old_data = log(1, path)
               ^^^^^^^^^^^^
  File "C:\Users\DOLU RAMBABU\AppData\Roaming\Python\Python312\site-packages\sketchpy\library.py", line 240, in log
    with open(path, 'w') as f:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\DOLU RAMBABU\\AppData\\Local\\Programs\\Python\\data.txt'

Could someone please guide me how to resolve this issue?

I am looking for solution for the above error.

0

There are 0 best solutions below