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 problems #26

Open
zeevgr2 opened this issue Sep 3, 2017 · 1 comment
Open

Python problems #26

zeevgr2 opened this issue Sep 3, 2017 · 1 comment

Comments

@zeevgr2
Copy link

zeevgr2 commented Sep 3, 2017

Using Ubuntu 16.04
Build

  1. Updated CMakeLists.txt: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=gnu++0x")
  2. From build folder: cmake -D BUILD_PYTHON_SUPPORT=ON .. and make -j4
  3. Followed README.md for python: cp -r ../python/* python/

Testing

  1. ../run_simple_vehicle_counting.sh runs OK

  2. ../run_python_demo.sh
    Traceback (most recent call last):
    File "./build/python/demo.py", line 4, in
    import analysis
    File "/home/zeev/PYTHON/SIMPLE-VEHICLE-COUNT/simple_vehicle_counting/build/python/analysis/init.py", line 6, in
    import pyboostcvconverter as pbcvt
    ImportError: No module named pyboostcvconverter

  3. Apparently __init__.py was missing in pyboostconverter folder, so entered
    touch python/pyboostcvconverter/__init__.py

  4. ../run_python_demo.sh
    PBAS()
    PixelBasedAdaptiveSegmenter()
    VehicleCouting()
    BlobTracking()
    ../run_python_demo.sh: line 4: 2089 Segmentation fault (core dumped) python ./build/python/demo.py

Any suggestions to help locate the problem?

@cygerts
Copy link

cygerts commented Apr 3, 2018

Exactly the same here, ubuntu 16.04.
(PBAS:32707): Gtk-CRITICAL **: IA__gtk_widget_new: assertion 'g_type_is_a (type, GTK_TYPE_WIDGET)' failed
../run_python_demo.sh: line 3: 32707 Segmentation fault (core dumped) python ./build/python/demo.py

Not sure where this came from, seems like it may be related to matplotlib however I have been using this lib for plotting recently and it works fine.

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

No branches or pull requests

2 participants