Your message dated Mon, 07 Dec 2009 02:26:32 -0500
with message-id <[email protected]>
and subject line Re: Bug#559547: __init__.pys present on my system
has caused the Debian Bug report #559547,
regarding python-coherence: Doesn't include __init__.py in submodules
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
559547: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559547
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-coherence
Version: 0.6.4-4
Severity: grave
Justification: renders package unusable
When attempting to run coherence(1), it fails with "ImportError: No module
named extern.simple_config". This seems to be due to the package not
including __init__.py files in many submodules, including
coherence.extern. The program runs after this temporary fix:
"find /usr/lib/pymodules/coherence -type d -exec touch {}/__init__.py {}\;"
I first attempted this with /usr/share/pyshared/coherence, but I discovered
that I know little about how Debian handles python modules.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-coherence depends on:
ii python [python-ctypes] 2.5.4-2 An interactive high-level object-o
ii python-axiom 0.5.31-2 Python object database
ii python-celementtree 1.0.5-10 Light-weight toolkit for XML proce
ii python-configobj 4.5.2-2 a simple but powerful config file
ii python-elementtree 1.2.6-14 Light-weight toolkit for XML proce
ii python-gst0.10 0.10.17-1 generic media-playing framework (P
ii python-louie 1.1-1.1 Python signal dispatching mechanis
ii python-nose 0.11.1-1 test discovery and running for Pyt
ii python-pkg-resources 0.6.8-1 Package Discovery and Resource Acc
ii python-support 1.0.4 automated rebuilding support for P
ii python-tagpy 0.94.7-1+b1 Python module for manipulating tag
ii python-twisted-core 8.2.0-3 Event-based framework for internet
ii python-twisted-web 8.2.0-2 An HTTP protocol implementation to
ii python-zope.interface [pytho 3.5.2-2 Zope 3 Interface Infrastructure
python-coherence recommends no packages.
python-coherence suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Thanks for the help, particularly in identifying python-support as the
source of the /usr/lib/pymodules/ directory contents (something that I
tried to find out on my own, and failed at). I had been running
python-support 1.0.4 (as I track testing).
I did the following:
1) Uninstalled python-coherence.
2) Deleted /usr/lib/pymodules/python2.5/coherence.
3) Upgraded to python-support 1.0.6 from unstable.
4) Installed python-coherence.
5) Checked for the needed __init__.py files. They exist.
6) Repeated #1 and #2.
7) Downgraded back to python-support 1.0.4.
8) Repeated #4 and #5. The __init__.py files exist again.
So, as it seems that there was something broken in my python-support
installation, which was not itself reproducible, I'm closing this bug.
On 12/6/09 11:42 PM, Matt Kraai wrote:
> On Sun, Dec 06, 2009 at 10:16:37PM -0500, Joseph Spiros wrote:
>> Yes, it is line 23 that fails. I reverted my find+touch "fix", purged,
>> ensured that /usr/lib/pymodules/python2.5/coherence and
>> /usr/share/pyshared/coherence no longer existed before reinstalling the
>> python-coherence package to obtain this log:
>>
>>> $ coherence
>>> Traceback (most recent call last):
>>> File "/usr/bin/coherence", line 23, in <module>
>>> from coherence.extern.simple_config import Config,ConfigItem
>>> ImportError: No module named extern.simple_config
>>> $ python
>>> Python 2.5.4 (r254:67916, Nov 19 2009, 19:46:21)
>>> [GCC 4.3.4] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>> from coherence.extern.simple_config import Config,ConfigItem
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> ImportError: No module named extern.simple_config
>>>>>> import coherence.extern
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> ImportError: No module named extern
>>>>>> import coherence.extern.simple_config
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> ImportError: No module named extern.simple_config
>>
>> When I take a look at sys.path, it contains
>> /usr/lib/pymodules/python2.5, but does not contain /usr/share/pyshared.
>> Do you have an __init__.py file in
>> /usr/lib/pymodules/python2.5/coherence/extern?
>
> Yes, an empty
> /usr/lib/pymodules/python2.5/coherence/extern/__init__.py exists on my
> system. It appears that python-support is responsible for installing
> the Python version-specific files. I have 1.0.6. Is that what you
> have?
>
--
Joseph Spiros
[email protected]
+1 (440) 707-6855
--- End Message ---