[IronPython] Problem importing standard libraries

2007-04-13 Thread Joss Burnett
I am very new to Python and IronPython, so  my apologies if this is a
very dumb question:

 

I have been trying to import the standard Python libraries and having
some issues (apparently with module dependancies), for example: 

 

If my Site.py file is set up as follows:

 

import sys

 

sys.path.append(rc:\Python24\Lib)

 

and I import the os module,

 

import os

 

It appears to work correctly, but certain functions do not appear to
have the correct dependancies loaded (e.g. when using any of the exec
routines I receive the following message NameError: name 'execv' not
defined ).

 

Also, packages installed in the site-packages directory cannot be
directly loaded as they can via normal python. I am pretty sure I have
set something up incorrectly and if someone could point me in the right
direction I'd really appreciate it.

 

Joss Burnett

LiveDrive.Com

 

___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Problem importing standard libraries

2007-04-13 Thread Sylvain Hellegouarch
I was wondering if you were using IPCE or a vanilla IP?
http://fepy.sourceforge.net/

Look notably at fepy's options:
http://fepy.sourceforge.net/doc/fepy-options.html

- Sylvain

Joss Burnett wrote:
 I am very new to Python and IronPython, so  my apologies if this is a
 very dumb question:
 
  
 
 I have been trying to import the standard Python libraries and having
 some issues (apparently with module dependancies), for example: 
 
  
 
 If my Site.py file is set up as follows:
 
  
 
 import sys
 
  
 
 sys.path.append(rc:\Python24\Lib)
 
  
 
 and I import the os module,
 
  
 
 import os
 
  
 
 It appears to work correctly, but certain functions do not appear to
 have the correct dependancies loaded (e.g. when using any of the exec
 routines I receive the following message NameError: name 'execv' not
 defined ).
 
  
 
 Also, packages installed in the site-packages directory cannot be
 directly loaded as they can via normal python. I am pretty sure I have
 set something up incorrectly and if someone could point me in the right
 direction I'd really appreciate it.
 
  
 
 Joss Burnett
 
 LiveDrive.Com
 
  
 
 
 
 
 
 
 ___
 users mailing list
 [EMAIL PROTECTED]
 http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Problem importing standard libraries

2007-04-13 Thread Joss Burnett
Hi Sylvain,

I am using the version of IronPython from:
http://www.codeplex.com/IronPython
 
IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

I have not seen the FePy version before but I will take a look.

Thanks

Joss

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sylvain
Hellegouarch
Sent: 13 April 2007 08:59
To: Discussion of IronPython
Subject: Re: [IronPython] Problem importing standard libraries

I was wondering if you were using IPCE or a vanilla IP?
http://fepy.sourceforge.net/

Look notably at fepy's options:
http://fepy.sourceforge.net/doc/fepy-options.html

- Sylvain

Joss Burnett wrote:
 I am very new to Python and IronPython, so  my apologies if this is a
 very dumb question:
 
  
 
 I have been trying to import the standard Python libraries and having
 some issues (apparently with module dependancies), for example: 
 
  
 
 If my Site.py file is set up as follows:
 
  
 
 import sys
 
  
 
 sys.path.append(rc:\Python24\Lib)
 
  
 
 and I import the os module,
 
  
 
 import os
 
  
 
 It appears to work correctly, but certain functions do not appear to
 have the correct dependancies loaded (e.g. when using any of the
exec
 routines I receive the following message NameError: name 'execv' not
 defined ).
 
  
 
 Also, packages installed in the site-packages directory cannot be
 directly loaded as they can via normal python. I am pretty sure I
have
 set something up incorrectly and if someone could point me in the
right
 direction I'd really appreciate it.
 
  
 
 Joss Burnett
 
 LiveDrive.Com
 
  
 
 
 
 


 
 ___
 users mailing list
 [EMAIL PROTECTED]
 http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Problem importing standard libraries

2007-04-13 Thread Sylvain Hellegouarch
Joss Burnett wrote:
 Hi Sylvain,
 
 I am using the version of IronPython from:
 http://www.codeplex.com/IronPython
  
 IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42
 Copyright (c) Microsoft Corporation. All rights reserved.
 
 I have not seen the FePy version before but I will take a look.
 

You should indeed because it contains quite a few improvements to get
the stdlib and other third-party Python packages to work with IP.

You can grab IPCEr5 which contains IP1a1 IIRC. But you should be able to
drop the latest IP binaries in the folder and it would work the same.

- Sylvain
___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] style question - site.py

2007-04-13 Thread Sanghyeon Seo
2007/4/14, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Which is most correct and why?

 A)  site.clr.AddReference(reference name)
 B)  import clr.
  clr.AddReference
 C) neither

B is correct.

Well, I can't articulate exactly why, but A just looks wrong.

-- 
Seo Sanghyeon
___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] style question - site.py

2007-04-13 Thread Carl Trachte

Which is most correct and why?

 A)  site.clr.AddReference(reference name)
 B)  import clr.
  clr.AddReference
 C) neither

B is correct.

Well, I can't articulate exactly why, but A just looks wrong.

Works for me.  Thank you.

___
users mailing list
[EMAIL PROTECTED]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com