If the package has code in its `__init__.py` then it is no longer a real namespace package and I think you've been getting "lucky" for this long probably due to the order in which the packages were installed. A namespace package is a grouping of submodules/subpackages, but the top-level module in the package should always be empty and / or identical to the module in every separately-distributed copy of that file. Normally this means the file would just include a namespace declaration required to make setuptools work, although in py3 you can apparently get rid of the file entirely (meaning you shouldn't assume you can put code in there).
On Mon, Jan 23, 2017 at 2:56 PM, Laurent DAVERIO <ldave...@gmail.com> wrote: > Hello list, > > after upgrading to Pyramid 1.8 and removing all my __pycache__/ > directories (running Python 3.5.2 on macOS), I came across a problem I > had never encountered before, and I don't know how to fix. > > NB: this is not a bug of Pyramid 1.8, as downgrading to 1.7 doesn't > eliminate the problem. > > I have two packages, called ldc and ldc.shop. Both are Pyramid projects, > the latter being a namespace package which extends the former. > > > /ldc > /ldc > __init__.py (1) > > > /ldc.shop > /ldc > __ init__.py (2) > /shop > __init__.py (3) > > > File (3) contains a "config.include('ldc')" statement, which should > refer to file (1). But instead, it now refers to file (2), which of > course contains no includeme() function. > > I've used that layout for several years without any problem (other than > having to symlink directory "shop/" under ldc/ldc), so I have no idea of > what is happening now. > > Any help appreciated, thanks in advance! > > Laurent. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pylons-discuss/17192211-04e2-442d-e707-3988a052a986%40cri.ensmp.fr. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwGX6rBRtQt5aVfJYYTEzf0GPo8rRerg9%2BqUKYo_0a1ZUQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.