Re: Import issue in python packages

2018-08-11 Thread Peter Otten
Venkatesh Adiga wrote: > Thanks Peter... What are the ways to update outside of the python program > without defining environment variable for source code path Otherwise > can I do it once in during initialization of sys.path update? I don't understand the question. Your options are -

Re: Import issue in python packages

2018-08-11 Thread Venkatesh Adiga
Thanks Peter... What are the ways to update outside of the python program without defining environment variable for source code path Otherwise can I do it once in during initialization of sys.path update? On Fri, 10 Aug 2018, 10:56 pm Peter Otten, <__pete...@web.de> wrote: > Venkatesh Adiga

Re: Import issue in python packages

2018-08-10 Thread Peter Otten
Venkatesh Adiga wrote: > Hi All, > > I am facing issue with python package import. > In my project, I have many directories with different python classes > defined within them. I am trying to import those classes in another python > program, but not able to import them. > Here are my directories

Import issue in python packages

2018-08-10 Thread Venkatesh Adiga
Hi All, I am facing issue with python package import. In my project, I have many directories with different python classes defined within them. I am trying to import those classes in another python program, but not able to import them. Here are my directories and file structures.

[issue29837] python3 pycopg2 import issue on solaris 10

2017-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: This would be an issue for pscyopg2 support, not the Python bug tracker. You're probably using an unsupported combination of psycopg2 and postgres libraries. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed

[issue29837] python3 pycopg2 import issue on solaris 10

2017-03-17 Thread justin
ite-packages/psycopg2/_psycopg.so: symbol timeradd: referenced symbol not found thanks justin -- components: Build messages: 289763 nosy: juwang priority: normal severity: normal status: open title: python3 pycopg2 import issue on solaris 10 type: compile er

import issue with classes

2012-01-03 Thread Rodrick Brown
I have a class FooB that derives from FooA i.e. class FooB(FooA): FooA.__init__(self,...) Can someone explain why Import FooA doesn't work and I need to use from FooA import FooA instead? This puzzles me. Thanks. -- [ Rodrick R. Brown ] http://www.linkedin.com/in/rodrickbrown --

Re: import issue with classes

2012-01-03 Thread Andrew Berg
On 1/3/2012 8:50 PM, Rodrick Brown wrote: Import FooA doesn't work and I need to use from FooA import FooA instead? This puzzles me. Thanks. If you have a module called FooA with a class called FooA, then import FooA imports the /module/. The class would be FooA.FooA, just as the variable x

Re: import issue with classes

2012-01-03 Thread Terry Reedy
On 1/3/2012 10:06 PM, Andrew Berg wrote: On 1/3/2012 8:50 PM, Rodrick Brown wrote: Import FooA doesn't work and I need to use from FooA import FooA instead? This puzzles me. Thanks. If you have a module called FooA with a class called FooA, then import FooA imports the /module/. The class

Re: import issue with classes

2012-01-03 Thread Benjamin Kaplan
On Tue, Jan 3, 2012 at 9:50 PM, Rodrick Brown rodrick.br...@gmail.com wrote: I have a class FooB that derives from FooA i.e. class FooB(FooA):   FooA.__init__(self,...) Can someone explain why Import FooA doesn't work and I need to use from FooA import FooA instead? This puzzles me.

Re: import issue with classes

2012-01-03 Thread Terry Reedy
On 1/3/2012 11:13 PM, Terry Reedy wrote: On 1/3/2012 10:06 PM, Andrew Berg wrote: On 1/3/2012 8:50 PM, Rodrick Brown wrote: Import FooA doesn't work and I need to use from FooA import FooA instead? This puzzles me. Thanks. If you have a module called FooA with a class called FooA, then import

MySQLdb compiled -- Import issue

2010-03-24 Thread Kurian Thayil
Hi All, I am just a month old with Python and trying to learn CGI with Python. I was trying to install MySQLdb module in my new CentOS 5.3 box with Python 2.4.3 default install. I downloaded the tar-ball of MySQLdb module (MySQL-python-1.2.3c1). Did build as normal user and install as root. MySQL

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Sean DiZazzo
On Mar 24, 7:59 pm, Kurian Thayil kurianmtha...@gmail.com wrote: Hi All, I am just a month old with Python and trying to learn CGI with Python. I was trying to install MySQLdb module in my new CentOS 5.3 box with Python 2.4.3 default install. I downloaded the tar-ball of MySQLdb module

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Kurian Thayil
On Wed, 2010-03-24 at 20:15 -0700, Sean DiZazzo wrote: On Mar 24, 7:59 pm, Kurian Thayil kurianmtha...@gmail.com wrote: Hi All, I am just a month old with Python and trying to learn CGI with Python. I was trying to install MySQLdb module in my new CentOS 5.3 box with Python 2.4.3

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Sean DiZazzo
You are right. I was trying to import the module sitting on the source folder :-). Thanks for your quick response and let me try further. Sweet! I remember it because it confused the hell out of me on at least one past occasion. :) -- http://mail.python.org/mailman/listinfo/python-list

Import Issue

2006-06-29 Thread praveenkumar . 117
Hi All, What is the difference between import string and from string import * Regards, Praveen -- http://mail.python.org/mailman/listinfo/python-list

Re: Import Issue

2006-06-29 Thread Ravi Teja
[EMAIL PROTECTED] wrote: What is the difference between import string and from string import * Here is an explanation. http://effbot.org/zone/import-confusion.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Import Issue

2006-06-29 Thread Duncan Booth
wrote: Hi All, What is the difference between import string and from string import * Regards, Praveen import string is effectively the same as doing: string = sys.modules['string'] from string import * is effectively the same as

Re: Import Issue

2006-06-29 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hi All, What is the difference between import string and from string import * [EMAIL PROTECTED] ~/Projects/dbimp $ python Python 2.4.1 (#1, May 27 2005, 18:02:40) [GCC 3.3.3 (cygwin special)] on cygwin Type help,

Import Issue

2006-06-02 Thread praveenkumar . 117
Hi all, I am facing a problem while importing a file in python script. After doing import file i am updating that file. Later i am accessing a dictionary contained in that file. Eventhough changes are reflected in the file... When i access a dictionary those

Re: Import Issue

2006-06-02 Thread A.T.Hofkamp
On 2006-06-02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, After doing import file i am updating that file. Later i am accessing a dictionary contained in that file. Eventhough changes are reflected in the file... When i access a dictionary those changes are not there. I believe that

Re: Import Issue

2006-06-02 Thread Maric Michaud
Le Vendredi 02 Juin 2006 08:42, [EMAIL PROTECTED] a écrit : Hi all, After doing import file i am updating that file. Later i am accessing a dictionary contained in that file. Eventhough changes are reflected in the file... When i access a dictionary those changes are