Questions tagged [filenotfounderror]

100 questions
8
votes
6 answers

OpenAI Whisper; FileNotFoundError: [WinError 2] The system cannot find the file specified

I wanted to check out OpenAI whisper and see if I could find some personal applications for it. I went on github and followed the instructions to set it up. My primary system is on Windows 11 and I get this error; "FileNotFoundError: [WinError 2]…
Gordon Freeman
  • 133
  • 1
  • 1
  • 5
5
votes
2 answers

poetry run worker.py | FileNotFound [Errno 2] No such file or directory: b'/snap/bin/worker.py'

I execute the below command, in the same working directory as file worker.py: poetry run worker.py Terminal: me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/composite_key/compositekey$ poetry run worker.py FileNotFoundError [Errno 2] No…
StressedBoi69420
  • 1,376
  • 1
  • 12
  • 40
3
votes
2 answers

FileNotFoundError: [Errno 2] No such file or directory, while the file does exist and it's in the same folder

I'm coding something and I need to open a .txt file on the code. I have both the code and the text file in the same folder, yet I still get this error: FileNotFoundError: [Errno 2] No such file or directory: 'dis_rules.txt'. The code I wrote was…
Markiiuz
  • 71
  • 1
  • 1
  • 7
3
votes
1 answer

Python 3.7 pdflatex filenotfounderror

I am using python 3.7 with PyCharm on Windows 10. I have a Tex file and want to generate a pdf with pdflatex. pdfl = PDFLaTeX.from_texfile('test.tex') pdf, log, completed_process = pdfl.create_pdf(keep_pdf_file=True, keep_log_file=True) I keep…
3
votes
1 answer

FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/Santillana/geckodriver' using Selenium libary in Google Colab

I am trying to use Selenium in Google Colab, but i get some errors when i try to run a Firefox instance. i followed this links: Selenium documentation here, i tried with the Driver Management Software but i got the error that says that was unable…
3
votes
2 answers

Python try except, try again after executing except statement

I'm trying to execute a statement, but if it fails I want to execute the except statement and after I want to execute the try again. I know I can use loops, but I'm looking for a more elegant solution. In my use case I try to save a file to a folder…
Hestaron
  • 190
  • 1
  • 8
2
votes
0 answers

FastAI appends `models/` prefix and `.pth` suffix to weights file path

Goal: Override FastAI appending models/ prefix and .pth suffix to the weights file path. Version: fastai==2.7.7 Note: this behaviour does not happen to the model file path. How can I override this…
DanielBell99
  • 896
  • 5
  • 25
  • 57
2
votes
3 answers

Step 4 in my Deforum Stable Diffusion Notebook keeps giving an error of FileNotFound

I admit that I'm new to a lot of this. It's been many years since I worked with anything this in-depth and I hope I'm in the right place to post this. I apologize if I'm not doing this correctly. Please let me know if I should be doing this…
2
votes
1 answer

What could be the problem in To-do app using Streamlit in Python?

to-dos.py import streamlit as st import get_todos todos = get_todos.getTodos() def add_todos(): todo1 = st.session_state["new_todo"] + "\n" todos.append(todo1) get_todos.writeTodos(todos) st.title("My TO-DO…
2
votes
0 answers

Pyinstaller: FileNotFoundError: [WinError 2] The system cannot find the file specified:

I have been trying to export a python file as an exacutable file using ptinstaller. However, I get the following error: "FileNotFoundError: [WinError 2] The system cannot find the file specified:…
2
votes
1 answer

os.getcwd() leading to FileNotFoundError

I'm trying to import data from a csv into a database following this repository. I run the function on my windows desktop, and get this error: ['Customer Contracts$.csv', 'Customer Demo.csv', 'Customer…
2
votes
0 answers

FileNotFoundError: Could not find module 'C:\Program Files\jvm.dll' (or one of its dependencies). Try using the full path with constructor syntax

I run this code import ctypes ctypes.CDLL('C:\Program Files (x86)\Java\jre1.8.0_271\bin\client\jvm.dll') ZEMBEREK_PATH = r'C:\Users\ftufan\Anaconda3\Lib\site-packages\zemberek' startJVM(getDefaultJVMPath(), '-ea', '-Djava.class.path=%s' %…
2
votes
2 answers

Python - os.rename "FileNotFoundError: [WinError 2]"

I'm trying to batch rename some photos and I wanna the second part only, e.g. renaming from 1234 - Photo_Name.jpg to Photo_Name.jpg. This is my code: import os folder = r"C:\Users\yousef\Downloads\Pictures\\" files = os.listdir(folder) for…
2
votes
1 answer

Python: FileNotFoundError, from glob output, full path to file is correct

I hate to be the person to post another FileNotFoundError question, but most of them that I see are about not giving the full path to the file, that is not my problem here. I have a number of log files in folders in ../../Data/. I create a glob of…
Jerup
  • 21
  • 1
1
vote
1 answer

FileNotFoundError when importing Scipy in a .exe file compiled with pyinstaller

I'm trying to run a python script compiled into a .exe with pyinstaller and I'm running into issues when importing scipy (no issues with other imported packages) : Traceback (most recent call last): File "Sim_choix_modal.py", line 15 in
P.Bryss
  • 11
  • 2
1
2 3 4 5 6 7