[New-bugs-announce] [issue18422] is_package missing so can't use -m

andrew cooke report at bugs.python.org
Wed Jul 10 14:36:24 CEST 2013


New submission from andrew cooke:

Using python 3.3, if I try to run __main__ I see this error:

Traceback (most recent call last):                                              
  File "/usr/local/lib/python3.3/runpy.py", line 140, in _run_module_as_main    
    mod_name, loader, code, fname = _get_module_details(mod_name)               
  File "/usr/local/lib/python3.3/runpy.py", line 105, in _get_module_details    
    if loader.is_package(mod_name):                                             
AttributeError: 'NamespaceLoader' object has no attribute 'is_package'          

My directory structure is:

> tree .
.
├── README.md
├── src
│   └── simplessl
│       ├── ca.py
│       ├── __main__.py
│       ├── req.py
│       └── utils.py
└── ssl.iml

i assume this is related to http://bugs.python.org/issue18058 but don't understand why this is not a bugfix that can be back-ported.  this appears to be a bug to me...

----------
components: Installation
messages: 192799
nosy: acooke
priority: normal
severity: normal
status: open
title: is_package missing so can't use -m
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18422>
_______________________________________


More information about the New-bugs-announce mailing list