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

Where is pbflip in python wrapper #28

Open
R-J96 opened this issue May 9, 2024 · 2 comments
Open

Where is pbflip in python wrapper #28

R-J96 opened this issue May 9, 2024 · 2 comments

Comments

@R-J96
Copy link

R-J96 commented May 9, 2024

Hi, I'm trying to get the python wrapper of this working and everything is fine except that in flip/python/flip/main.py the first import of import pbflip errors as therre's no module called that available.

This is clearly from pybind11 in main.cpp. I've installed pybind with conda and added the directory to CMakeLists.txt but it still can't resolve the imports.

Sorry if this is a dumb question but it's not clear from the documentation in the READMEs where this module's supposed to come from

@pandersson94
Copy link
Collaborator

Hi @R-J96,

Sorry to hear you're having issues with the Python wrapper. Unfortunately, I am not sure exactly what is causing your problem, but I want to help figure it out.

First off, you should not need to install pybind11 yourself. It's done automatically when you run pip install . from flip/python. Could you try uninstalling your pybind11 version and run pip install . again? Furthermore, it could be that things work differently when you do the setup from the Anaconda prompt. I haven't tried doing so -- I've only tested this from the Windows PowerShell and command prompt. Could you try setting things up and running them from any of those? The pbflip module should be created automatically when you run pip install ..

If neither of the above options help, let us know and we can dig further.

@michalfratczak
Copy link

Hey - I just had a similar problem where pbflip was not found. In my case it was a typo in installation command.
The command is pip install -r requirements.txt . and I accidentaly ommited last period. After reinstalling all works OK.

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

3 participants