[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python demo.py zsh: segmentation fault #195

Open
jaweii opened this issue Nov 6, 2020 · 2 comments
Open

python demo.py zsh: segmentation fault #195

jaweii opened this issue Nov 6, 2020 · 2 comments

Comments

@jaweii
Copy link
jaweii commented Nov 6, 2020

sorry i'm not a native english speaker, so let me describe the problem simply:

git clone --recursive https://github.com/andrewssobral/bgslibrary.git bgs
cd bgs/build
python setup.py build

...
[100%] Built target bgs_python
Moving built python module
python setup.py install

python setup.py install

running install
running bdist_egg
running egg_info
creating pybgs.egg-info
writing pybgs.egg-info/PKG-INFO
writing dependency_links to pybgs.egg-info/dependency_links.txt
writing top-level names to pybgs.egg-info/top_level.txt
writing manifest file 'pybgs.egg-info/SOURCES.txt'
reading manifest file 'pybgs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'src'
no previously-included directories found matching 'wrapper'
warning: no files found matching '.' under directory 'pybgs'
no previously-included directories found matching 'build'
no previously-included directories found matching 'dist'
no previously-included directories found matching 'tools'
no previously-included directories found matching 'test'
no previously-included directories found matching 'gui'
no previously-included directories found matching 'examples'
no previously-included directories found matching 'docs'
no previously-included directories found matching 'dataset'
no previously-included directories found matching 'config'
no previously-included directories found matching 'cmake-modules'
no previously-included directories found matching '_dist'
no previously-included directories found matching '_wiki'
no previously-included directories found matching '_opencv_cmake'
writing manifest file 'pybgs.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
Moving library files
running install_data
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/egg
copying build/lib.macosx-10.9-x86_64-3.7/pybgs.cpython-37m-darwin.so -> build/bdist.macosx-10.9-x86_64/egg
creating stub loader for pybgs.cpython-37m-darwin.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pybgs.py to pybgs.cpython-37.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pybgs.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pybgs.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pybgs.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pybgs.egg-info/not-zip-safe -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pybgs.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/pybgs-3.0.0.post2-py3.7-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing pybgs-3.0.0.post2-py3.7-macosx-10.9-x86_64.egg
creating /Users/jawei/opt/anaconda3/envs/bgs/lib/python3.7/site-packages/pybgs-3.0.0.post2-py3.7-macosx-10.9-x86_64.egg
Extracting pybgs-3.0.0.post2-py3.7-macosx-10.9-x86_64.egg to /Users/jawei/opt/anaconda3/envs/bgs/lib/python3.7/site-packages
Adding pybgs 3.0.0.post2 to easy-install.pth file
Installed /Users/jawei/opt/anaconda3/envs/bgs/lib/python3.7/site-packages/pybgs-3.0.0.post2-py3.7-macosx-10.9-x86_64.egg
Processing dependencies for pybgs==3.0.0.post2
Finished processing dependencies for pybgs==3.0.0.post2

after the installation finished, i run demo.py in conda py3.7, encounter a error like follow, i used three days to fix it, and i failed, can you give me some help please?

(bgs) jawei@jaweideMacBook-Pro bgs % python demo.py
zsh: segmentation fault  python demo.py
@catmasteryip
Copy link

same thing happened to me

@andrewssobral
Copy link
Owner

Hi @jaweii @catmasteryip , sorry for my delayed feedback.

I just released a new version of the BGSLibrary, now v3.1.0.
I tested it on Windows, Mac and Linux, both compiling the C++ library on OpenCV 3.4.7, 3.4.16 and 4.6.0.
I also tested its respective Python wrapper and GT user interface.

To install the Python Wrapper you have two ways to do it:

pip install pybgs

or

git clone --recursive https://github.com/andrewssobral/bgslibrary.git
cd bgslibrary
python setup.py build
python setup.py install

Everything is working for me, could you please check in your side if this new version fix your issues?
Thanks in advance,
Andrews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants