Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74088
| References | <53ba52e1$0$2926$c3e8da3$76491128@news.astraweb.com> <mailman.11577.1404720285.18130.python-list@python.org> <53ba6254$0$2926$c3e8da3$76491128@news.astraweb.com> |
|---|---|
| Date | 2014-07-07 19:11 +1000 |
| Subject | Re: Module name does not match file name |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11581.1404724315.18130.python-list@python.org> (permalink) |
On Mon, Jul 7, 2014 at 7:03 PM, Steven D'Aprano <steve@pearwood.info> wrote: > On Mon, 07 Jul 2014 18:04:36 +1000, Chris Angelico wrote: > >> On Mon, Jul 7, 2014 at 5:57 PM, Steven D'Aprano <steve@pearwood.info> >> wrote: >>> Can anyone explain how "import pg" can end up coming from pgmodule.so? >> >> First guess: There's a "pg.py" somewhere that imports the so, then >> replaces itself in sys.modules. > > > Oh, there's a pg.py somewhere alright, but it imports _py and there is no > _py module anywhere on the system. I don't believe that the pg.py file is > actually used, even though it is in the site-packages next to pgmodule.py. Huh. Definitely curious as to what 'python -v' says, then. > I did mention the maze of twisty dependencies, didn't I? And I winced at your opening paragraph. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Module name does not match file name Steven D'Aprano <steve@pearwood.info> - 2014-07-07 07:57 +0000
Re: Module name does not match file name Chris Angelico <rosuav@gmail.com> - 2014-07-07 18:04 +1000
Re: Module name does not match file name Steven D'Aprano <steve@pearwood.info> - 2014-07-07 09:03 +0000
Re: Module name does not match file name Chris Angelico <rosuav@gmail.com> - 2014-07-07 19:11 +1000
Re: Module name does not match file name Steven D'Aprano <steve@pearwood.info> - 2014-07-07 08:57 +0000
Re: Module name does not match file name Chris Angelico <rosuav@gmail.com> - 2014-07-07 19:03 +1000
Re: Module name does not match file name Steven D'Aprano <steve@pearwood.info> - 2014-07-07 09:28 +0000
Re: Module name does not match file name Peter Otten <__peter__@web.de> - 2014-07-07 12:41 +0200
Re: Module name does not match file name Robert Kern <robert.kern@gmail.com> - 2014-07-07 12:15 +0100
Re: Module name does not match file name Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-07 11:56 +0000
Re: Module name does not match file name Chris Angelico <rosuav@gmail.com> - 2014-07-07 22:04 +1000
Re: Module name does not match file name Robert Kern <robert.kern@gmail.com> - 2014-07-07 15:25 +0100
csiph-web