» Home » Exist » Page 1
“Error: File or directory does not exist” BUT they do exist as confirmed by os.listdir
Category : Programming Languages

I am writing a program that should read in a number of csv files from a directory and do some analysis on each file. I have these functions:

# Function reads in files and saves data into 2 dimensional array
def ReadInFiles(name):
data = []
fname = csv.reader(open(name, 'r'))
#print 'read in file: ' + str(fname)
rowCount = 0

View Replies

Does a cross-platfrom compiler that can compile a native executable that can be run both in linux windows exist? Could it exist?
Category : Operating Systems

I remember a few years ago(2002) there was a multipartite virus that could be run natively on linux and windows. I don't know if a compiler could be specially craft an executable so that it could be read as both ELF and PE, so that the os would start executing at different entry points. Or a program that could merge two programs, one compiled using mingw, one compiled in native linux, to one pr

View Replies

MySQL ERROR 1072: States Key doesn't exist, yet it does exist
Category : Databases

Apologies if this is a newbie question, but I have been unable to resolve this problem for some time and am hoping someone with a better understand of MySQL can assist me in deciphering the following problem:
I have two tables that I want to maintain so that users can define their preferences, while an admin can maintain their access rights to those preferences. And I want to make sure that

View Replies

Jquery: selector for elements that don't exist now, but will exist in future?
Category : Programming Languages

In in aspx page, there is a grid view, that has template control for checkbox, something like this

<asp:gridview .....
<asp:CheckBox ID="chkAll" runat="server"/>
<asp:CheckBox ID="chkSe

View Replies

Insert navigation property if it doesn't exist or just use it if it does exist without key
Category : Programming Languages

I have 2 tables:

Person table -
Name (unique index).
Orders table -
PersonID (FK)

I want to do an insert to the orders table (using EF) that will insert a list of orders (all with the same person and I only know the person name), I want that i

View Replies

406 error when template and partial exist as well as when they don't exist
Category : Programming Languages

I'm getting a 406 error and it's rendering a blank white page, even though the log makes it look like it's rendering my shared/404 page. I can even remove the layout and 404 page and same error. Any ideas?

Started GET "/" for at 2012-02-19 22:26:56 -0800
Processing by MinisitesController#show as HTML
Account Load (0.4ms) SELECT "accounts".* FROM "accounts

View Replies

MySQL Table does not exist error, but it does exist
Category : Programming Languages

Does anyone know under what conditions you can recieve an 1146: Table '<database>.<table>' doesn't exist error when your table does, in fact, exist?

I use the same code on 5 servers, only one that I recently rented is showing this error, so I suspect it may be a settings or install error of some kind. I can execute my sql statement from the command line jus

View Replies

Directory.Exist - Find out if there was a timeout or dir does not exist
Category : Programming Languages

Say I have a share on a shiny server:


If I run this:

Directory.Exists("server1MyShare") //Returns True

Now I yank the cable out of the server and run the code again:

Directory.Exists("server1MyShare") //Returns False

I want to know if it returns false because....:

View Replies

How to check IF Default Value Constraint Exist Not Exist?
Category : Databases

I am using sql server 2008. I need to find if default value constraint not exist then create it. Here is what I have tried.


View Replies

C# Directory does not exist error when it does exist
Category : Coding

As title explains, I have a program that checks if a directory exists before continuing.

And when the check is made it, it says the directory doesn't exist when it does!

Here's the code for storing the directory path:

string currentDirectory = Path.GetDirectoryName(Application.ExecutablePath);
Console.WriteLine("----" + currentDirectory.ToString());
View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .