RHEL 8 and its forks like AlmaLinux release 8.6 (Sky Tiger) have Python 3.6.8 as a defaut install. Would be great to have an opportunity to install pacparser directly from pip.
Currently the attempt to install the package fails with
[root@f7fccebbe896 pacparser]# make -C src pymod
make: Entering directory '/root/git/pacparser/src'
cd pymod && ARCHFLAGS="" python3 setup.py build
/root/git/pacparser/.git
Traceback (most recent call last):
File "setup.py", line 156, in <module>
main()
File "/usr/lib64/python3.6/unittest/mock.py", line 1183, in patched
return func(*args, **keywargs)
File "setup.py", line 143, in main
version = pacparser_version(),
File "setup.py", line 67, in pacparser_version
return git_version()
File "setup.py", line 61, in git_version
text=True
File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib64/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'text'
make: *** [Makefile:130: pymod] Error 1
make: Leaving directory '/root/git/pacparser/src'
That can be fixed (in my environment) by replacing text=True in setup.py to encoding='utf8' and recompiling and installing and the pacparser seems to work without an issue.
RHEL 8 and its forks like AlmaLinux release 8.6 (Sky Tiger) have Python 3.6.8 as a defaut install. Would be great to have an opportunity to install pacparser directly from pip.
Currently the attempt to install the package fails with
and the compilation returns this:
That can be fixed (in my environment) by replacing text=True in setup.py to encoding='utf8' and recompiling and installing and the pacparser seems to work without an issue.
Marcel