[IronPython] cannot find Pickle file from ASP.NET Web app

William Johnston williamj at tenbase2.com
Wed Jun 30 02:37:57 CEST 2010


 

Hello,

 

I attempted to set the path to the CPickle file using SetSearchPaths but
this also did not work:

 

searchPaths.Add(Server.MapPath("."));

 

var ipy = Python.CreateRuntime();

ipy.GetEngine("python").SetSearchPaths(searchPaths);

 

I still cannot access my .pkl file.

 

Any more suggestions?

 

Thanks.

 

 

 

 

 

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of William Johnston
Sent: Tuesday, June 29, 2010 5:45 PM
To: users at lists.ironpython.com
Subject: [IronPython] cannot find Pickle file from ASP.NET Web app

 

 

Hello,

 

The following Python code snippet causes a FileNotFound exception from an
ASP.NET Web application:

 

input = open('t2.pkl', 'rb')

 

The exception message is:

 

[Could not find file 'C:\Program Files (x86)\Common Files\Microsoft
Shared\DevServer\10.0\t2.pkl'.]

 

The same code works for a console project.

 

Any suggestions?

 

Thanks,

William Johnston

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100629/db91aae2/attachment.html>


More information about the Ironpython-users mailing list