I'm trying to use pipenv
on pythonanywhere.
I installed pipenv
using pip install --user pipenv
. But when I do pipenv install
, I get the below error.
Error, do this: mount -t proc proc /proc
Traceback (most recent call last):
File "/home/vianifashion/.local/bin/pipenv", line 7, in <module>
from pipenv import cli
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/__init__.py", line 23, in <module>
from .cli import cli
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/cli/__init__.py", line 3, in <module>
from .command import cli
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/cli/command.py", line 7, in <module>
import crayons
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/patched/crayons.py", line 49, in <module>
is_powershell = "powershell" in shellingham.detect_shell()[0]
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/shellingham/__init__.py", line 22, in detect_shell
shell = get_shell(pid, max_depth=max_depth)
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 54, in get_shell
mapping = _get_process_mapping()
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 15, in _get_process_mapping
mapping = impl.get_process_mapping()
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/shellingham/posix/ps.py", line 18, in get_process_mapping
'ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=',
File "/usr/lib/python2.7/subprocess.py", line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=']' returned non-zero exit status 47
But then I uninstall pipenv
and reinstall an earlier version pip install --user pipenv==2018.6.25
I don't get this error, but then when I try to install my project dependencies or when I run pipenv lock
I run into the below error. Any idea how I can correct this?
Locking [dev-packages] dependencies...
rt Requirement
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/__init__.py", line 6, in <module>
from .models import Requirement, Lockfile, Pipfile
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/__init__.py", line 8, in <module>
from .requirements import Requirement
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 15, in <module>
from .markers import PipenvMarkers
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/markers.py", line 6, in <module>
from .utils import validate_markers, filter_none
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/utils.py", line 9, in <module>
from .._compat import Link
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/_compat.py", line 55, in <module>
Command = do_import("basecommand", "Command")
File "/home/vianifashion/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/_compat.py", line 35, in do_import
_tmp = importlib.import_module(pip9)
File "/home/vianifashion/.virtualenvs/viani-WiKfXX_3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'pip.basecommand'
Anyone has any idea how I can correct this behaviour?