Problem with py36 "opt-1.pyc" files

Christer Edwards christer.edwards at gmail.com
Fri Apr 27 15:09:09 UTC 2018


There is an issue in the current (2018.3.0_1) sysutils/py-salt, specific to
py36. The "cpython-36.opt-1.pyc" files included in the pkg seem to contain
pre-patched files.

Any more experienced porters want to offer advice on how to fix this in the
port?

reproduce:
1. install py36-salt (>=2018.3.0)
2. start master/minion
3. error (/var/log/salt/{master,minion}

fix:
1. rm
/usr/local/lib/python3.6/site-packages/salt/grains/__pycache__/marathon.cpython-36.opt-1.pyc
/usr/local/lib/python3.6/site-packages/salt/grains/__pycache__/fx2.cpython-36.opt-1.pyc

I've never seen this before.

Cheers,
Christer


More information about the freebsd-ports mailing list