question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: version Qt_5 not defined in file libQt5Xml.so.5 with link time reference

See original GitHub issue

Describe the bug I run following command to obtain the point cloud in colab demo:

ns-export pointcloud --load-config outputs/data-nerfstudio-poster/nerfacto/2022-12-13_194317/config.yml --output-dir exports/pcd/ --num-points 1000000 --remove-outliers True --estimate-normals False --use-bounding-box True --bounding-box-min -1 -1 -1 --bounding-box-max 1 1 1

But it’s showing the next error:

Traceback (most recent call last):
  File "/usr/local/bin/ns-export", line 5, in <module>
    from scripts.exporter import entrypoint
  File "/usr/local/lib/python3.8/site-packages/scripts/exporter.py", line 20, in <module>
    from nerfstudio.exporter import texture_utils, tsdf_utils
  File "/usr/local/lib/python3.8/site-packages/nerfstudio/exporter/texture_utils.py", line 36, in <module>
    from nerfstudio.exporter.exporter_utils import Mesh
  File "/usr/local/lib/python3.8/site-packages/nerfstudio/exporter/exporter_utils.py", line 29, in <module>
    import pymeshlab
  File "/usr/local/lib/python3.8/site-packages/pymeshlab/__init__.py", line 11, in <module>
    from .pmeshlab import *
ImportError: /usr/local/lib/python3.8/site-packages/pymeshlab/lib/libmeshlab-common.so: symbol __cxa_throw_bad_array_new_length version Qt_5 not defined in file libQt5Xml.so.5 with link time reference

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
akristoffersencommented, Dec 20, 2022

@gowriaddepalli @tojiboyevf Looks like I was able to fix the issue by recommendation from this github issue.

After training and copying down the export command, run !conda remove --force qt-main to remove conda’s version of Qt. Then run the export command in a cell as you normally would.

This might have issues with training, so I would only run this after you’ve done your model training.

2reactions
borjaturcommented, Dec 15, 2022

I was getting this same error when using latest docker image 0.1.13, finally got this fixed by building my own image as follows

FROM dromni/nerfstudio:0.1.13
USER root
RUN apt remove libqt* qt* -y
USER user

EDIT: BTW this breaks the command ns-process-data, I was only interested in training though

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Qt_5 not defined in file libQt5Core.so.5 with link time ...
I went into the /usr/lib/x86_64-linux-gnu folder and both the libQt5Xml.so.5 and libQt5Core.so.5 files are there. However, they are .so files ...
Read more >
version Qt_5 not defined in file libQt5Gui.so.5 with link time ...
Hi,when I run examplepython example_baxter_pick_and_pass.py I got the error: ImportError: /home/hetolin/vrep/libv_rep.so.1: symbol ...
Read more >
Error on execution -version `Qt_5' not found required by
Issue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu from distro which ld will use by default.
Read more >
version Qt_5 not defined in file libQt5Core.so.5 with link time ...
version Qt_5 not defined in file libQt5Core.so.5 with link time reference ... ImportError: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: symbol ...
Read more >
Ubuntu 18.4 libQt5Core.so.5: cannot open shared object file
For me, the libqt5gui5 package was already installed. I tried reinstalling like in the other answer, but still got the error:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found