From: arkhan--- via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 47920@debbugs.gnu.org
Subject: bug#47920: AttributeError: 'PosixPath' object has no attribute 'read_text'
Date: Tue, 20 Apr 2021 20:29:23 +0000 [thread overview]
Message-ID: <6faa4d44f72c1ba35038c3e6f2e0e014@disroot.org> (raw)
Greetings, in the last update some python packages were broken, such as docker-compose, giving the
following error:
Traceback (most recent call last):
File "/gnu/store/rnbsmwmk06kxn899ckvy4pprvg9ypsrs-docker-compose-1.25.4/bin/.docker-compose-real", line 11, in <module>
load_entry_point('docker-compose==1.25.4', 'console_scripts', 'docker-compose')()
File "/gnu/store/v1l6cm8aa47zsxvjjmzd5rpdbbslzpc8-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/gnu/store/v1l6cm8aa47zsxvjjmzd5rpdbbslzpc8-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/gnu/store/v1l6cm8aa47zsxvjjmzd5rpdbbslzpc8-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/gnu/store/v1l6cm8aa47zsxvjjmzd5rpdbbslzpc8-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/gnu/store/rnbsmwmk06kxn899ckvy4pprvg9ypsrs-docker-compose-1.25.4/lib/python3.8/site-packages/compose/cli/main.py", line 24, in <module>
from ..config import ConfigurationError
File "/gnu/store/rnbsmwmk06kxn899ckvy4pprvg9ypsrs-docker-compose-1.25.4/lib/python3.8/site-packages/compose/config/__init__.py", line 6, in <module>
from .config import ConfigurationError
File "/gnu/store/rnbsmwmk06kxn899ckvy4pprvg9ypsrs-docker-compose-1.25.4/lib/python3.8/site-packages/compose/config/config.py", line 51, in <module>
from .validation import match_named_volumes
File "/gnu/store/rnbsmwmk06kxn899ckvy4pprvg9ypsrs-docker-compose-1.25.4/lib/python3.8/site-packages/compose/config/validation.py", line 12, in <module>
from jsonschema import Draft4Validator
File "/gnu/store/v0i3hq0nmdzydfix8jvjl69367zaz0zz-python-jsonschema-3.2.0/lib/python3.8/site-packages/jsonschema/__init__.py", line 34, in <module>
__version__ = metadata.version("jsonschema")
File "/gnu/store/rqy4flv8v7mp9994bjh20amk1hfj9xvs-python-3.8.2/lib/python3.8/importlib/metadata.py", line 531, in version
return distribution(distribution_name).version
File "/gnu/store/rqy4flv8v7mp9994bjh20amk1hfj9xvs-python-3.8.2/lib/python3.8/importlib/metadata.py", line 236, in version
return self.metadata['Version']
File "/gnu/store/rqy4flv8v7mp9994bjh20amk1hfj9xvs-python-3.8.2/lib/python3.8/importlib/metadata.py", line 224, in metadata
self.read_text('METADATA')
File "/gnu/store/rqy4flv8v7mp9994bjh20amk1hfj9xvs-python-3.8.2/lib/python3.8/importlib/metadata.py", line 491, in read_text
return self._path.joinpath(filename).read_text(encoding='utf-8')
AttributeError: 'PosixPath' object has no attribute 'read_text'
Thank you
next reply other threads:[~2021-04-20 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-20 20:29 arkhan--- via Bug reports for GNU Guix [this message]
2021-04-26 16:31 ` bug#47920: AttributeError: 'PosixPath' object has no attribute 'read_text' Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6faa4d44f72c1ba35038c3e6f2e0e014@disroot.org \
--to=bug-guix@gnu.org \
--cc=47920@debbugs.gnu.org \
--cc=arkhan@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).