autonomousvision / occupancy_networks

This repository contains the code for the paper "Occupancy Networks - Learning 3D Reconstruction in Function Space"
https://avg.is.tuebingen.mpg.de/publications/occupancy-networks
MIT License
1.51k stars 292 forks source link

compiler error: AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? #131

Open zhangzjjjjjj opened 7 months ago

zhangzjjjjjj commented 7 months ago

I have a problem when run "python setup.py build_ext --inplace"

Traceback (most recent call last):
  File "/home/zhangzj/open_source/occupancy_networks/setup.py", line 2, in <module>
    from setuptools import setup
  File "/home/zhangzj/anaconda3/envs/mesh_funcspace/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
    import setuptools.version
  File "/home/zhangzj/anaconda3/envs/mesh_funcspace/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>    import pkg_resources
  File "/home/zhangzj/anaconda3/envs/mesh_funcspace/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2178, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?