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 732 Nov-17-2023, 05:28 PM
Last Post: Mark17
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,490 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  Need Help: FileNotFoundError:[Errno 2] No such file or directory python202209 5 2,523 Sep-12-2022, 04:50 AM
Last Post: python202209
  FileNotFoundError: [Errno 2] No such file or directory: 5l3y3r 6 8,008 Nov-02-2020, 12:48 PM
Last Post: 5l3y3r
  Shutil FileNotFoundError: Errno 2 Help lord_kaiser 8 10,356 Aug-10-2020, 08:45 AM
Last Post: lord_kaiser
  Getting FileNotFoundError: [Errno 2] ,if tries to acees same file from sub-directory pmpinaki 2 2,457 May-04-2020, 03:39 PM
Last Post: pmpinaki
  FileNotFoundError: [Errno 2] No such file or directory saqib1066 23 24,021 Mar-16-2020, 01:25 PM
Last Post: saqib1066
  How to show newly added column to csv johnson54937 3 2,165 Jan-07-2020, 04:01 AM
Last Post: Larz60+
  FileNotFoundError managment sal 2 2,526 Oct-23-2019, 09:18 AM
Last Post: sal
  [split] FileNotFoundError...System cannot find the path specified powerrocker 1 2,022 Oct-03-2019, 09:09 AM
Last Post: buran

Forum Jump:

User Panel Messages

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