Closed i0ntempest closed 4 years ago
Looks like the required python3 symbols weren't linked.
Can you try if changing PKGCONFIG += python3
to PKGCONFIG += python3-embed
helps?
Thanks with some tinkering it now builds (I had to manually provide python library paths), but it doesnt launch:
$ /Applications/MacPorts/Cutter.app/Contents/MacOS/Cutter
qt.qpa.fonts: Populating font family aliases took 238 ms. Replace uses of missing font family "Sans-serif" with one that exists to avoid this cost.
Setting PYTHONHOME = "/Applications/MacPorts/Cutter.app/Contents/MacOS" for macOS Application Bundle.
PYTHONHOME = "/Applications/MacPorts/Cutter.app/Contents/MacOS"
Python path configuration:
PYTHONHOME = '/Applications/MacPorts/Cutter.app/Contents/MacOS'
PYTHONPATH = (not set)
program name = 'python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/Applications/MacPorts/Cutter.app/Contents/MacOS/Cutter'
sys.base_prefix = '/Applications/MacPorts/Cutter.app/Contents/MacOS'
sys.base_exec_prefix = '/Applications/MacPorts/Cutter.app/Contents/MacOS'
sys.executable = '/Applications/MacPorts/Cutter.app/Contents/MacOS/Cutter'
sys.prefix = '/Applications/MacPorts/Cutter.app/Contents/MacOS'
sys.exec_prefix = '/Applications/MacPorts/Cutter.app/Contents/MacOS'
sys.path = [
'/Applications/MacPorts/Cutter.app/Contents/MacOS/lib/python38.zip',
'/Applications/MacPorts/Cutter.app/Contents/MacOS/lib/python3.8',
'/Applications/MacPorts/Cutter.app/Contents/MacOS/lib/python3.8/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x0000000117eaedc0 (most recent call first):
<no Python frame>
Use --pythonhome to point to MacPorts python does work, but is there a way to make it use that python installation by default? I tried changing the paths in PythonManager.cpp, the path does change but the program still crashes.
Environment information
Describe the bug When building with MacPorts installed Python (tried 3.6 to 3.8) and pyside2 and both python feature switches on, I get symbol not found errors:
Complete build log: main.log
To Reproduce
Steps to reproduce the behavior:
Expected behavior It should successfully build
Screenshots
Additional context