Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_distro_info bug? #314

Open
ianmiell opened this issue Mar 16, 2018 · 0 comments
Open

get_distro_info bug? #314

ianmiell opened this issue Mar 16, 2018 · 0 comments

Comments

@ianmiell
Copy link
Owner

on Mac and Linux, shutit hit the bug:

Traceback (most recent call last):
  File "cvu_class.py", line 40, in <module>
    class PreGITest(unittest.TestCase):
  File "cvu_class.py", line 72, in PreGITest
    session = shutit.create_session('bash') 
  File "/usr/lib/python2.7/site-packages/shutit.py", line 50, in create_session
    loglevel=loglevel)
  File "/usr/lib/python2.7/site-packages/shutit_global.py", line 138, in create_session
    new_shutit.setup_host_child_environment()
  File "/usr/lib/python2.7/site-packages/shutit_class.py", line 3772, in setup_host_child_environment
    shutit_pexpect_session.setup_prompt('ORIGIN_ENV', prefix=prefix)
  File "/usr/lib/python2.7/site-packages/shutit_pexpect.py", line 495, in setup_prompt
    _ = self.init_pexpect_session_environment(prefix)
  File "/usr/lib/python2.7/site-packages/shutit_pexpect.py", line 3297, in init_pexpect_session_environment
    self.get_distro_info()
  File "/usr/lib/python2.7/site-packages/shutit_pexpect.py", line 1836, in get_distro_info
    d = self.lsb_release()
  File "/usr/lib/python2.7/site-packages/shutit_pexpect.py", line 1040, in lsb_release
    d['install_type'] = (package_map.INSTALL_TYPE_MAP[dist_string.lower()])

==>my workaround is to comment that method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant