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
0 answers

Installing python-pcl on Debian 10 : libpcl_keypoints import error

I am trying to install python-pcl library (see https://github.com/Sirokujira/python-pcl/tree/rc_patches4) At first I installed pcl lib using : sudo apt install libpcl-dev -y And then python3.6 -m pip install python-pcl (I have to install it on a…
1
vote
1 answer

No such file or directory error while running jsonnet with grafonnet-lib

I have cloned grafonnet-lib from https://github.com/grafana/grafonnet-lib link and created a sample jsonnet file to convert it to json that grafana can read. But when I run the command "jsonnet -J /Data/Perf_Tool/grafonnet-lib/ sample.jsonnet" I get…
Vinod JV
  • 13
  • 3
1
vote
0 answers

when using python open() on mac, getting "[Errno 2] no such file or directory: 'file:///absolute/path/' ", path generated from MLflow

I imagine this has been answered, but I could not find. I am attempting to use: with open('file:///absolute/path/to/file') as fn: csv-stuff however, I am getting Error : "[Errno 2] No such file or directory:…
1
vote
1 answer

java.nio.file.NoSuchFileException - Download files from GCS

I am attempting to download a file from Google Cloud Storage. I'm using Google's Github code here on line 1042. I believe my error is with the file path. The path variable is to state where the file is downloaded to and the new name of it, correct?…
Alex Brandt
  • 73
  • 1
  • 1
  • 6
1
vote
1 answer

rJava NoSuchFileException when running jar from R

I'm trying to run a runnable JAR file from R, using the rJava package. This jar has to write and read some files to/from external folders, that are in the same path as the jar file itself, like this:…
Mr. Phil
  • 1,099
  • 2
  • 14
  • 31
1
vote
1 answer

java 9 resource file different module NoSuchFileException

I am trying to load a file which is present in the resources folder, but getting an exception. I am using java 9, and the java file that has the code to read the file is present in some other module and the calling code is in some other module. Can…
Amar Dev
  • 1,360
  • 2
  • 18
  • 38
1
vote
2 answers

how to add shape in turtle

I am trying to re-create the legend of zelda 1986 version in python and I immediately ran into a problem. I cant add the link gif to be the shape. Here is my code: from turtle…
Xero0
  • 23
  • 1
  • 5
1
vote
1 answer

Java copy and paste files NoSuchFileException

I received a NoSuchFileException when trying to copy and paste files based on string search of filenames in one directory (a list of strings), create a new folder based on the search string, than copy and paste the matching files to that folder. …
Olive
  • 23
  • 5
1
vote
1 answer

Cannot delete a named pipe from Java

I'm creating a named pipe in Java, which is working with the following code: final String [] mkfifo = {"/bin/sh", "-c", "mkfifo ~/myFifo && tail -f ~/myFifo | csh -s"}; Process p = Runtime.getRuntime().exec(mkfifo); But now I'm getting a…
erip
  • 16,374
  • 11
  • 66
  • 121
1
vote
0 answers

hibernate load record with AttributeOverride return NoSuchFieldException

As I have three database tables with a similar structure I have created an Embeddable class to be reused as their id: @Embeddable public class AcceptanceCriteriaId implements Serializable{ private String requestValue; private String…
1
vote
0 answers

Java can see some folders/files but returns NoSuchFileException on others

I was getting a NoSuchFileException when I was trying to access a file so I went through the usual process, checked the file existed, etc. I did this by checking the exception: java.nio.file.NoSuchFileException: /var/config/file/test111.txt then…
Drew
  • 58
  • 4
1
vote
1 answer

No such file or directory ERROR. Part of pathname is exported in .bash_profile

Inside a script I have named monitor power I have a variable named CHARGE_CYCLES: CHARGE_CYCLES="$TOOLS/Data/Charge\ Cycles.txt" The variable $TOOLS is declared and exported in my .bash_profile because I want it to be available to various…
user4434778
1
vote
1 answer

Perl - No such file or directory exec error. File exists and is being called correctly (Windows)

I have the following exec statement: $script_dir = 'C:\Users\mcnall\Documents\main_home\script'; exec("$script_dir\\exec.pl", "$name", "$func_type", "$func_args"); When reaching this line, the error Can't exec…
AMcNall
  • 529
  • 1
  • 5
  • 23
1
vote
3 answers

NoSuchFieldException when trying to retrieve the value of field

I read this post and followed the guidelines there. but that did not help; I get NoSuchFieldException when the field exists. The sample code is below: Here is my code: class A{ private String name="sairam"; private int number=100; } public…
brain storm
  • 30,124
  • 69
  • 225
  • 393
1
vote
5 answers

Android says no such file or folder even though it's there

I'm trying to access files inside my Android phone, and the code below is used for it: final File folder = new File("/storage/sdcard0/"); for (final String fileEntry : folder.list()) { System.out.println(fileEntry); } It…
Brandon Ling
  • 3,841
  • 6
  • 34
  • 49