Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

AttributeError: 'FileWrapper' object has no attribute 'fileno' #39

Description

@papoteur-mga

I'm trying this basic example:

from pychroot import Chroot
with Chroot("/home/yves/mock/lib/mageia-cauldron-x86_64/root"):
    pass

But I get:

Running script: "petit_test.py"
Traceback (most recent call last):
  File "petit_test.py", line 2, in <module>
    with Chroot("/home/yves/mock/lib/mageia-cauldron-x86_64/root"):
  File "/usr/lib/python3.10/site-packages/snakeoil/contexts.py", line 165, in __exit__
    raise exc
AttributeError: 'FileWrapper' object has no attribute 'fileno'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions