Re: Embedded Python import fails with zip/egg files (v3.6.1)

2017-05-15 Thread Griebel, Herbert
Thanks eryk! It looks like I have to dig deeper and step through the Python code again to see what's going on. On 11.05.2017 15:37, eryk sun wrote: On Thu, May 11, 2017 at 9:02 PM, Griebel, Herbert wrote: 07:59:04,3205458python.exe4224CreateFile C:\Users\hansi\Downloads\python-e

Re: Embedded Python import fails with zip/egg files (v3.6.1)

2017-05-11 Thread eryk sun
On Thu, May 11, 2017 at 9:02 PM, Griebel, Herbert wrote: > > 07:59:04,3205458python.exe4224CreateFile > C:\Users\hansi\Downloads\python-emb\python36.zipSUCCESS Desired Access: > Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO > Non-Alert, Open Reparse Point

Embedded Python import fails with zip/egg files (v3.6.1)

2017-05-11 Thread Griebel, Herbert
Hello, I am having trouble importing python modules on certain machines. On some machines import works, on some not (all machines are Win7 64bit). Python is not installed on any of these machines but used embedded. I tried to analyze the problem but did not succeed so here is what I found. Fi

Re: Why this recursive import fails?

2012-03-07 Thread INADA Naoki
I found it is a bug http://bugs.python.org/issue13187 -- http://mail.python.org/mailman/listinfo/python-list

Why this recursive import fails?

2012-03-06 Thread INADA Naoki
I have 4 py files like below. Two __init__.py is empty file. $ find foo -name "*.py" foo/lib/lib.py foo/lib/__init__.py foo/__init__.py foo/foo.py $ cat foo/lib/lib.py from __future__ import absolute_import print('lib.py', __name__) from .. import foo #import foo.foo $ cat foo/foo.py from __futu

Re: import fails in non-interactive interpreter

2012-01-26 Thread Brian Brinegar
On Thu, Jan 26, 2012 at 8:49 AM, Jean-Michel Pichavant wrote: > Brian Brinegar wrote: >> >> JM, >> >> Thanks for the response, you're correct '' is pre-pended to the path >> in interactive mode. I've tried adding . to my PYTHONPATH and it >> doesn't solve the problem. >> >> When imported from inte

Re: import fails in non-interactive interpreter

2012-01-26 Thread Jean-Michel Pichavant
Brian Brinegar wrote: JM, Thanks for the response, you're correct '' is pre-pended to the path in interactive mode. I've tried adding . to my PYTHONPATH and it doesn't solve the problem. When imported from interactive python the paste.deploy module is located at: import paste.deploy paste.

Re: import fails in non-interactive interpreter

2012-01-26 Thread Brian Brinegar
JM, Thanks for the response, you're correct '' is pre-pended to the path in interactive mode. I've tried adding . to my PYTHONPATH and it doesn't solve the problem. When imported from interactive python the paste.deploy module is located at: >>> import paste.deploy >>> paste.deploy.__path__ ['/h

Re: import fails in non-interactive interpreter

2012-01-26 Thread Jean-Michel Pichavant
Brian wrote: I've been banging my head against this for the past hour, and I'm hoping someone here can set me straight. [Snip] but, using the same same python, I'm able to import the module from the interactive interpreter. The PATH and PYTHONPATH environment variables are identical in both

Re: import fails in non-interactive interpreter

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 9:25 PM, Brian wrote: > Under what situations would a module be available to through the > interactive interpreter but not the non-interactive? I don't know if it matches your situation, but one such case is this: The interactive interpreter (and the interpreter with the

import fails in non-interactive interpreter

2012-01-25 Thread Brian
I've been banging my head against this for the past hour, and I'm hoping someone here can set me straight. I have a virtualenv setup for a Pyramid app and I'm having trouble importing the paste.deploy module in a standalone, non-Pyramid script within the virtualenv. For testing purposes I have a

Re: Import fails (newbie)

2010-06-18 Thread Peter Otten
:56 PM . > 17/06/2010 01:56 PM .. > 17/06/2010 02:53 PM 1,266 humansize.py > 17/06/2010 01:56 PM 1,315 humansize.pyc >2 File(s) 2,581 bytes >2 Dir(s) 104,122,085,376 bytes free > > D:

Re: Import fails (newbie)

2010-06-17 Thread Albert Hopkins
2 Dir(s) 104,122,085,376 bytes free > > D:\Python_Programs>c:\python31\python humansize.py > 1.0 TB > 931.3 GiB > > This 'humansize.py' program I got from the book 'Dive Into Python 3'. > I don't know if you need to know the source. >

Import fails (newbie)

2010-06-17 Thread mhorlick
10 01:56 PM 1,315 humansize.pyc 2 File(s) 2,581 bytes 2 Dir(s) 104,122,085,376 bytes free D:\Python_Programs>c:\python31\python humansize.py 1.0 TB 931.3 GiB This 'humansize.py' program I got from the book 'Dive Into Python

Re: site-packages, unzipepd there but import fails

2008-07-04 Thread satoru
why don't you just download & excute the windown installer binary? On Jul 4, 2:47 am, defn noob <[EMAIL PROTECTED]> wrote: > On Jul 3, 8:06 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > On 3 juil, 18:51, defn noob <[EMAIL PROTECTED]> wrote: > > > > well the reason i unzipped and place

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread defn noob
On Jul 3, 8:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 3 juil, 18:51, defn noob <[EMAIL PROTECTED]> wrote: > > > well the reason i unzipped and placed it in site-packages was because > > nothign happened when i ran setup.py(unzipped). > > What do you mean, "running setup.py unzipped

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread [EMAIL PROTECTED]
On 3 juil, 18:51, defn noob <[EMAIL PROTECTED]> wrote: > well the reason i unzipped and placed it in site-packages was because > nothign happened when i ran setup.py(unzipped). What do you mean, "running setup.py unzipped" ??? The correct way to install a package is to: - unzip (untar, whatever)

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread defn noob
and yes it is parallel python. and windows vista. and the python GUI shell. -- http://mail.python.org/mailman/listinfo/python-list

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread defn noob
well the reason i unzipped and placed it in site-packages was because nothign happened when i ran setup.py(unzipped). this has worked with other packages before. -- http://mail.python.org/mailman/listinfo/python-list

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Diez B. Roggisch
defn noob wrote: > i unzipped and put the folder in site-packages. when i run setup.py > install nothing happens. Don't do that. Remove it from there. Put it somewhere else (temp), and use $ python setup.py install Look into site-packages afterwards, and see if it got placed there. Diez -- htt

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Bruno Desthuilliers
defn noob a écrit : i unzipped what ? and put the folder which folder in site-packages. which one ? (remember that if you have more than one Python installation on your machine, you'll have more than one site-packages too). when i run setup.py install nothing happens. Well... usua

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread defn noob
On Jul 3, 5:02 pm, Chris <[EMAIL PROTECTED]> wrote: > On Jul 3, 4:11 pm, defn noob <[EMAIL PROTECTED]> wrote: > > > i unzipped and put the folder in site-packages. when i run setup.py > > install nothing happens. > > > when i do import pp from shell it complains it doesnt exist. > > > isnt placing

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Chris
On Jul 3, 4:11 pm, defn noob <[EMAIL PROTECTED]> wrote: > i unzipped and put the folder in site-packages. when i run setup.py > install nothing happens. > > when i do import pp from shell it complains it doesnt exist. > > isnt placing the folder in site-packages enough? > > these setup.py-files oft

Re: site-packages, unzipepd there but import fails

2008-07-03 Thread Mike Driscoll
On Jul 3, 9:11 am, defn noob <[EMAIL PROTECTED]> wrote: > i unzipped and put the folder in site-packages. when i run setup.py > install nothing happens. > > when i do import pp from shell it complains it doesnt exist. What is "pp"? Parallel Python? > > isnt placing the folder in site-packages e

site-packages, unzipepd there but import fails

2008-07-03 Thread defn noob
i unzipped and put the folder in site-packages. when i run setup.py install nothing happens. when i do import pp from shell it complains it doesnt exist. isnt placing the folder in site-packages enough? these setup.py-files often dont work but normally it still works. -- http://mail.python.

Re: Scipy+SQLite crashes... , was: Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
hello, through the scipy group I found a solution (no explanation yet), import sqlite3 from scipy import * solves the problem. cheers, Stef Stef Mientki wrote: John Machin wrote: Stef Mientki wrote: I don't know if this matters, but I also use sqlite3 from other than Python programs.

Scipy+SQLite crashes... , was: Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
John Machin wrote: Stef Mientki wrote: I don't know if this matters, but I also use sqlite3 from other than Python programs. You have an instance of sqlite3.dll in P:\Python\DLLs for use with Python, and (I guess) you have another instance of sqlite3.dll somewhere else, for use "from other

Re: SQLite import fails sometimes ?

2008-05-24 Thread John Machin
Stef Mientki wrote: I don't know if this matters, but I also use sqlite3 from other than Python programs. You have an instance of sqlite3.dll in P:\Python\DLLs for use with Python, and (I guess) you have another instance of sqlite3.dll somewhere else, for use "from other than Python programs

Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
John Machin wrote: Stef Mientki wrote: hello, The import statement "import sqlite3" gives the error given below. In simple programs, the import statement (sometimes) succeed, and I can indeed access the database. So I guess there is some conflict with another part of my program, but as the prog

Re: SQLite import fails sometimes ?

2008-05-24 Thread John Machin
Stef Mientki wrote: hello, The import statement "import sqlite3" gives the error given below. In simple programs, the import statement (sometimes) succeed, and I can indeed access the database. So I guess there is some conflict with another part of my program, but as the program is rather large

SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
hello, The import statement "import sqlite3" gives the error given below. In simple programs, the import statement (sometimes) succeed, and I can indeed access the database. So I guess there is some conflict with another part of my program, but as the program is rather large (and dynamic) it's no

Import fails with python but succeeds with python -v

2008-04-29 Thread John Normoyle
Hi, I've noticed strange behaviour where cx_Oracle will fail to load when using "python" but it will succeed when using "python -v" while throwing "Unsatisfied code symbol" errors. This is for Python 2.5, Oracle 9.2 and cx_Oracle 4.3.1 on the platform HP-UX 11 Output for python: ImportError

Re: import fails

2004-12-05 Thread Fredrik Lundh
Laszlo Zsolt Nagy wrote: >>> Definitely. However, it would be better if the exception occurred on the >>> bad assignment (e.g. __all__ = [x]) > >> it does happen on the bad assignment (i.e. from foo import *) > > Well, the traceback isn't useful. It does not tell you the line > number not even th

Re[2]: import fails

2004-12-05 Thread Laszlo Zsolt Nagy
Hello Fredrik, Sunday, December 5, 2004, 8:31:45 PM, you wrote: > Laszlo Zsolt Nagy wrote: >> Definitely. However, it would be better if the exception occurred on the >> bad assignment (e.g. __all__ = [x]) > it does happen on the bad assignment (i.e. from foo import *) Well, the traceback isn

Re: import fails

2004-12-05 Thread Fredrik Lundh
Laszlo Zsolt Nagy wrote: > Definitely. However, it would be better if the exception occurred on the > bad assignment (e.g. __all__ = [x]) it does happen on the bad assignment (i.e. from foo import *) -- http://mail.python.org/mailman/listinfo/python-list

Re[2]: import fails

2004-12-05 Thread Laszlo Zsolt Nagy
> [EMAIL PROTECTED]:~$ cat foo.py > x = 10 > __all__ = [x] > [EMAIL PROTECTED]:~$ cat bar.py > x = 20 > __all__ = ['x'] > [EMAIL PROTECTED]:~$ python -c "from foo import *; print x" > Traceback (most recent call last): > File "", line 1, in ? > TypeError:

Re: import fails

2004-12-05 Thread Jp Calderone
On Sun, 5 Dec 2004 19:52:57 +0100, Laszlo Zsolt Nagy <[EMAIL PROTECTED]> wrote: >Hello all, > > Can anyone explain this: > > > C:\Python\Projects\DbDesigner>python > Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license"

import fails

2004-12-05 Thread Laszlo Zsolt Nagy
Hello all, Can anyone explain this: C:\Python\Projects\DbDesigner>python Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from Db.FieldTypes import IdentifierFieldType >>> from Db.FieldTypes