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
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
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
I found it is a bug http://bugs.python.org/issue13187
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.
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
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
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
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
: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:
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.
>
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
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
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
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)
and yes it is parallel python.
and windows vista.
and the python GUI shell.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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.
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.
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
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
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
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
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
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
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
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
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
> [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:
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"
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
38 matches
Mail list logo