bug#47920: AttributeError: 'PosixPath' object has no attribute 'read_text'

2021-04-26 Thread Leo Famulari
On Tue, Apr 20, 2021 at 08:29:23PM +, arkhan--- via Bug reports for GNU 
Guix wrote:
> Greetings, in the last update some python packages were broken, such as 
> docker-compose, giving the
> following error:

Thanks for the report!

By "last update", do you mean since the last `guix pull`?

If so, can you do `guix pull --list-generations` and share the
"repository URL" and "commit" of the last working generation, and the
newer failing generation?

That will help us figure out where the bug was introduced.





bug#47920: AttributeError: 'PosixPath' object has no attribute 'read_text'

2021-04-20 Thread arkhan--- via Bug reports for GNU Guix
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 
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 
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 
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 
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 
from jsonschema import Draft4Validator
  File 
"/gnu/store/v0i3hq0nmdzydfix8jvjl69367zaz0zz-python-jsonschema-3.2.0/lib/python3.8/site-packages/jsonschema/__init__.py",
 line 34, in 
__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