Package: python-pylons Version: 0.9.7-1 Severity: normal
Wrong __init__.py exists on /var/lib/python-support/python2.5/pylons/templates/default_project, which seems to be generated automagically by update-python-modules. Since `paster create -t pylons foo' copies __init__.py to foo/__init__.py, the project directory `foo' becomes a python module. > foo .................. the project directory. > foo/__init__.py ...... this shouldn't be exists. > foo/foo/__init__.py ... top level module, `foo'. > foo/foo/config > ... > foo/foo/tests This cause a problem when executing nosetests. nosetests prepends the project directory `foo' to sys.path, so we cannot import foo.tests because it is mistranslated as `foo/tests/__init__.py', not as `foo/foo/tests/__init__.py'. /usr/share/doc/python-support/README.gz notices a workaround. > Namespace packages and broken modules > ------------------------------------- > Some Python modules like Twisted rely on the fact that there is no > __init__.py file in some directories. THESE PACKAGES ARE BROKEN. You > should try to fix the package first to not rely on such implementation > details. > > However, if it turns out not to be possible, you can, as a workaround, > create a file named ".noinit" in the directories where you don't want > __init__.py to be created. In this case, update-python-modules will not > create the namespace package. Thanks. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (510, 'unstable'), (200, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-pylons depends on: ii python 2.5.4-2 An interactive high-level object-o ii python-beaker 1.3-1 Simple WSGI middleware that uses t ii python-decorator 3.0.0-1 simplify usage of python decorator ii python-formencode 1.2.2-1 validation and form generation Pyt ii python-mako 0.2.4-2 fast and lightweight templating fo ii python-nose 0.10.4-2 test discovery and running for Pyt ii python-paste 1.7.2-4 tools for using a Web Server Gatew ii python-pastedeploy 1.3.3-2 load, configure, and compose WSGI ii python-pastescript 1.7.3-3 serving web applications, creating ii python-pkg-resources 0.6c9-2 Package Discovery and Resource Acc ii python-routes 1.10.3-2 Routing Recognition and Generation ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON enco ii python-support 1.0.2 automated rebuilding support for P ii python-tempita 0.4-1 very small text templating languag ii python-weberror 0.10.1-1 Python web error handling and exce ii python-webhelpers 0.6.4-1 Library of helper functions to mak ii python-webob 0.9.6.1-1 Python module providing WSGI reque ii python-webtest 1.1-2 wraps any WSGI application and mak Versions of packages python-pylons recommends: ii python-sqlalchemy 0.5.3-1 SQL toolkit and Object Relational Versions of packages python-pylons suggests: ii ipython 0.9.1-3 enhanced interactive Python shell pn libapache2-mod-wsgi <none> (no description available) ii python 2.5.4-2 An interactive high-level object-o ii python-cheetah 2.0.1-2 text-based template engine and Pyt pn python-cherrypy3 <none> (no description available) ii python-docutils 0.5-3 utilities for the documentation of ii python-elementtree 1.2.6-14 Light-weight toolkit for XML proce pn python-genshi <none> (no description available) pn python-jinja <none> (no description available) pn python-jinja2 <none> (no description available) pn python-kid <none> (no description available) pn python-migrate <none> (no description available) pn python-myghty <none> (no description available) pn python-pudge <none> (no description available) ii python-pygments 1.0-2 syntax highlighting package writte pn python-turbokid <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org