Re: Module error

2023-05-27 Thread Thomas Passin
On 5/26/2023 8:30 PM, giuseppacef...@gmail.com wrote: I have reinstalled python which reinstalls pip. I have added the path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still get the error below. Coul

Re: Module error

2023-05-26 Thread MRAB
On 2023-05-27 01:30, giuseppacef...@gmail.com wrote: I have reinstalled python which reinstalls pip. I have added the path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still get the error below. Could

Re: module error in Vista -- works as administrator

2008-04-25 Thread sawilla
I've discovered the cause of the problem. At some point previously, Windows Vista had created a copy of the site-packages directory in a virtual store for the user account. The easy-install.pth file in the virtual store did not contain the same path information as the easy- install.pth that the adm

Re: module error in Vista -- works as administrator

2008-04-25 Thread sawilla
The access writes to easy-install.pth for regular users is read and execute. The output of sys.path for regular users is: ['', 'C:\\Program Files\\Python25\\lib\\site-packages\ \setuptools-0.6c8-py2.5.eg g', 'C:\\Program Files\\Python25\\python25.zip', 'C:\\Program Files\ \Python25\\D LLs', 'C:\\P

Re: module error in Vista -- works as administrator

2008-04-21 Thread John Machin
sawilla wrote: On Apr 21, 5:42 pm, John Machin <[EMAIL PROTECTED]> wrote: Log on as administrator, start python in command window and do this: import sys sys.path # shows where python is looking for importables import numpy import os.path print os.path.abspath(numpy.__file__) # shows where it f

Re: module error in Vista -- works as administrator

2008-04-21 Thread sawilla
On Apr 21, 5:42 pm, John Machin <[EMAIL PROTECTED]> wrote: > Log on as administrator, start python in command window and do this: > > import sys > sys.path # shows where python is looking for importables > import numpy > import os.path > print os.path.abspath(numpy.__file__) # shows where it found

Re: module error in Vista -- works as administrator

2008-04-21 Thread John Machin
sawilla wrote: First, I'm new to Python. I'm getting and error when I run Python 2.5.2 as a regular user in Vista but not when I run Python as an administrator. For example, if I type "import numpy" after I launch python from an adminstrator-privileged command window it loads fine. However, from

Re: module error for elementtree

2007-05-11 Thread John Machin
On May 11, 11:12 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On 11 May 2007 00:05:19 -0700, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > For the above code to work elementtree is > > imported in first line ,but when running it says : > > ImportError: No module named e

Re: module error for elementtree

2007-05-11 Thread Jerry Hill
On 11 May 2007 00:05:19 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For the above code to work elementtree is > imported in first line ,but when running it says : > ImportError: No module named elementtree.ElementTree > Does thie module exists as default or a patch is

Re: module error for elementtree

2007-05-11 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: > On May 11, 12:22 pm, [EMAIL PROTECTED] wrote: >> On May 11, 12:05 am, [EMAIL PROTECTED] wrote: >> >> >> >> >> >>> #!/usr/bin/env python >>> from elementtree import ElementTree as Element >>> tree = et.parse("testxml.xml") >>> for t in tree.getiterator("SERVICEPARAMETER"):

Re: module error for elementtree

2007-05-11 Thread saif . shakeel
On May 11, 12:22 pm, [EMAIL PROTECTED] wrote: > On May 11, 12:05 am, [EMAIL PROTECTED] wrote: > > > > > > > #!/usr/bin/env python > > > from elementtree import ElementTree as Element > > tree = et.parse("testxml.xml") > > > for t in tree.getiterator("SERVICEPARAMETER"): > > if t.get("Semant

Re: module error for elementtree

2007-05-11 Thread half . italian
On May 11, 12:05 am, [EMAIL PROTECTED] wrote: > #!/usr/bin/env python > > from elementtree import ElementTree as Element > tree = et.parse("testxml.xml") > > for t in tree.getiterator("SERVICEPARAMETER"): > if t.get("Semantics") == "localId": > t.set("Semantics", "dataPackag