VCityTeam / py3dtilers

Tilers accepting various input formats (OBJ, 3DCity databases, GeoJson, IFC) and producing 3DTiles tilesets.
GNU Lesser General Public License v2.1
199 stars 52 forks source link

ImportError: cannot import name 'BoundingVolumeBox' from 'py3dtiles' #149

Open q-chen95 opened 1 year ago

q-chen95 commented 1 year ago

I have already install py3dtiles and other require, but when i run test_objTiler.py, an error occurs. can you help me?thanks

LorenzoMarnat commented 1 year ago

Hello, it may be due to an old version of py3dtiles, a package used by py3dtilers.

You should try to either:

Make a fresh install of py3dtilers

Follow installation notes but add --no-cache-dir in the pip install:

pip install -e . --no-cache-dir

Uninstall py3dtiles and get a newer version

pip uninstall py3dtiles
pip install -e .
q-chen95 commented 1 year ago

thank you!l solved "cannot import name 'BoundingVolumeBox' from 'py3dtiles'" when i used py3dtiles5.0. but a new problem occurs "ImportError: cannot import name 'GlTFMaterial' from 'py3dtiles'" i search GlTFMaterial in guidance and py,but not found.

LorenzoMarnat commented 1 year ago

Hello,

I think pip installed Oslandia's Py3DTiles, while we use our own fork of Py3DTiles in Py3DTilers. Once you have uninstalled Py3DTiles, ensure pip is installing Py3DTiles from our GitHub fork, with Tiler branch (as specified in the setup.py). The best way to ensure that is to make a fresh Py3DTilers install