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

LPMP installation broken #6

Open
anjany opened this issue Apr 28, 2021 · 2 comments
Open

LPMP installation broken #6

anjany opened this issue Apr 28, 2021 · 2 comments

Comments

@anjany
Copy link

anjany commented Apr 28, 2021

Hello!

The LPMP installation seems to be broken. I've tried pipenv install on your repo, pip install for LPMP, and building LPMP using CMake. None of them work.

For the first two cases, I get the following error:

Command "git submodule update --init --recursive -q" failed with error code 1 in /tmp/requirementslibZRlYwZ/lpmp_py

For the third, (after adding the installation to $PATH and all), I get a module-not-found error (see here):

File "/home/Developer/my_projects/spine/landmark_detection/blackbox-deep-graph-matching/LPMP/lpmp_py/raw_solvers.py", line 2, in <module>
    import bindings.graph_matching_py as gm
ModuleNotFoundError: No module named 'bindings'

Would you happen to have any suggestions or archived version of LMPM that work?

P.S: LPMP seems to have several installation issues without responses. Hence giving it a shot here. :)

@zzhang1987
Copy link

I have also run into problems of LPMP, but the problems is different. In the current master of LPMP, I have installed it via pip install. However, it says that ModuleNotFoundError: No module named 'lpmp_py'.

Then I dig into it a bit, and found that the installed files are

root@2051e0be4eb5:/opt/conda/lib/python3.6/site-packages# ls -l lpmp*
lpmp_gm:
total 14
-rw-r--r-- 1 root root 224 Oct 4 08:26 init.py
drwxr-xr-x 2 root root 4 Oct 4 08:26 pycache
-rw-r--r-- 1 root root 3741 Oct 4 08:26 raw_solvers.py

lpmp_ldp:
total 14
-rw-r--r-- 1 root root 270 Oct 4 08:26 init.py
drwxr-xr-x 2 root root 4 Oct 4 08:26 pycache
-rw-r--r-- 1 root root 3742 Oct 4 08:26 raw_solvers.py

lpmp_mc:
total 44
-rw-r--r-- 1 root root 241 Oct 4 08:26 init.py
drwxr-xr-x 2 root root 6 Oct 4 08:26 pycache
-rw-r--r-- 1 root root 10099 Oct 4 08:26 multicut.py
-rw-r--r-- 1 root root 1973 Oct 4 08:26 raw_solvers.py
-rw-r--r-- 1 root root 1214 Oct 4 08:26 utils.py

lpmp_py-0.0.1.dist-info:
total 40
-rw-r--r-- 1 root root 4 Oct 4 08:26 INSTALLER
-rw-r--r-- 1 root root 243 Oct 4 08:26 METADATA
-rw-r--r-- 1 root root 2299 Oct 4 08:26 RECORD
-rw-r--r-- 1 root root 0 Oct 4 08:26 REQUESTED
-rw-r--r-- 1 root root 104 Oct 4 08:26 WHEEL
-rw-r--r-- 1 root root 134 Oct 4 08:26 direct_url.json
-rw-r--r-- 1 root root 141 Oct 4 08:26 top_level.txt

Also torch_wrappers are missing.

Would you please help to solve this problem.

@amf272
Copy link

amf272 commented Dec 14, 2021

Hi,
I was able to get a version of lpmp_py compatible with deep graph matching by installing this specific commit mrolinek/LPMP@9fd6211 from mrolinek's branch (basically the commit on the day mrolinek made this comment LPMP/LPMP#15 (comment)).
python3 -m pip install git+ssh://git@github.com/mrolinek/lpmp.git@9fd6211c77a14beeb68cbc3a98e1b318e614c493 --upgrade

I haven't tested it fully so I am not sure if all functionality in this codebase will work but at least a lot of the training components work on my end.

I think if you are building from source you can clone the repo and checkout that commit.

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