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
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
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,
> 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
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
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
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
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.
What can I do I've tried everything
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:/
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
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
>>
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
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
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
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,
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
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):
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
> > >
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
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
>>
>
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
>
>
>
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
>> |
>
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'
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
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
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
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
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
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
. 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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
> 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
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,
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
>
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
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:
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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):
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 125 matches
Mail list logo