Uploaded image for project: 'BrownDog'
  1. BrownDog
  2. BD-1628

In bd.py requests[security] is causing errors when using big data option

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Milestone 5: Beta Release
    • None
    • None
    • None
    • Brown Dog - 2017 May 2

      • Check if there are any issues if we don't use requests[security]
      • If requests[security] is a must, then look into this issue and fix.

      Errors with requests[security] and big data option:

      Extraction

      File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/bin/bd", line 9, in <module>
          load_entry_point('bdcli==0.5.1a0', 'console_scripts', 'bd')()
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/bdcli-0.5.1a0-py2.7.egg/bdcli/__init__.py", line 6, in main
          bd.main()
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/bdcli-0.5.1a0-py2.7.egg/bdcli/bd.py", line 175, in main
          metadata = bd.extract_local(bds, input_filename, token, docker_machine, wait, verbose)
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/browndog-0.7.1a0-py2.7.egg/browndog/bd.py", line 454, in extract_local
          docker_client = docker.Client(version='auto', **docker_machine.config(machine='default'))
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/docker_py-1.10.6-py2.7.egg/docker/client.py", line 99, in __init__
          self._version = self._retrieve_server_version()
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/docker_py-1.10.6-py2.7.egg/docker/client.py", line 124, in _retrieve_server_version
          'Error while fetching server API version: {0}'.format(e)
      docker.errors.DockerException: Error while fetching server API version: hostname '192.168.99.100' doesn't match 'localhost'

       

      Conversion

      File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/bin/bd", line 9, in <module>
          load_entry_point('bdcli==0.5.1a0', 'console_scripts', 'bd')()
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/bdcli-0.5.1a0-py2.7.egg/bdcli/__init__.py", line 6, in main
          bd.main()
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/bdcli-0.5.1a0-py2.7.egg/bdcli/bd.py", line 165, in main
          docker_machine, wait, verbose)
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/site-packages/browndog-0.7.1a0-py2.7.egg/browndog/bd.py", line 300, in convert_local
          return os.path.join(local_dir, intermediate_output_filename)
        File "/Users/sandeep/Repositories/BD/virtual-envs/bd-py-test-env-3/lib/python2.7/posixpath.py", line 70, in join
          elif path == '' or path.endswith('/'):
      AttributeError: 'NoneType' object has no attribute 'endswith'

              sandeeps Sandeep Puthanveetil Satheesan
              sandeeps Sandeep Puthanveetil Satheesan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 2 hours
                  1h