Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > resolving module name conflicts.

Reply
Thread Tools

resolving module name conflicts.

 
 
Gelonida N
Guest
Posts: n/a
 
      11-11-2011


Hi,

I got some code.
- This code contains a package named tests
- there are at least 100 references in different python files
importing from above mentioned tests package.
- the code also imports pytz at one place

I get following warning message:

/usr/lib/python2.6/dist-packages/pytz/__init__.py:32: UserWarning:
Module tests was already imported from
/home/user/myproject/tests/__init__.pyc, but
/usr/lib/python2.6/dist-packages is being added to sys.path
from pkg_resources import resource_stream


Is there any way to tell pytz to import it's own tests package and tell
the rest of the code to import the other?

Python version is 2.6.5


Thanks in advance for any suggestion.









 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS Application Name resolving RJDev ASP .Net 4 11-29-2005 09:41 AM
Local name resolving with Cisco 3002 Peter Cheeseman Cisco 0 10-11-2005 02:07 PM
Example of resolving an alias using Carbon.File module? fortepianissimo@gmail.com Python 1 01-21-2005 02:40 PM
Resolving a class name at runtime Glenn Robinson Java 1 06-27-2004 12:07 PM
Using Module#const_missing for resolving "external" classes Thomas Ruby 1 09-01-2003 09:56 PM



Advertisments