Exception raised: module 'subprocess' has no attribute 'mswindows'

Bug #1505268 reported by Jan Collijs
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cliff
New
Undecided
Unassigned
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

Running archlinux installed through pip:

pip install python-openstackclient
python-openstackclient==1.7.1

I get the error "Exception raised: module 'subprocess' has no attribute 'mswindows'" when trying to run the openstack command..

Revision history for this message
Steve Martinelli (stevemar) wrote :

thats a bit rough, considering subprocess is standard lib, can you try running a command with --debug and attach the output, sounds like it's specific to archlinux

Changed in python-openstackclient:
status: New → Incomplete
Revision history for this message
Jan Collijs (s-launchpat-f) wrote :
Download full text (4.6 KiB)

When entering a command like 'openstack server list' or 'openstack --help' everything is working fine so it seems. When running the command 'openstack' it goes into this error state:

$ openstack --debug
START with options: ['--debug']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://#.#.#.#:5000/v2.0', cacert='', client_id='', client_secret='', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', > \identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, > \os_volume_api_version='', password='###', project_domain_id='', project_domain_name='', project_id='', project_name='admin', protocol='', region_name='RegionOne', scope='', service_provider_endpoint='', timing=False, token='', trust_id='', url='', user_domain_id='', > \user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None)
defaults: {'secgroup_source': 'neutron', 'interface': None, 'api_timeout': None, 'compute_api_version': '2', 'orchestration_api_version': '1', 'auth_type': 'password', 'cert': None, 'floating_ip_source': 'neutron', 'network_api_version': '2', 'verify': True, 'cacert': > \None, 'dns_api_version': '2', 'disable_vendor_agent': {}, 'object_api_version': '1', 'database_api_version': '1.0', 'image_format': 'qcow2', 'volume_api_version': '1', 'image_api_use_tasks': False, 'key': None, 'baremetal_api_version': '1', 'image_api_version': '2', > \'identity_api_version': '2.0'}
cloud cfg: {'verbose_level': 3, 'interface': None, 'api_timeout': None, 'compute_api_version': '2', 'orchestration_api_version': '1', 'debug': True, 'auth_type': 'password', 'database_api_version': '1.0', 'auth': {'password': '###', 'project_name': 'admin', 'auth_url': > \'http://#.#.#.#:5000/v2.0', 'username': 'admin'}, 'deferred_help': False, 'floating_ip_source': 'neutron', 'cert': None, 'image_format': 'qcow2', 'network_api_version': '2', 'verify': True, 'cacert': None, 'dns_api_version': '2', 'disable_vendor_agent': {}, > \'object_api_version': '1', 'region_name': 'RegionOne', 'default_domain': 'default', 'timing': False, 'secgroup_source': 'neutron', 'volume_api_version': '1', 'image_api_use_tasks': False, 'key': None, 'baremetal_api_version': '1', 'image_api_version': '2', > \'identity_api_version': '2.0'}
volume API version 1, cmd group openstack.volume.v1
network API version 2, cmd group openstack.network.v2
identity API version 2.0, cmd group openstack.identity.v2
image API version 2, cmd group openstack.image.v2
compute API version 2, cmd group openstack.compute.v2
object_store API version 1, cmd group openstack.object_store.v1
END return value: 1
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/openstac...

Read more...

Revision history for this message
Steve Martinelli (stevemar) wrote :

okay, looks like in py35 subprocess was renamed,

openstackclient depends on cliff, which depends on cmd2, and it looks like doug hellman already created a pull request to fix the issue here: https://bitbucket.org/catherinedevlin/cmd2/pull-requests/8/fix-bug-18-by-using-sysplatform-instead-of/diff

we'll need all of those previous bits released before we can get this resolved in openstackclient

Changed in python-openstackclient:
status: Incomplete → Confirmed
Revision history for this message
Vincent Legoll (vincent-legoll) wrote :

Looks like its subprocess.mswindows which has been renamed

Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-openstackclient:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.