Closed kkwilllo closed 3 years ago
Could you please also let me know whether the same crash happens when you put "import ccapi" in a .py file and execute that file with python? Thank you.
yes same situation even i run as a file
below is more error message, when i use previous console execute method:
Python 3.6.13 |Anaconda, Inc.| (default, Feb 23 2021, 12:58:59)
[GCC Clang 10.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import faulthandler; faulthandler.enable()
>>> import ccapi
Fatal Python error: Segmentation fault
Current thread 0x0000000114c1ce00 (most recent call first):
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 922 in create_module
File "<frozen importlib._bootstrap>", line 571 in module_from_spec
File "<frozen importlib._bootstrap>", line 658 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/Users/macuser/miniconda3/envs/py36/lib/python3.6/site-packages/ccapi.py", line 15 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "<stdin>", line 1 in <module>
zsh: segmentation fault python
May i know your testing envrionment?
I used Mac, cmake 3.19, SWIG 4.0, and Python 3.7. Join us on Discord https://discord.gg/b5EKcp9s8T and friend me. I noticed that you built the project with Python 3.5 and ran it with 3.6: what if you built and ran it with the same minor version: remember to conda remove ccapi, then rm -rf * the build folder, to start fresh. :)
Hopefully you've resolved the issue. Do feel free to reopen it at any time if it comes back.
This could happen if the macOS version is relatively new but and Python version is relatively old. The solution is to upgrade Python version.
Hi thanks for your advice What do u mean by update python version? using python 3.7/3.6 in conda/venv still not work
At least Python 3.8
Describe the bug I am trying to build and run the service with the use of python, below is the log of build and run Log
And below is the sh script i used to run the installation: python-version-unix.sh
python-version-unix.cmake