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.

Re: Import error while running python application on Mac OS

2011-06-09 Thread Ned Deily
In article <1167f414-8901-4f9c-9d51-2723213fd...@k3g2000prl.googlegroups.com>, hisan wrote: > On Jun 8, 9:20 pm, hisan wrote: > > 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

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

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

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

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

Re: Import Error ('mutual inclusion of modules'?)

2005-08-23 Thread icoba
Thanks, I had not found anything about it. But I had not search correctly. There is an entry in the FAQ about it: http://www.python.org/doc/faq/programming.html#how-can-i-have-modules-that-mutually-import-each-other I like the most the third way. I have also tried to move the import to the __init

Re: Import Error ('mutual inclusion of modules'?)

2005-08-23 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: >I have the following code: > > A.py > > > from B import B > B.py > > > from A import R > I think python does not support this kind of 'mutual inclusion'. Am I > right? Thanks. Cesar. this page http://effbot.org/zone/import-confusion.htm might help you

Re: import error using BOOST in linux

2005-06-07 Thread Jesper Olsen
Have you set LD_LIBRARY_PATH ? -Jesper -- http://mail.python.org/mailman/listinfo/python-list