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

AttributeError: 'IsoAccessor' object has no attribute 'realpath' #3

Open
einstein95 opened this issue Sep 27, 2022 · 1 comment
Open

Comments

@einstein95
Copy link

While attempting to replicate the example on https://pathlab.readthedocs.io/en/latest/basics.html#iso-images, I got this error (Python 3.10.7, Arch Linux)

>>> root = disc.IsoPath('/')
>>> readme = root / 'readme.txt'
>>> readme.exists()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/pathlib.py", line 1290, in exists
    self.stat()
  File "/usr/lib/python3.10/pathlib.py", line 1097, in stat
    return self._accessor.stat(self, follow_symlinks=follow_symlinks)
  File "/home/user/.local/lib/python3.10/site-packages/pathlab/iso.py", line 308, in stat
    path = path.resolve()
  File "/usr/lib/python3.10/pathlib.py", line 1077, in resolve
    s = self._accessor.realpath(self, strict=strict)
AttributeError: 'IsoAccessor' object has no attribute 'realpath'
@niemasd
Copy link

niemasd commented May 31, 2024

I'm getting this error as well in Python 3.10.12. Any solutions?

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

2 participants