Python Forum
FileNotFoundError in newly structured Python project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileNotFoundError in newly structured Python project
#1
Hi,

I have restructured my existing python 3.6 project and it's folders look like as the attached file.
Inside the utils folder there is a python script which generates a csv file inside the categories folder.
Now issue I am facing is that when I run the script from utils folder,it is unable to generate csv in categories folder-
FileNotFoundError: [Errno 2] No such file or directory: 'categories/abc.csv'
Can anyone correct this path issue?

Ohh I found my answer.I was giving wrong path. Now it is resolved.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why does newly-formed dict only consist of last row of each year? Mark17 6 2,343 Nov-17-2023, 05:28 PM
Last Post: Mark17
  Need Help: FileNotFoundError:[Errno 2] No such file or directory python202209 5 6,172 Sep-12-2022, 04:50 AM
Last Post: python202209
  FileNotFoundError: [Errno 2] No such file or directory: 5l3y3r 6 10,536 Nov-02-2020, 12:48 PM
Last Post: 5l3y3r
  Shutil FileNotFoundError: Errno 2 Help lord_kaiser 8 14,142 Aug-10-2020, 08:45 AM
Last Post: lord_kaiser
  FileNotFoundError: [Errno 2] No such file or directory saqib1066 23 31,977 Mar-16-2020, 01:25 PM
Last Post: saqib1066
  How to show newly added column to csv johnson54937 3 3,048 Jan-07-2020, 04:01 AM
Last Post: Larz60+
  FileNotFoundError managment sal 2 3,452 Oct-23-2019, 09:18 AM
Last Post: sal
Question pdfkit.from_string('Hello!','out.pdf') gives FileNotFoundError sipriusPT 3 11,589 Sep-19-2019, 01:44 PM
Last Post: snippsat
  FileNotFoundError: No such file or no access agatte 2 5,897 Sep-12-2019, 08:48 AM
Last Post: agatte
  FileNotFoundError...System cannot find the path specified alex9745 28 26,717 Jul-23-2019, 05:14 AM
Last Post: alex9745

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020