Skip to content

Not compatible with Python 3.6 / 3.7 due to enum34 requirement? #232

Description

@kqchen34

If enum34 is a requirement of pyangbind, then pyangbind would not be able to support Python 3.6 / 3.7, since the lib enum34 is not compatible with Python 3.6 and later versions.

E.g. when I try to run an application in python 3.7 with pyangbind imported, I got the following error:
Traceback (most recent call last):
File "bin/generate_yang_modules", line 49, in
import app_scripts.generate_yang_modules
File "/bbnet/home/kchen34/git/bnop_driver/app_scripts/init.py", line 2, in
import("pkg_resources").declare_namespace(name)
File "/bb/bin/package/p/python3.7-venv-bnop/1.0.1+b20181029T17473333/libexec/python3.7-venv-bnop/lib/python3.7/site-packages/pkg_resources/init.py", line 24, in
import re
File "/bb/sys/package/p/python3.7-venv-bnop/1.0.1+b20181029T17473333/libexec/python3.7-venv-bnop/lib/python3.7/re.py", line 143, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions