Re: How to diagnose import error when importing from .so file?

2020-07-30 Thread Christian Gollwitzer
Am 29.07.20 um 23:01 schrieb Chris Green: Even more annoying is that most of what's in pyscand.so is constants, there's only a couple of functions in there, so there's very little to it really. If there are really only constants, you could import it into Python 2 and dump the content e.g. as a

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
Christian Heimes wrote: > On 29/07/2020 15.34, Chris Green wrote: > > I have some Python Gtk 2 code I'm trying to convert to Python > > pygobject GTK 3. > > > > However I'm stuck on an import statement that fails:- > > > > import pyscand > > > > > > The error message is:- > > > > File

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Christian Heimes
On 29/07/2020 15.34, Chris Green wrote: > I have some Python Gtk 2 code I'm trying to convert to Python > pygobject GTK 3. > > However I'm stuck on an import statement that fails:- > > import pyscand > > > The error message is:- > > File "/usr/libexec/okimfputl.new/guicom.py", line 66,

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread David Lowry-Duda
> pyscand is a .so file so I fear I may be a bit stuffed unless I can > find the source code for it. > ... > In fact looking for this error it seems that is is a Python version > mismatch error and I need to recompile pyscand.so against Python 3. Is > there no way to sort of convert it to Python 3

How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
I have some Python Gtk 2 code I'm trying to convert to Python pygobject GTK 3. However I'm stuck on an import statement that fails:- import pyscand The error message is:- File "/usr/libexec/okimfputl.new/guicom.py", line 66, in import pyscand ImportError: /usr/libexec/okim

Re: Import error

2016-04-05 Thread Tony van der Hoff
On 05/04/16 10:53, Nicolae Morkov wrote: What can I do I've tried everything Just hang your head and cry... -- Tony van der Hoff| mailto:t...@vanderhoff.org Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

Re: Import error

2016-04-05 Thread Steven D'Aprano
On Tue, 5 Apr 2016 07:53 pm, Nicolae Morkov wrote: > What can I do I've tried everything You can start by telling us what you are trying to do, and what error you are getting. - What module are you trying to import? - Are you sure it is installed? How do you know? - What command do you g

Re: Import error

2016-04-05 Thread Tim Golden
On 05/04/2016 10:53, Nicolae Morkov wrote: > What can I do I've tried everything > You attached a screenshot, which won't make it through to this text-only mailing list. Can you copy the actual text of the error message from the IDLE session and paste it here, please? TJG -- https://mail.

Import error

2016-04-05 Thread Nicolae Morkov
What can I do I've tried everything -- https://mail.python.org/mailman/listinfo/python-list

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-25 Thread Hedieh E
On Thursday, September 24, 2015 at 1:12:31 PM UTC+2, Laura Creighton wrote: > In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: > >Thanks Christian, > > > >It turned out that h5py.defs was not the only hidden import that I needed to > >add. > > > >I managed to get it working with

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-24 Thread Laura Creighton
In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: >Thanks Christian, > >It turned out that h5py.defs was not the only hidden import that I needed to >add. > >I managed to get it working with the follwoing command adding 4 hidden >imports. > > >pyinstaller --hidden-import=h5py.d

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-24 Thread Heli Nix
Thanks Christian, It turned out that h5py.defs was not the only hidden import that I needed to add. I managed to get it working with the follwoing command adding 4 hidden imports. pyinstaller --hidden-import=h5py.defs --hidden-import=h5py.utils --hidden-import=h5py.h5ac --hidden-import=h5

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-23 Thread Christian Gollwitzer
Am 23.09.15 um 18:20 schrieb Heli Nix: Dear all, Thanks a lot for your replies. Very helpful. I have already done some trials with Virtualenv, but PyInstaller is much closer to the idea of an installer you can pass to someone. I have been using development version of PyInstaller in order to

PyInstaller+ Python3.5 (h5py import error)

2015-09-23 Thread Heli Nix
h5py._objects (/tmp/pip_build_root/h5py/h5py/_objects.c:6407) ImportError: No module named 'h5py.defs' If I modify my script to import numpy as np import h5py a=np.arange(10) print(a) then, the created exectuable will run successfully on other linux machines. Does anybody

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread rurpy--- via Python-list
On 08/17/2015 01:52 AM, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list > writes: >> So I eventually found the kivy docs on their website where they >> list prerequisite packages for installing kivy on ubuntu. I'll >> translate those to hopefull

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Rustom Mody
On Monday, August 17, 2015 at 10:35:48 AM UTC+5:30, rurpy wrote: > I hope someday Python gets a decent packaging/distribution story. You are in august company | The final question was about what he (Guido) hates in Python. "Anything to do | with package distribution", he answered immediately. The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list write s: >So I eventually found the kivy docs on their website where they >list prerequisite packages for installing kivy on ubuntu. I'll >translate those to hopefully the equivalent fedora package names, >install them, re

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Dave Farrance
shiva upreti wrote: >Hi >I am new to linux. I tried various things in attempt to install kivy. I >installed python 2.7.10 Just to make clear what others have said -- replacing Ubuntu 14.04's system Python 2.7.6 is a bad idea and will break stuff, so if you really must have the latest version of

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 10:14:29 PM UTC-6, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list > writes: > >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > >>[...] > >> use pip (maybe inside a virtualenv). It'll chug for

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list write s: >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti >> wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > i

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti > wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 12:51 PM, Rustom Mody wrote: > On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > installed python 2.7.10 (I thin

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Rustom Mody
On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). Then

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > I am new to linux. I tried various things in attempt to install kivy. I > installed python 2.7.10 (I think python3 was already installed in ubuntu > 14.04). Then i downloaded kivy from > https://pypi.python.org/packages/source/K/Kivy/Kivy-1

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 12:16:53 -0700, shiva upreti writes: >I am still getting the error:"ImportError: No module named kivy". > >Any help will be highly appreciated. >Thanks. The preferred way to install kivy with ubuntu is to follow the instructions here: http://kivy.org/docs/installa

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread MRAB
On 2015-08-16 20:16, shiva upreti wrote: Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from https://pypi.python.org/packages/source/K/Kivy/Kivy-1.9.0.tar.gz, extr

"no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread shiva upreti
Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from https://pypi.python.org/packages/source/K/Kivy/Kivy-1.9.0.tar.gz, extracted it and tried to execute "python set

Re: Cx_freeze centOS module import error

2015-05-22 Thread Laura Creighton
In a message of Fri, 22 May 2015 11:31:12 +0530, Sreenath Nair writes: >I'm trying to build a script into a binary using cx_freeze. Problem is that >once the binary is built then it starts throwing ImportErrorInvoking the >source via shell works fine. Can someone clarify why this behavior whe

Cx_freeze centOS module import error

2015-05-22 Thread Sreenath Nair
I'm trying to build a script into a binary using cx_freeze. Problem is that once the binary is built then it starts throwing ImportErrorInvoking the source via shell works fine. Can someone clarify why this behavior when freezing the source? Thank you. Sent from my Windows Phone-- https:/

Re: Matplotlib import error

2015-02-07 Thread Mark Lawrence
On 07/02/2015 15:23, C Smith wrote: On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote: In article , C Smith wrote: I had python 2.7.6 installed on OS X yosemite, which has always worked fine, until I tried to install matplotlib with pip. I got the same error below and upgraded to 2.7.9, used

Re: Matplotlib import error

2015-02-07 Thread C Smith
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote: > In article > , > C Smith wrote: >> I had python 2.7.6 installed on OS X yosemite, which has always worked >> fine, until I tried to install matplotlib with pip. I got the same >> error below and upgraded to 2.7.9, used pip to upgrade all the >>

Re: Matplotlib import error

2015-02-06 Thread Ned Deily
In article , C Smith wrote: > I had python 2.7.6 installed on OS X yosemite, which has always worked > fine, until I tried to install matplotlib with pip. I got the same > error below and upgraded to 2.7.9, used pip to upgrade all the > packages, but still get the same error. > > >>> import mat

Re: Matplotlib import error

2015-02-06 Thread Mark Lawrence
On 06/02/2015 19:02, Ian Kelly wrote: On Fri, Feb 6, 2015 at 11:49 AM, C Smith wrote: On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote: On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nump

Re: Matplotlib import error

2015-02-06 Thread Ian Kelly
On Fri, Feb 6, 2015 at 11:49 AM, C Smith wrote: > On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote: >> On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote: >>> ImportError: >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, >>> 2

Re: Matplotlib import error

2015-02-06 Thread C Smith
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote: > On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote: >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, >> 2): Symbol not found: __gfortran_compare_string > > Ah,

Re: Matplotlib import error

2015-02-06 Thread Chris Angelico
On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote: > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, > 2): Symbol not found: __gfortran_compare_string Ah, installing from source on a Mac and having problems. Have I hear

Matplotlib import error

2015-02-06 Thread C Smith
I had python 2.7.6 installed on OS X yosemite, which has always worked fine, until I tried to install matplotlib with pip. I got the same error below and upgraded to 2.7.9, used pip to upgrade all the packages, but still get the same error. >>> import matplotlib Traceback (most recent call last):

Re: python import error

2013-12-11 Thread John Gordon
In <58f7bd2a-ef82-4782-b4fb-db824f9c8...@googlegroups.com> smilesonisa...@gmail.com writes: > > > File "aaa.py", line 5, in > > > > > from ccc.ddd import sss > > > > > ImportError: No module named ccc.ddd > > > > > directory structure as follows: > > > > > ccc > > > | > > > ddd > > >

Re: python import error

2013-12-11 Thread Mark Lawrence
On 11/12/2013 05:45, smilesonisa...@gmail.com wrote: On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> smilesonisa...@gmail.com writes: File "aaa.py", line 5, in from ccc.ddd import sss ImportEr

Re: python import error

2013-12-10 Thread Benjamin Kaplan
On Tue, Dec 10, 2013 at 9:45 PM, wrote: > On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: >> In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> >> smilesonisa...@gmail.com writes: >> >> >> >> > File "aaa.py", line 5, in >> >> > from ccc.ddd import sss >> >

Re: python import error

2013-12-10 Thread smilesonisamal
On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: > In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> > smilesonisa...@gmail.com writes: > > > > > File "aaa.py", line 5, in > > > from ccc.ddd import sss > > > ImportError: No module named ccc.ddd > > >

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 09:25 PM, Michael Torrie wrote: > On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: >> Traceback (most recent call last): >> File "aaa.py", line 5, in >> from ccc.ddd import sss >> ImportError: No module named ccc.ddd >> >> directory structure as follows: >> >> ccc >> | >

Re: python import error

2013-12-10 Thread John Gordon
In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> smilesonisa...@gmail.com writes: > File "aaa.py", line 5, in > from ccc.ddd import sss > ImportError: No module named ccc.ddd > directory structure as follows: > ccc > | > ddd >| > aaa.py > sss.py A python file isn'

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: > Traceback (most recent call last): > File "aaa.py", line 5, in > from ccc.ddd import sss > ImportError: No module named ccc.ddd > > directory structure as follows: > > ccc > | > ddd >| > aaa.py > sss.py This is because

python import error

2013-12-10 Thread smilesonisamal
Hi, I am a new bie in python I was trying to execute the python script aaa.py in fedora which imports different modules. Actually when I am executing the aaa.py I am getting the following error and PYTHON_PATH=/bin/python which has a symlink to python-2.7. Please help me in this regard? I am

Help understanding import error

2013-02-13 Thread ctoomey
I'm using TortoiseHg on Windows, which is implemented in python and includes python (2.7.3) as dlls and a bunch of python modules bunded into a library.zip file. I'm trying to use an extension whose __init__.py does the following import: from distutils.version import LooseVersion and am g

Re: module import error, what's wrong?

2011-08-07 Thread Gelonida N
On 08/08/2011 02:45 AM, smith jack wrote: > from common.URLTool import URLTool could it be that you meant from common import URLTool As I don't know the module 'common' I am just guessing > tool = URLTool() > > Traceback (most recent call last): > File "E:\workspace\url\test.py", line 7, in

module import error, what's wrong?

2011-08-07 Thread smith jack
from common.URLTool import URLTool tool = URLTool() Traceback (most recent call last): File "E:\workspace\url\test.py", line 7, in ? from common.URLTool import URLTool ImportError: No module named common.URLTool URLTools is a class write by myself, it works well ,but cannot be imported in t

Re: python import error, what's wrong?

2011-08-03 Thread Ben Finney
Ulrich Eckhardt writes: > > the directory structure is as follows: > > > > src > > org.test > > A.py > > org.lab > > B.py > > Python uses a dot as separator between different parts of nested > structures, like e.g. the directories during import. More generally, the name of a mod

Re: python import error, what's wrong?

2011-08-03 Thread Ulrich Eckhardt
. Try this structure instead: src org test A.py lab B.py or maybe src org_test A.py org_lab B.py > contents of A seems like: > class A > ... > > contents of B seems like: // I try to run B.py, > p

Re: python import error, what's wrong?

2011-08-02 Thread Chris Angelico
On Tue, Aug 2, 2011 at 4:52 PM, smith jack wrote: > from org.test.A import A This is going to look for org/test/A.py but not for org.test/A.py - are you able to rename your directories to not have dots? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

python import error, what's wrong?

2011-08-02 Thread smith jack
src org.test A.py org.lab B.py contents of A seems like: class A ... contents of B seems like: // I try to run B.py, python import error just appears, why? from org.test.A import A a = A() -- http://mail.python.org/mailman/listinfo/python-list

Re: reportlab import error after dundled using py2exe

2011-07-26 Thread SANKAR .
your suggestion worked.Thanks Robin. -Sankar On Mon, Jul 25, 2011 at 8:28 PM, Robin Becker wrote: > On 22/07/2011 03:55, SANKAR . wrote: > >> Hi all, >> >> > > >> C:\Python26\dist>DELchek.exe >> Traceback (most recent call last): >> File "DELchek.py", line 12, in >> File "reportlab\pdf

Re: reportlab import error after dundled using py2exe

2011-07-25 Thread Robin Becker
On 22/07/2011 03:55, SANKAR . wrote: Hi all, C:\Python26\dist>DELchek.exe Traceback (most recent call last): File "DELchek.py", line 12, in File "reportlab\pdfgen\canvas.pyc", line 25, in< File "reportlab\pdfbase\pdfdoc.pyc", line 22, in File "reportlab\pdfbase\pdfmetrics.pyc", line

reportlab import error after dundled using py2exe

2011-07-21 Thread SANKAR .
Hi all, I bundled a small script written in python using py2exe. The script uses many packages and one of them is reportlab. After bundling using py2exe I tried to run the exe file and it is returning following error: C:\Python26\dist>DELchek.exe Traceback (most recent call last): File "DELchek

Re: Import error while running python application on Mac OS

2011-06-09 Thread Ned Deily
n Some one reply for this Please You will want to ask questions about Python on Mac OS X on the Pythonmac list. http://dir.gmane.org/gmane.comp.python.apple But you need to supply more information. There are many reasons why you might get an import error. You should supply the exact traceback from

Re: Import error while running python application on Mac OS

2011-06-09 Thread hisan
On Jun 8, 9:20 pm, hisan wrote: > HI All, > > I have created an application for Mac OS using py2app module, in my > python script i have external modules such as MySQLdb and other , > while trying to run on Mac OS i get an error saying unable to import > the module MySQLdb. > On Windows i convert

Import error while running python application on Mac OS

2011-06-08 Thread hisan
HI All, I have created an application for Mac OS using py2app module, in my python script i have external modules such as MySQLdb and other , while trying to run on Mac OS i get an error saying unable to import the module MySQLdb. On Windows i convert python script to an exe using py2exe module an

Re: BeautifulSoup import error

2011-05-06 Thread nirinA raseliarison
[1011_wxy] I got a import error when I use Python 3.2 to import BeautifulSoup 3.2.0 the error i see is a SyntaxError. Is there any differences between Python 3.2 and other version? yes. and there is a tool, 2to3, which converts Python 2.x scripts to work with 3.x. And the error message

Re: 回复: Re: BeautifulSoup import error

2011-05-05 Thread James Mills
On Fri, May 6, 2011 at 3:57 PM, Stefan Behnel wrote: > No. While this has been suggested, it will not become part of the stdlib in > the foreseeable future. It's readily available as a separate package on > PyPI, though. Opps I meant xml.etree :/ My bad! cheers James -- -- James Mills -- -- "P

Re: 回复: Re: BeautifulSoup import error

2011-05-05 Thread Stefan Behnel
1011_wxy, 06.05.2011 04:29: 发件人: James Mills On Fri, May 6, 2011 at 11:37 AM, 1011_wxy wrote: I got a import error when I use Python 3.2 to import BeautifulSoup 3.2.0 . Is there any differences between Python 3.2 and other version? This is my first time to use Python3.2 . And the error message

回复: Re: BeautifulSoup import error

2011-05-05 Thread 1011_wxy
Dear JM: Thank you very much. BeautifulSoup does not work well with Python3.2 . 2011-05-06 Kerry 发件人: James Mills 发送时间: 2011-05-06 09:47 主 题: Re: BeautifulSoup import error 收件人: python list On Fri, May 6, 2011 at 11:37 AM, 1011_wxy <1011_...@163.com> wrote: > I got a imp

Re: BeautifulSoup import error

2011-05-05 Thread James Mills
On Fri, May 6, 2011 at 11:37 AM, 1011_wxy <1011_...@163.com> wrote: > I got a import error when I use Python 3.2 to import BeautifulSoup 3.2.0 . > Is there any differences between Python 3.2 and other version? This is my > first time to use Python3.2 . > And the error messag

BeautifulSoup import error

2011-05-05 Thread 1011_wxy
Dear friends: I got a import error when I use Python 3.2 to import BeautifulSoup 3.2.0 . Is there any differences between Python 3.2 and other version? This is my first time to use Python3.2 . And the error message will be as below. >>> from BeautifulSoup import BeautifulSoup Traceb

SOLVED: Gentoo, Cygwin: Import Error time, cStringIO, Permission denied

2010-08-23 Thread Elmar Hinz
I seem to talk to myself. So for the archives: This is no python thingy. It is a windows/cygwin one. The second error message brings good search results in the web. Search for: "cygwin, dll to same address as parent, rebaseall" Al -- http://mail.python.org/mailman/listinfo/python-list

Re: Gentoo, Cygwin: Import Error time, cStringIO, Permission denied

2010-08-23 Thread Elmar Hinz
> Problem > == > > After compiling pyhton I run into errors when I start to use it in > form of emerge. It says something like this in the logger module: > > Import Error sys, os, types, time, string, cStringIO, traceback. > Permission denied. > > I researched

Gentoo, Cygwin: Import Error time, cStringIO, Permission denied

2010-08-23 Thread Elmar Hinz
t a Python programmer myself, so I have some difficulties to understand what is going on. Problem == After compiling pyhton I run into errors when I start to use it in form of emerge. It says something like this in the logger module: Import Error sys, os, types, time, string, cStringIO,

Re: umath import error for Numpy builds on OSX 10.6

2009-12-12 Thread hardcoreUFO
On Dec 12, 5:44 pm, Robert Kern wrote: > On 2009-12-11 20:55 PM, hardcoreUFO wrote: > > > > > > > On Dec 11, 5:47 pm, Robert Kern  wrote: > > >> Right, when the -lnpymath stuff got checked in. Looking at the build log > >> you > >> posted to numpy-discusson, it does appear that the $LDFLAGS is >

Re: umath import error for Numpy builds on OSX 10.6

2009-12-11 Thread Robert Kern
On 2009-12-11 20:55 PM, hardcoreUFO wrote: On Dec 11, 5:47 pm, Robert Kern wrote: Right, when the -lnpymath stuff got checked in. Looking at the build log you posted to numpy-discusson, it does appear that the $LDFLAGS is obliterating the intended flags. Please post a build log without setting

Re: umath import error for Numpy builds on OSX 10.6

2009-12-11 Thread hardcoreUFO
On Dec 12, 3:55 pm, hardcoreUFO wrote: > Here is the log from a build without the LDFLAGS set.  Having a quick > look, all I can see are a few warnings and a CAPI version mismatch > message. Any insight most appreciated. The build still gives the same > umath error. Sorry, forgot to post the log:

Re: umath import error for Numpy builds on OSX 10.6

2009-12-11 Thread hardcoreUFO
On Dec 11, 5:47 pm, Robert Kern wrote: > Right, when the -lnpymath stuff got checked in. Looking at the build log you > posted to numpy-discusson, it does appear that the $LDFLAGS is obliterating > the > intended flags. Please post a build log without setting those flags to > numpy-discussion. A

Re: umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread Robert Kern
On 2009-12-10 17:41 PM, hardcoreUFO wrote: On Dec 11, 12:29 pm, Robert Kern wrote: Don't specify LDFLAGS if you don't have to. It is obliterating the -l flag for the npy_math library that numpy builds internally and tries to link with. Unfortunately, that did not eliminate the error. I though

Re: umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread Robert Kern
On 2009-12-10 17:33 PM, hardcoreUFO wrote: Thanks Robert. I was not able to solve the problem on the Numpy list, so I had to broaden the search.Will try what you suggest, though. There's no one here who can help you with this who isn't on the numpy list. -- Robert Kern "I have come to believ

Re: umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread hardcoreUFO
On Dec 11, 12:29 pm, Robert Kern wrote: > Don't specify LDFLAGS if you don't have to. It is obliterating the -l flag for > the npy_math library that numpy builds internally and tries to link with. Unfortunately, that did not eliminate the error. I thought it was something that was changed in Nump

Re: umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread hardcoreUFO
On Dec 11, 12:29 pm, Robert Kern wrote: > On 2009-12-10 17:09 PM, hardcoreUFO wrote: > > > For the past several weeks, I have been unable to build numpy from > > source, at least nothing that works. The issue is that symbols appear > > to be missing from umath. When numpy is imported, I get the fo

Re: umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread Robert Kern
On 2009-12-10 17:09 PM, hardcoreUFO wrote: For the past several weeks, I have been unable to build numpy from source, at least nothing that works. The issue is that symbols appear to be missing from umath. When numpy is imported, I get the following: You will want to ask numpy questions on the

umath import error for Numpy builds on OSX 10.6

2009-12-10 Thread hardcoreUFO
For the past several weeks, I have been unable to build numpy from source, at least nothing that works. The issue is that symbols appear to be missing from umath. When numpy is imported, I get the following: In [1]: import numpy Tracebac

Re: Python import Error

2009-07-18 Thread David Stanek
On Sat, Jul 18, 2009 at 3:14 AM, Kalyan Chakravarthy wrote: > Hi All, >    I am using Python 2.6, MySQL 4.0 , I have successfully > Instaled MySQLdb (MySQL-python-1.2.3c1.win32-py2.6) in my system. I tested > through command prompt with "import MySQLdb ", its not shwing any errors >

Python import Error

2009-07-18 Thread Kalyan Chakravarthy
Hi All, I am using* Python 2.6, MySQL 4.0* , I have successfully Instaled MySQLdb (*MySQL-python-1.2.3c1.win32-py2.6*) in my system. I tested through command prompt with "import MySQLdb ", its not shwing any errors (means its instaled successfully), I set Eneceranment variable fo

Re: Regarding the lxml import error only in a web-request

2009-03-20 Thread Stefan Behnel
nagraj wrote: > I'm trying to run Django from Apache using FastCGI in a shared hosting > environment on DH. I've installed python 2.5.2 onto my home > environment. And all the necessary libraries including lxml 2.1.3, > libxml2, libxslt, flup, etc. > > > I'm facing a strange issue with lxml, whic

Regarding the lxml import error only in a web-request

2009-03-20 Thread nagraj
I'm trying to run Django from Apache using FastCGI in a shared hosting environment on DH. I've installed python 2.5.2 onto my home environment. And all the necessary libraries including lxml 2.1.3, libxml2, libxslt, flup, etc. I'm facing a strange issue with lxml, which occurs only when it is use

Re: import error between 2 modules

2008-08-27 Thread Fredrik Lundh
jimgardener wrote: is this kind of mutual import not allowed in python? it is, but you need to understand how things work before you can use it without getting yourself into trouble. this page might help: http://effbot.org/zone/import-confusion.htm see the "Circular Import" section fo

Re: import error between 2 modules

2008-08-27 Thread jimgardener
On Aug 27, 5:37 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > These constructors will be calling each other forever. This will be an > infinite recursion. sorry,that was a quite stupid mistake on my part..thanks for pointing out.. jim -- http://mail.python.org/mailman/listinfo/python-list

Re: import error between 2 modules

2008-08-27 Thread Maric Michaud
Le Wednesday 27 August 2008 12:38:33 jimgardener, vous avez écrit : > empmodule.py > -- > from workmodule import Worker > > class Employer: >     def __init__(self,n): >         self.name=n >         self.worker=Worker() >     def getemployerName(self): >         return self.name >     def

Re: import error between 2 modules

2008-08-27 Thread Laszlo Nagy
jimgardener wrote: I am new to python,and am learning from the tutorials i created 2 .py files like below and put the main in one of them empmodule.py -- from workmodule import Worker class Employer: def __init__(self,n): self.name=n self.worker=Worker() def gete

import error between 2 modules

2008-08-27 Thread jimgardener
I am new to python,and am learning from the tutorials i created 2 .py files like below and put the main in one of them empmodule.py -- from workmodule import Worker class Employer: def __init__(self,n): self.name=n self.worker=Worker() def getemployerName(self):

swig-python import error

2008-03-07 Thread abarun22
riable. Th error looks like as follows. Import error: module cannot be loaded. But i am wondering how i am getting import error although every thing looks OK. Any ideas are most welcome and thanks in advance. Regards, Arun -- http://mail.python.org/mailman/listinfo/python-list

Re: import error

2007-03-17 Thread Steve Holden
Gabriel Genellina wrote: > En Fri, 16 Mar 2007 23:49:43 -0300, Nick Burns <[EMAIL PROTECTED]> > escribió: > >> Quick question. I am running python on windows xp. i want to import my >> own >> module "mymod". However, when I try to import it i get the error message >> "ImportError: >> no modu

Re: import error

2007-03-17 Thread Gabriel Genellina
En Fri, 16 Mar 2007 23:49:43 -0300, Nick Burns <[EMAIL PROTECTED]> escribió: > Quick question. I am running python on windows xp. i want to import my > own > module "mymod". However, when I try to import it i get the error message > "ImportError: > no module named mymod". > > "mymod" is loca

import error

2007-03-16 Thread Nick Burns
Hi,   Quick question. I am running python on windows xp. i want to import my own module "mymod". However, when I try to import it i get the error message "ImportError: no module named mymod".   "mymod" is located in a directory that is part of the computer's "path" env variable. Imports fine if 'my

Import Error with embedded python

2007-03-15 Thread Lane Brooks
When I run a particular python script from an embedded interpreter, I get the following ImportError: File "di.py", line 14, in load from xml.dom.ext.reader import Sax2 File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/ext/reader/__init__.py", line 14, in ? import string, url

Re: wxPython import error...

2007-03-06 Thread Chris Mellon
On 4 Mar 2007 16:42:07 -0800, king kikapu <[EMAIL PROTECTED]> wrote: > Hi, > > i am just completed installing Python/Pydev/Eclipse/wxPython on an > Ubuntu system and all are running fine except program that contains > references to wx > > It gives me: > ImportError: /usr/lib/python2.4/site-packages

Re: wxPython import error...

2007-03-06 Thread Fabio Zadrozny
On 4 Mar 2007 16:42:07 -0800, king kikapu <[EMAIL PROTECTED]> wrote: Hi, i am just completed installing Python/Pydev/Eclipse/wxPython on an Ubuntu system and all are running fine except program that contains references to wx It gives me: ImportError: /usr/lib/python2.4/site-packages/wx-2.8-gtk

wxPython import error...

2007-03-04 Thread king kikapu
Hi, i am just completed installing Python/Pydev/Eclipse/wxPython on an Ubuntu system and all are running fine except program that contains references to wx It gives me: ImportError: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/ _core_.so: undefined symbol: PyUnicodeUCS4_FromEncodedObje

IDLE & MySQLdb import error

2007-03-04 Thread Michael Boldin via alt email
I installed python 2.5 and used the win package for installing MySQLdb. (I am running Windows XP) Everything works as expected using python directly (Windows command shell) but using IDLE gives the import error below. Same error with PythonWin as my IDE and everything works using python 2.4

Import Error

2006-10-27 Thread Joseph
Hi, I am using Karrigell & Sprite for webdevelopment. Sprite is placed in the main folder of my app. I got a sub-folder called admin. I am using the below line to import Sprite within the subfolder. from ..sprite import Sprite Most of the time it works. However time to time, it will throw an erro

Import Error

2006-10-27 Thread Joseph
Hi, I am using Karrigell & Sprite for web development. Sprite is placed in the main folder of my app. I got a sub-folder called admin. I am using the below line to import Sprite from the subfolder. from ..sprite import Sprite Most of the time it works. However time to time, it will throw an error

Import Error

2006-10-27 Thread Joseph
Hi, I am using Karrigell & Sprite for web development. Sprite is placed in the main folder of my app. I got a sub-folder called admin. I am using the below line to import Sprite from the subfolder. from ..sprite import Sprite Most of the time it works. However time to time, it will throw an error

psycopg: tz import error

2006-10-06 Thread km
Hi all,i have python 2.4.3 and 2.5 versions installed default python interpreter being  2.5have compiled psycopg2 with python2.4.3 setup.py.install , it installs in site-setup of 2.4.3 but when i login as a normal user and get into interctive python prompt of 2.4.3 ,  and " import tz " fails to im

Re: import error

2006-07-31 Thread Simon Forman
cheeky wrote: > Hi, all. > > I now really like to program with Python, even though I'm a newbie. I > have difficulty in solving the following problem. > > $ python > Traceback (most recent call last): > File "x.py", line 6, in ? > import calendar, time > File "time.py", line 5, in ? > n

  1   2   >