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

Running Python Demo 'module' object has no attribute 'PixelBasedAdaptiveSegmenter' #20

Open
blankered opened this issue Apr 29, 2017 · 1 comment

Comments

@blankered
Copy link

I am having difficulties trying to get the Python Demo working. I had to change "from _-------- import ---------" lines in "build" to simply "from --------- import ---------" inorder to fix import errors. Unfortunately, I have gotten stuck at:

"from bgs.pbas import *" in the init.py file in the /bgs/pbas folder. When I try to run the demo file, I get

Traceback (most recent call last):
  File "./demo.py", line 17, in <module>
    segmenter = pbas.PixelBasedAdaptiveSegmenter()
AttributeError: 'module' object has no attribute 'PixelBasedAdaptiveSegmenter'

I am not sure how to debug this issue.

@cygerts
Copy link

cygerts commented Mar 25, 2018

You need to correctly install BGS library https://github.com/andrewssobral/bgslibrary. Firstly just run BGS library demo.
Then import bgs into your code and it should load this method (you will just need to create empty "config" folder in project directory)

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