Python Forum
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles
#11
(Jun-11-2021, 04:11 PM)Anldra12 Wrote: @snippsat yeah you are right still i have same error
You most mess up something this is really basic stuff.
I can make Articles.csv as example and open it Pandas.
import pandas as pd

df = pd.read_csv("G:/div_code/my_files/Articles.csv", sep=';')
print(df)
Output:
name regcode number 0 Salah 111 22 1 ali 222 33 2 Ranard 333 44
So now file is in this path on my G:/ drive,
navigate in cmd and show files this stuff most you learn as CLI is a import part of programming.
C:\Users\Tom>g:

G:\>cd div_code\my_files

G:\div_code\my_files>dir
 Volume in drive G is Seagate Backup Plus Drive
 Volume Serial Number is E687-60FA

 Directory of G:\div_code\my_files

11.06.2021  18:31    <DIR>          .
11.06.2021  18:31    <DIR>          ..
11.06.2021  18:30                60 Articles.csv
08.06.2021  16:04                 4 boy_1.txt
08.06.2021  16:04                 4 boy_2.txt
               3 File(s)             68 bytes
               2 Dir(s)  1 340 879 269 888 bytes free

G:\div_code\my_files>more Articles.csv
name;regcode;number
Salah;111;22
ali;222;33
Ranard;333;44

G:\div_code\my_files>
So over i have showed that file is this path an the content of file.
Then path as use in script most work as you see it dos.
Also a tips tips cmder is much better,i do not all use cmd/powershell other than give some demo on forum.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  speed up getting embedding from bert model for large set of text veda 7 397 May-27-2024, 08:28 AM
Last Post: Pedroski55
  Error (Errno 2), File upload with the Flask framework and a public IP Username_Python1 0 403 Mar-28-2024, 01:46 PM
Last Post: Username_Python1
  model.fit and model.predict errors hatflyer 6 1,640 Nov-10-2023, 01:39 AM
Last Post: hatflyer
  Modify an Energy Model to account for year dependent interest rate rather than only t giovanniandrean 0 488 Oct-10-2023, 07:00 AM
Last Post: giovanniandrean
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,742 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,865 Jun-27-2023, 01:17 PM
Last Post: diver999
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 1,143 Jan-23-2023, 04:56 AM
Last Post: deanhystad
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,221 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  no such file or directory in SFTP saisankalpj 2 1,692 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE
Photo Making Zip file of a file and Directory Nasir 2 1,099 Oct-07-2022, 02:01 PM
Last Post: Nasir

Forum Jump:

User Panel Messages

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