DeepSea
DeepSea copied to clipboard
pycache
Description of Issue/Question
[WARNING ] Failed to import runners upgrade.cpython-34. Bad magic number. If migrating from Python2 to Python3, remove all .pyc files and try again.
I've been getting the above for a while when I build and test an rpm. I imagine it's that the python3 version of the build system does not match the target system. The workaround is to manually delete the files after installation.
I believe the only reason this started was to expedite the fresh installation by having the runners precompiled. In this case, it serves no purpose since those must be regenerated locally. I suspect I am not the only one to hit this issue.
I am considering moving the py_compile lines from the Makefile into the postinstall. If this is still desired for local 'make installs', then the py_compile lines can be moved specifically to the install target. (Looking at the current master, that may be the case, but I am still getting the above message. That could mean our make targets are not cleaning properly and that I am pulling pyc files after switching from other branches.)