uoip / g2opy

Python binding of SLAM graph optimization framework g2o
668 stars 176 forks source link

python setup.py install assertion error #69

Closed Quest2GM closed 2 years ago

Quest2GM commented 2 years ago

I am not sure whats causing this, but after running python setup.py install, I get the following error:

` File "setup.py", line 46, in variants of SLAM and BA."""

File "/home/sinarasi/.local/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs)

File "/usr/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands()

File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd)

File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run()

File "setup.py", line 21, in run assert len(lib_file) == 1

AssertionError`

Anyone come across this before?

Thanks for any help, Quest2GM

Quest2GM commented 2 years ago

Nevermind, I fixed it by doing a print debug statement in setup.py

I did a print(lib_file) and the output is '['./lib/g2o.so', './lib/g2o.cpython-36m-x86_64-linux-gnu.so']'. The array should actually only be '['./lib/g2o.cpython-36m-x86_64-linux-gnu.so']', so I just removed the first element and BOOM, problem solved