Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

pointnet2 installation failed #64

Closed
Leerw opened this issue Dec 13, 2019 · 7 comments
Closed

pointnet2 installation failed #64

Leerw opened this issue Dec 13, 2019 · 7 comments

Comments

@Leerw
Copy link

Leerw commented Dec 13, 2019

After I succeed running python setup.py install, I failed to run python models/votenet.py as follows:

Traceback (most recent call last):
  File "/mnt/8T/leerw/code/votenet/pointnet2/pointnet2_utils.py", line 26, in <module>
    import pointnet2._ext as _ext
ImportError: dynamic module does not define module export function (PyInit__ext)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "models/votenet.py", line 19, in <module>
    from backbone_module import Pointnet2Backbone
  File "/mnt/8T/leerw/code/votenet/models/backbone_module.py", line 19, in <module>
    from pointnet2_modules import PointnetSAModuleVotes, PointnetFPModule
  File "/mnt/8T/leerw/code/votenet/pointnet2/pointnet2_modules.py", line 21, in <module>
    import pointnet2_utils
  File "/mnt/8T/leerw/code/votenet/pointnet2/pointnet2_utils.py", line 30, in <module>
    "Could not import _ext module.\n"
ImportError: Could not import _ext module.
Please see the setup instructions in the README: https://github.com/erikwijmans/Pointnet2_PyTorch/blob/master/README.rst

I can import torch; import pointnet2 without errors, but not when import torch; import pointnet2._ext as _ext

@StevenZzz07
Copy link

Hi! I am faced with exactly the same issue as yours. Installing PyTorch and Tensorflow, then running python setup.py install. When it comes to the next steps, the same bugs come out: "Could not import _ext module.\n". Have you solved this problems? Maybe we can discuss about it.

@StevenZzz07
Copy link

Hello, i have solved out this problem. I used another platform with GPU 1660ti and CUDA10.0, then the problem disappear. So the bug may be related to the CUDA version i guess.

@Leerw
Copy link
Author

Leerw commented Dec 15, 2019

@StevenZzz07 Yes, I solved this issue, I have tensorflow-gpu==1.14 and pytorch==1.1.0 and CUDA 10.0 installed, I fixed it by install original Pointnet_Pytorch code the repo borrowed from and set the PYTHONPATH=folder of Pointnet_Pytorch. But I still do not know what is wrong with python setup.py install

@phy12321
Copy link

I met this error too. The problem in my case is that the python i use in command is system python,which locate in /usr/local/bin/... ,but i run my code in conda env. so i ran this :
/home/anaconda/envs/envs_name/bin/python setup.py install
then check if pointnet2 is installed in my conda envs:
conda list
image
and run :
python models/votenet.py
it works!

@mojoee
Copy link

mojoee commented Feb 26, 2020

For me, the problem was solved by installing the correct versions of tensorflow(1.14) and pytorch (1.1). However, another problem popped up afterwards.

@Leerw Leerw closed this as completed Feb 27, 2020
@ch-sa
Copy link

ch-sa commented Jul 3, 2020

For me the problem vanished after upgrading from python 3.6.8 to python 3.7.7.

@bigeyesung
Copy link

I have a similar problem. Solved by install CUDA 10.0. tensorflow1.14, pytorch 1.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants