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

Resource warning when using pyenv. #3094

ghost opened this issue Oct 24, 2018 · 0 comments

Resource warning when using pyenv. #3094

ghost opened this issue Oct 24, 2018 · 0 comments


Copy link

@ghost ghost commented Oct 24, 2018

I have been using pipenv with pyenv successfully for a while. I have recently moved to new ubuntu 18.04, and now I am getting this error. Hoping it's something on my end. Pipenv install works just fine if I use the interpreter on my machine (3.6.6). It breaks when used in conjunction with pyenv.


pipenv install
Warning: Python 3.6.4 was not found on your system…
Would you like us to install CPython 3.6.4 with pyenv? [Y/n]: y
Installing CPython 3.6.4 with pyenv (this may take a few minutes)…
Traceback (most recent call last):
  File "/home/james/.local/bin/pipenv", line 11, in 
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 717, in main
    rv = self.invoke(ctx)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/click/", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/cli/", line 249, in install
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 1724, in do_install
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 565, in ensure_project
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 488, in ensure_virtualenv
    python = ensure_python(three=three, python=python)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 451, in ensure_python
    c = pyenv.install(version)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 117, in install
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 73, in _pyenv
    raise PyenvError('faild to run {0}'.format(args), c)
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/", line 56, in __init__
    self.err = c.err
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/", line 146, in err
    return self._pexpect_out
  File "/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/", line 114, in _pexpect_out
    result += self.subprocess.after
TypeError: coercing to Unicode: need string or buffer, type found
/home/james/.local/lib/python2.7/site-packages/pipenv/vendor/vistir/ ResourceWarning: Implicitly cleaning up 
  warnings.warn(warn_message, ResourceWarning)


verify_ssl = true
name = "pypi"

numpy = "*"
pandas = "*"
requests = "*"
scipy = "*"
mypy = "*"
scikit-learn = "*"
joblib = "*"
pprint = "*"


pytest = "*"

python_version = "3.6.4"


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant