pkgcore / pychroot

a python library and cli tool that simplify chroot handling
https://pkgcore.github.io/pychroot/
BSD 3-Clause "New" or "Revised" License
32 stars 7 forks source link

Can't import Chroot with version 0.10.4 #34

Closed ikus060 closed 3 years ago

ikus060 commented 3 years ago
$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pychroot import Chroot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/pychroot/__init__.py", line 6, in <module>
    from .base import Chroot
  File "/usr/local/lib/python3.7/dist-packages/pychroot/base.py", line 42
    def __init__(self, path, /, *, log=None, mountpoints=(), hostname=None, skip_chdir=False):
                             ^
SyntaxError: invalid syntax
>>> from pychroot import Chroot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/pychroot/__init__.py", line 6, in <module>
    from .base import Chroot
  File "/usr/local/lib/python3.7/dist-packages/pychroot/base.py", line 42
    def __init__(self, path, /, *, log=None, mountpoints=(), hostname=None, skip_chdir=False):

The same is working fine with 0.10.3

radhermit commented 3 years ago

Looks like I forgot to add it to the news, but python 3.6 and 3.7 support has been dropped.