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

pipenv install #69

Open
vaclavkanera opened this issue Apr 27, 2022 · 4 comments
Open

pipenv install #69

vaclavkanera opened this issue Apr 27, 2022 · 4 comments

Comments

@vaclavkanera
Copy link

Fresh Ubuntu 22.04 installation
Grafana installed and running on localhost:3000
Prometheus installed and running on localhost:9090
Python 3.10.4 installed

After "pipenv install" command I have this error:
chiaminer@grapheneTest:$ cd chia-monitor/
chiaminer@grapheneTest:
/chia-monitor$ pipenv install
Traceback (most recent call last):
File "/usr/bin/pipenv", line 33, in
sys.exit(load_entry_point('pipenv==11.9.0', 'console_scripts', 'pipenv')())
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pipenv/cli.py", line 347, in install
from .import core
File "/usr/lib/python3/dist-packages/pipenv/core.py", line 21, in
import requests
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/init.py", line 65, in
from . import utils
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/utils.py", line 27, in
from .cookies import RequestsCookieJar, cookiejar_from_dict
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/cookies.py", line 172, in
class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
chiaminer@grapheneTest:~/chia-monitor$

Any solutions?

@stefan-lange
Copy link

stefan-lange commented May 27, 2022

There seem to be some incompatibilities with Python 3.10. I had similar issues and in the end I used 3.9 in my chia images. I'll hope Philipp has some time in the near future to make adjustments.

@nothingshocking
Copy link

Looks like part of the problem at least..

In python 10 the module MutableMapping has moved from:
collections.MutableMapping
to
collections.abc.MutableMapping

pymedusa/Medusa#10253 (comment)

@scrutinously
Copy link

I know this is old, but I managed to get it working with python 3.10 installed on my system by first deleting the chia-monitor virtualenv at .local/shar/virtualenvs/, re-running pipenv install (with errors that some dependencies didn't install) and then haphazardly updating the virtualenv after .

To upgrade the env: first source the virtual environment's activate command (for me it was source ~/.local/share/virtualenvs/chia-monitor-C_4nEwXv/bin/activate (should say (chia-monitor) on your command line) then upgrade pip inside the virtual env with python -m pip install --upgrade pip. Then you need to manually install with pip: blspy, chiapos, and chiavdf with pip install for each one. Mine worked after that.

@xporterfield
Copy link

After messing around with this for the last hour, I got it working in Ubuntu 22.04 with pipenv lock --clear

I think.

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

5 participants