Newbie question about "import arcgisscripting"

2010-11-12 Thread Becky Kern
Hi, I'm a brand new Python 2.7 user, attempting to use it to convert a raster file to an ASCII file. I used ArcGis9.3 to create the raster file. My code begins with the line >>import arcgisscripting However, Python gives an error message "ImportError: DLL load failed: The specified module could

Re: Newbie question about import

2008-04-27 Thread Luca
On Sat, Apr 26, 2008 at 4:14 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > The short answer is: don't do that! __init__.py may import any module, but > other modules in the package should not import anything from __init__.py > The same rule applies to the main module in an application: it ca

Re: Newbie question about import

2008-04-25 Thread Gabriel Genellina
En Fri, 25 Apr 2008 15:03:18 -0300, Luca <[EMAIL PROTECTED]> escribió: Hi all. I'm trying to do something with python import but isn't working for me. Using python 2,5 I've a program structured like this: * a main module called (for example) "mommy" with an __init__.py and a file called "mom

Re: Newbie question about import

2008-04-25 Thread Kay Schluehr
On 25 Apr., 20:03, Luca <[EMAIL PROTECTED]> wrote: > Hi all. I'm trying to do something with python import but isn't working for > me. > > Using python 2,5 I've a program structured like this: > > * a main module called (for example) "mommy" with an __init__.py and a > file called "mommy.py" > * a

Re: Newbie question about import

2008-04-25 Thread Larry Bates
Luca wrote: Hi all. I'm trying to do something with python import but isn't working for me. Using python 2,5 I've a program structured like this: * a main module called (for example) "mommy" with an __init__.py and a file called "mommy.py" * a __version__ var defined inside the main __init__.py

Newbie question about import

2008-04-25 Thread Luca
Hi all. I'm trying to do something with python import but isn't working for me. Using python 2,5 I've a program structured like this: * a main module called (for example) "mommy" with an __init__.py and a file called "mommy.py" * a __version__ var defined inside the main __init__.py >From the mo

Re: newbie question about import tools

2006-08-20 Thread Lawrence Oluyede
<[EMAIL PROTECTED]> wrote: > do i need to download tools.pyc ? Python doesn't have any "tools" module builtin. So, what tool is? -- Lawrence - http://www.oluyede.org/blog "Nothing is more dangerous than an idea if it's the only one you have" - E. A. Chartier -- http://mail.python.org/mailman/l

Re: newbie question about import tools

2006-08-20 Thread Christoph Haas
On Sunday 20 August 2006 21:39, [EMAIL PROTECTED] wrote: > i have just downloas python and trying to import tools module > > C:\Documents and Settings\toto>python > Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v > Type "help", "copyright", "credits" or "license" > > >>> import tools > > Traceback

newbie question about import tools

2006-08-20 Thread pascal . roca
i have just downloas python and trying to import tools module C:\Documents and Settings\toto>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v Type "help", "copyright", "credits" or "license" >>> import tools Traceback (most recent call last): File "", line 1, in ? ImportError: No module nam