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

CppBLLoader cannot be imported #97

Closed
hwiedPro opened this issue May 14, 2019 · 4 comments
Closed

CppBLLoader cannot be imported #97

hwiedPro opened this issue May 14, 2019 · 4 comments
Assignees

Comments

@hwiedPro
Copy link
Contributor

Under python3 the import from ._wrapper import CppBLLoader in bolero/wrapper/__init__.py fails.
Therefore I can't create a controller instance from a dict. The config works for bolero_controller

from bolero.controller import Controller
cfg = yaml.load(open("../learning_config.yml"))
Controller(cfg)

Did I miss to install something?
exported PYTHON and CYTHON to version 3, did cmake .., make install in build, also did python3 setup.py install

@AlexanderFabisch
Copy link
Contributor

Sorry for the late reply. The wrapper needs to be configured before bolero's Python lib is installed:

bob-bootstrap learning/bolero/bolero/wrapper

Would that work?

@AlexanderFabisch
Copy link
Contributor

Some details: the subproject learning/bolero/bolero/wrapper generates a file called build_info.py. The environment variables PYTHON and CYTHON have to be defined when you build this subproject. In the next step we would actually build and install the wrapper. It is part of BOLeRo's Python packages (lerning/bolero/).

@AlexanderFabisch
Copy link
Contributor

This issue should now be fixed completely with the latest version of pybob. If you export the environment variables and run bob-envsh it should write the environment variables to your env.sh and the aliases for pybob should be called with Python 3.

Any news from your side? If not, I will assume that this issue is solved...

@hwiedPro
Copy link
Contributor Author

Great. Thanks for your help!

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

2 participants