Questions tagged [nosuchfileexception]

Checked exception thrown when an attempt is made to access a file that does not exist.

This checked exception is part of the new Java file API known as JSR 203 or NIO.2 introduced in Java 7. The exception thrown when an attempt is made to access a file that does not exist.

Oracle Documentation

Open JDK

73 questions
1
vote
1 answer

Android app shell "no such file or directory", fine in a file explorer and adb

I'm trying to copy a file from /path/to the/file.ext (yes, it has spaces, I suspect this is at least part of the trouble) to /data/data/com.my_pkg.app/file.ext. In my (root) app, I do: String cmd = "su -c \"cp /path/to\\ the/file.ext…
OJFord
  • 10,522
  • 8
  • 64
  • 98
0
votes
0 answers

"[Errno 2] No such file or directory:" when reading from shared drive

I am attempting to access files from an organization-wide shared folder (H-drive). By using a normal df1 = pd.read_excel('H:\full\file\path.xlsx') gives the error [Errno 2] No such file or directory:. The file path was directly copied from the file…
Max Duso
  • 305
  • 1
  • 4
  • 15
0
votes
0 answers

kotlin spring kafka.keystore.location NoSuchFileException when file is present and persmissions 777

Many Thanks in advance I'm moving away from the out the Box Spring default Kafka Consumer to using a ConsumerFactory configuration so I can use better handlers, hwoever I'm now struggling to load my working keystore and truststore for mtls…
0
votes
2 answers

ansible synchronize module fails to get directory from remote to local - failed: No such file or directory

I wish to copy /web/playbooks/automation/misc/filecopyprod from mysourceuser@mysourcehost to destination mydestuser@mydesthost under the below location /web/playbooks/automation/misc/filecopy/tmpfiles/500/ Evident that both the source and…
Ashar
  • 2,942
  • 10
  • 58
  • 122
0
votes
1 answer

how to delete xilinx from my linux mint permanently

I had to manually delete all Xilinx files on my Linux Mint and now every time I open terminal this shows up.I don't know what is the cause. Does anyone now how to get rid of it? Thanks in advance.
0
votes
0 answers

Issue came up in resolving ModuleNotFoundError with file not found after package conflicts found

I am trying to launch Spyder from anaconda navigator on my machine with Python 3.9, Anaconda 3, and MacOS M1 Monterey 12.1 (Just in case this might be a machine error I'm not aware about). I posted earlier trying to resolve an error that occurred…
0
votes
1 answer

File not found when said file exists

Part of a new program that I am creating downloads cif files (crystallized structures of protein molecules), and as part of the processing step I need to convert the filetype to pdb. According to biopython documentation, I can convert them using the…
0
votes
1 answer

(java.nio.file.NoSuchFileException) in my code?

I have a file called "input.txt", from that file i want to read certain data and display them. I have that file in my eclipse project folder itself. Still i'm unable to read the file. I know its been answered before but for the life of me I can't…
0
votes
0 answers

No such file or directory error on code blocks in Mac

/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/leo1708/Desktop/C:C++ Code blocks/C programs/hello/bin/Debug/hello leo1708@Deeps-Air ~ %…
0
votes
1 answer

Java NoSuchFileException When File Exists

I am attempting to parse a json file as part of an android development project. Here is the error message that keeps popping up: W/System.err: java.nio.file.NoSuchFileException:…
0
votes
1 answer

No field sessionHostPortCache - Apache Commons Net store file

I have a Problem with storing files to a FTPS server. I'm using the Apache Commons Net FTPSClient to store the files. First I got the following problem: "522 SSL connection failed: session reuse required". I was able to solve this problem with the…
0
votes
1 answer

_tkinter.TclError: couldn't open "ImmaginiDiProva/ImmagineProva1360x768.png": no such file or directory

I'm back here with a new error that I can't solve... it's a strange error, idk, I put the images in the same directory of the program, in the directory specified in the code... Ah, I don't know, but this is all the code: from tkinter import * def…
Seintian
  • 151
  • 1
  • 1
  • 11
0
votes
1 answer

Spark in Kubernetes container does not see local file

I have a trivially small Spark application written in Java that I am trying to run in a K8s cluster using spark-submit. I built an image with Spark binaries, my uber-JAR file with all necessary dependencies (in /opt/spark/jars/my.jar), and a config…
mustaccio
  • 18,234
  • 16
  • 48
  • 57
0
votes
2 answers

Why do I get an "java.nio.file.NoSuchFileException" error even though the file exists?

I'm getting the error Exception in thread "main" java.nio.file.NoSuchFileException but I'm sure the file exists at the given location C:\\Users\\Admin\\Desktop\\Java.txt". Why do I still get this error? import java.io.IOException; import…
Nagai Kei
  • 23
  • 1
  • 1
  • 6
0
votes
0 answers

FileNotFoundError: No such File due to Google Colab TimeOut? Upgrading to CoLab Pro or switching to AWS?

I am training a model on Colab and every time I am trying to use Colab's GPU, I get the error: --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call…