prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  ImportError: No module named shutil_get_terminal_size
  Describe the issue briefly here.
  
  ```
  $ pipenv run python
  Creating a virtualenv for this project…
  Using /usr/bin/python (2.7.14) to create virtualenv…
  ⠋Traceback (most recent call last):
    File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
      "__main__", fname, loader, pkg_name)
    File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/home/user/dotfiles/dotfiles/.local/lib/python2.7/site-packages/pipenv/pew/__main__.py", line 1, in <module>
      from pipenv.patched import pew
    File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/pew/__init__.py", line 3, in <module>
      from . import pew
    File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/pew/pew.py", line 16, in <module>
      from backports.shutil_get_terminal_size import get_terminal_size
  ImportError: No module named shutil_get_terminal_size
  ```
  
  Virtualenv location:
  
  ```
  Loading .env environment variables…
  Warning: There was an unexpected error while activating your virtualenv. Continuing anyway…
  Python 2.7.14 (default, Sep 23 2017, 22:06:14)
  [GCC 7.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>>
  ```
  
  Please run `$ python -m pipenv.help`, and paste the results here.
  
  Pipenv version: `'11.3.2'`
  
  Pipenv location: `'/home/user/.local/lib/python2.7/site-packages/pipenv'`
  
  Python location: `'/usr/bin/python'`
  
  Other Python installations in `PATH`:
  
    - `2.7`: `/usr/bin/python2.7`
    - `2.7`: `/usr/bin/python2.7`
    - `3.5`: `/usr/bin/python3.5m`
    - `3.5`: `/usr/bin/python3.5`
    - `3.6`: `/usr/bin/python3.6m`
    - `3.6`: `/usr/bin/python3.6`
  
    - `2.7.14`: `/usr/bin/python`
    - `2.7.14`: `/usr/bin/python2`
    - `3.6.3`: `/usr/bin/python3`
  
  PEP 508 Information:
  
  ```
  {'implementation_name': 'cpython',
   'implementation_version': '0',
   'os_name': 'posix',
   'platform_machine': 'x86_64',
   'platform_python_implementation': 'CPython',
   'platform_release': '4.13.0-36-generic',
   'platform_system': 'Linux',
   'platform_version': '#40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018',
   'python_full_version': '2.7.14',
   'python_version': '2.7',
   'sys_platform': 'linux2'}
  ```
  
  System environment variables:
  
    - `QT4_IM_MODULE`
    - `ALTERNATE_EDITOR`
    - `PYTHONDONTWRITEBYTECODE`
    - `XDG_CURRENT_DESKTOP`
    - `XDG_SESSION_TYPE`
    - `QT_IM_MODULE`
    - `LOGNAME`
    - `USER`
    - `PATH`
    - `XDG_VTNR`
    - `HOME`
    - `PYTHONUNBUFFERED`
    - `VIRTUALENVWRAPPER_SCRIPT`
    - `DISPLAY`
    - `XDG_SESSION_DESKTOP`
    - `LANG`
    - `TERM`
    - `SHELL`
    - `JOURNAL_STREAM`
    - `SESSION_MANAGER`
    - `XDG_DATA_DIRS`
    - `WAYLAND_DISPLAY`
    - `GNOME_DESKTOP_SESSION_ID`
    - `CLUTTER_IM_MODULE`
    - `TEXTDOMAIN`
    - `EDITOR`
    - `DESKTOP_AUTOSTART_ID`
    - `XMODIFIERS`
    - `_VIRTUALENVWRAPPER_API`
    - `USERNAME`
    - `WORKON_HOME`
    - `XDG_RUNTIME_DIR`
    - `SSH_AUTH_SOCK`
    - `VTE_VERSION`
    - `GDMSESSION`
    - `IM_CONFIG_PHASE`
    - `VISUAL`
    - `TEXTDOMAINDIR`
    - `GNOME_SHELL_SESSION_MODE`
    - `XDG_CONFIG_DIRS`
    - `PIP_PYTHON_PATH`
    - `LESSOPEN`
    - `XDG_SESSION_ID`
    - `DBUS_SESSION_BUS_ADDRESS`
    - `_`
    - `GTK_IM_MODULE`
    - `DESKTOP_SESSION`
    - `LESSCLOSE`
    - `OLDPWD`
    - `SHLVL`
    - `PWD`
    - `COLORTERM`
    - `XDG_MENU_PREFIX`
    - `GIT_EDITOR`
    - `LS_COLORS`
    - `PAGER`
    - `XDG_SEAT`
  
  Pipenv–specific environment variables:
  
  
  Debug–specific environment variables:
  
    - `PATH`: `/bin/:/bin/:/bin/:/home/user/.envs/dotfiles-_bp8OBTv/bin/:/home/user/.envs/dotfiles-_bp8OBTv/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/dotfiles/bin:/home/user/.local/bin`
    - `SHELL`: `/bin/bash`
    - `EDITOR`: `emacsclient -c`
    - `LANG`: `en_US.UTF-8`
    - `PWD`: `/home/user/dotfiles`
  
  
  ---------------------------
  
  Contents of `Pipfile` ('/home/user/dotfiles/Pipfile'):
  
  ```toml
  [[source]]
  
  url = "https://pypi.python.org/simple"
  verify_ssl = true
  name = "pypi"
  
  
  [packages]
  
  "autopep8" = "*"
  "flake8" = "*"
  autoenv = "*"
  click = "*"
  gitpython = "*"
  ipython = "*"
  mypy = "*"
  percol = "*"
  pex = "*"
  pycodestyle = "*"
  pydocstyle = "*"
  pyflakes = "*"
  pylama = "*"
  pylint = "*"
  tldr = "*"
  visidata = "*"
  requests = "*"
  
  
  [dev-packages]
  
  
  
  [requires]
  
  
  ```
  
  
  
  ------------
  
  ##### Expected result
  
  Describe what you expected.
  
  ##### Actual result
  
  When possible, provide the verbose output (`--verbose`), especially for locking and dependencies resolving issues.
  
  ##### Steps to replicate
  
  Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
  
  
  Pipfile
  
  ```
  $ cat Pipfile 
  [[source]]
  
  url = "https://pypi.python.org/simple"
  verify_ssl = true
  name = "pypi"
  
  
  [packages]
  
  "autopep8" = "*"
  "flake8" = "*"
  autoenv = "*"
  click = "*"
  gitpython = "*"
  ipython = "*"
  mypy = "*"
  percol = "*"
  pex = "*"
  pycodestyle = "*"
  pydocstyle = "*"
  pyflakes = "*"
  pylama = "*"
  pylint = "*"
  tldr = "*"
  visidata = "*"
  requests = "*"
  
  
  [dev-packages]
  
  
  
  [requires]
  ```
  
  
  
  # Platform
  
  Ubuntu 17.10
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pipenv/pew/__main__.py`
  Content:
  ```
  1 from pipenv.patched import pew
  2 
  3 if __name__ == '__main__':
  4     pew.pew.pew()
  5
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pipenv/pew/__main__.py b/pipenv/pew/__main__.py
  --- a/pipenv/pew/__main__.py
  +++ b/pipenv/pew/__main__.py
  @@ -1,4 +1,13 @@
   from pipenv.patched import pew
  +import os
  +import sys
  +
  +pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  +pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])
  +pipenv_patched = os.sep.join([pipenv_root, 'patched'])
  +
   
   if __name__ == '__main__':
  +    sys.path.insert(0, pipenv_vendor)
  +    sys.path.insert(0, pipenv_patched)
       pew.pew.pew()
  
verification_info: {"golden_diff": "diff --git a/pipenv/pew/__main__.py b/pipenv/pew/__main__.py\n--- a/pipenv/pew/__main__.py\n+++ b/pipenv/pew/__main__.py\n@@ -1,4 +1,13 @@\n from pipenv.patched import pew\n+import os\n+import sys\n+\n+pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n+pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])\n+pipenv_patched = os.sep.join([pipenv_root, 'patched'])\n+\n \n if __name__ == '__main__':\n+    sys.path.insert(0, pipenv_vendor)\n+    sys.path.insert(0, pipenv_patched)\n     pew.pew.pew()\n", "issue": "ImportError: No module named shutil_get_terminal_size\nDescribe the issue briefly here.\r\n\r\n```\r\n$ pipenv run python\r\nCreating a virtualenv for this project\u2026\r\nUsing /usr/bin/python (2.7.14) to create virtualenv\u2026\r\n\u280bTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n  File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/home/user/dotfiles/dotfiles/.local/lib/python2.7/site-packages/pipenv/pew/__main__.py\", line 1, in <module>\r\n    from pipenv.patched import pew\r\n  File \"/home/user/.local/lib/python2.7/site-packages/pipenv/patched/pew/__init__.py\", line 3, in <module>\r\n    from . import pew\r\n  File \"/home/user/.local/lib/python2.7/site-packages/pipenv/patched/pew/pew.py\", line 16, in <module>\r\n    from backports.shutil_get_terminal_size import get_terminal_size\r\nImportError: No module named shutil_get_terminal_size\r\n```\r\n\r\nVirtualenv location:\r\n\r\n```\r\nLoading .env environment variables\u2026\r\nWarning: There was an unexpected error while activating your virtualenv. Continuing anyway\u2026\r\nPython 2.7.14 (default, Sep 23 2017, 22:06:14)\r\n[GCC 7.2.0] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>>\r\n```\r\n\r\nPlease run `$ python -m pipenv.help`, and paste the results here.\r\n\r\nPipenv version: `'11.3.2'`\r\n\r\nPipenv location: `'/home/user/.local/lib/python2.7/site-packages/pipenv'`\r\n\r\nPython location: `'/usr/bin/python'`\r\n\r\nOther Python installations in `PATH`:\r\n\r\n  - `2.7`: `/usr/bin/python2.7`\r\n  - `2.7`: `/usr/bin/python2.7`\r\n  - `3.5`: `/usr/bin/python3.5m`\r\n  - `3.5`: `/usr/bin/python3.5`\r\n  - `3.6`: `/usr/bin/python3.6m`\r\n  - `3.6`: `/usr/bin/python3.6`\r\n\r\n  - `2.7.14`: `/usr/bin/python`\r\n  - `2.7.14`: `/usr/bin/python2`\r\n  - `3.6.3`: `/usr/bin/python3`\r\n\r\nPEP 508 Information:\r\n\r\n```\r\n{'implementation_name': 'cpython',\r\n 'implementation_version': '0',\r\n 'os_name': 'posix',\r\n 'platform_machine': 'x86_64',\r\n 'platform_python_implementation': 'CPython',\r\n 'platform_release': '4.13.0-36-generic',\r\n 'platform_system': 'Linux',\r\n 'platform_version': '#40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018',\r\n 'python_full_version': '2.7.14',\r\n 'python_version': '2.7',\r\n 'sys_platform': 'linux2'}\r\n```\r\n\r\nSystem environment variables:\r\n\r\n  - `QT4_IM_MODULE`\r\n  - `ALTERNATE_EDITOR`\r\n  - `PYTHONDONTWRITEBYTECODE`\r\n  - `XDG_CURRENT_DESKTOP`\r\n  - `XDG_SESSION_TYPE`\r\n  - `QT_IM_MODULE`\r\n  - `LOGNAME`\r\n  - `USER`\r\n  - `PATH`\r\n  - `XDG_VTNR`\r\n  - `HOME`\r\n  - `PYTHONUNBUFFERED`\r\n  - `VIRTUALENVWRAPPER_SCRIPT`\r\n  - `DISPLAY`\r\n  - `XDG_SESSION_DESKTOP`\r\n  - `LANG`\r\n  - `TERM`\r\n  - `SHELL`\r\n  - `JOURNAL_STREAM`\r\n  - `SESSION_MANAGER`\r\n  - `XDG_DATA_DIRS`\r\n  - `WAYLAND_DISPLAY`\r\n  - `GNOME_DESKTOP_SESSION_ID`\r\n  - `CLUTTER_IM_MODULE`\r\n  - `TEXTDOMAIN`\r\n  - `EDITOR`\r\n  - `DESKTOP_AUTOSTART_ID`\r\n  - `XMODIFIERS`\r\n  - `_VIRTUALENVWRAPPER_API`\r\n  - `USERNAME`\r\n  - `WORKON_HOME`\r\n  - `XDG_RUNTIME_DIR`\r\n  - `SSH_AUTH_SOCK`\r\n  - `VTE_VERSION`\r\n  - `GDMSESSION`\r\n  - `IM_CONFIG_PHASE`\r\n  - `VISUAL`\r\n  - `TEXTDOMAINDIR`\r\n  - `GNOME_SHELL_SESSION_MODE`\r\n  - `XDG_CONFIG_DIRS`\r\n  - `PIP_PYTHON_PATH`\r\n  - `LESSOPEN`\r\n  - `XDG_SESSION_ID`\r\n  - `DBUS_SESSION_BUS_ADDRESS`\r\n  - `_`\r\n  - `GTK_IM_MODULE`\r\n  - `DESKTOP_SESSION`\r\n  - `LESSCLOSE`\r\n  - `OLDPWD`\r\n  - `SHLVL`\r\n  - `PWD`\r\n  - `COLORTERM`\r\n  - `XDG_MENU_PREFIX`\r\n  - `GIT_EDITOR`\r\n  - `LS_COLORS`\r\n  - `PAGER`\r\n  - `XDG_SEAT`\r\n\r\nPipenv\u2013specific environment variables:\r\n\r\n\r\nDebug\u2013specific environment variables:\r\n\r\n  - `PATH`: `/bin/:/bin/:/bin/:/home/user/.envs/dotfiles-_bp8OBTv/bin/:/home/user/.envs/dotfiles-_bp8OBTv/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/dotfiles/bin:/home/user/.local/bin`\r\n  - `SHELL`: `/bin/bash`\r\n  - `EDITOR`: `emacsclient -c`\r\n  - `LANG`: `en_US.UTF-8`\r\n  - `PWD`: `/home/user/dotfiles`\r\n\r\n\r\n---------------------------\r\n\r\nContents of `Pipfile` ('/home/user/dotfiles/Pipfile'):\r\n\r\n```toml\r\n[[source]]\r\n\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n\r\n[packages]\r\n\r\n\"autopep8\" = \"*\"\r\n\"flake8\" = \"*\"\r\nautoenv = \"*\"\r\nclick = \"*\"\r\ngitpython = \"*\"\r\nipython = \"*\"\r\nmypy = \"*\"\r\npercol = \"*\"\r\npex = \"*\"\r\npycodestyle = \"*\"\r\npydocstyle = \"*\"\r\npyflakes = \"*\"\r\npylama = \"*\"\r\npylint = \"*\"\r\ntldr = \"*\"\r\nvisidata = \"*\"\r\nrequests = \"*\"\r\n\r\n\r\n[dev-packages]\r\n\r\n\r\n\r\n[requires]\r\n\r\n\r\n```\r\n\r\n\r\n\r\n------------\r\n\r\n##### Expected result\r\n\r\nDescribe what you expected.\r\n\r\n##### Actual result\r\n\r\nWhen possible, provide the verbose output (`--verbose`), especially for locking and dependencies resolving issues.\r\n\r\n##### Steps to replicate\r\n\r\nProvide the steps to replicate (which usually at least includes the commands and the Pipfile).\r\n\r\n\r\nPipfile\r\n\r\n```\r\n$ cat Pipfile \r\n[[source]]\r\n\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n\r\n[packages]\r\n\r\n\"autopep8\" = \"*\"\r\n\"flake8\" = \"*\"\r\nautoenv = \"*\"\r\nclick = \"*\"\r\ngitpython = \"*\"\r\nipython = \"*\"\r\nmypy = \"*\"\r\npercol = \"*\"\r\npex = \"*\"\r\npycodestyle = \"*\"\r\npydocstyle = \"*\"\r\npyflakes = \"*\"\r\npylama = \"*\"\r\npylint = \"*\"\r\ntldr = \"*\"\r\nvisidata = \"*\"\r\nrequests = \"*\"\r\n\r\n\r\n[dev-packages]\r\n\r\n\r\n\r\n[requires]\r\n```\r\n\r\n\r\n\r\n# Platform\r\n\r\nUbuntu 17.10\n", "before_files": [{"content": "from pipenv.patched import pew\n\nif __name__ == '__main__':\n    pew.pew.pew()\n", "path": "pipenv/pew/__main__.py"}], "after_files": [{"content": "from pipenv.patched import pew\nimport os\nimport sys\n\npipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\npipenv_vendor = os.sep.join([pipenv_root, 'vendor'])\npipenv_patched = os.sep.join([pipenv_root, 'patched'])\n\n\nif __name__ == '__main__':\n    sys.path.insert(0, pipenv_vendor)\n    sys.path.insert(0, pipenv_patched)\n    pew.pew.pew()\n", "path": "pipenv/pew/__main__.py"}]}