qinglew / PCN-PyTorch

Implementation of PCN(Point Completion Network) in PyTorch.
141 stars 33 forks source link

Installation of Imath can't be through pip? #16

Closed MarioCavero closed 2 years ago

MarioCavero commented 2 years ago

I was wondering if pip install Imath is the same as the Imath library used for this project. Posted an issue already in the Imath github from AcademySoftwareFoundation. You can check the issue there as it is more complete and with more information.

Traceback (most recent call last):
  File "process_exr.py", line 25, in <module>
    import Imath
ModuleNotFoundError: No module named 'Imath'

Installing it via pip, in a conda environment.

 python -mpip install Imath
Requirement already satisfied: Imath in /home/mario/anaconda3/envs/pcntorch/lib/python3.7/site-packages (0.0.1)

When seeing that this module is saved with lowercase, I changed the import to lowercase, having a different error:

Traceback (most recent call last):
  File "process_exr.py", line 25, in <module>
    import imath
  File "/home/mario/anaconda3/envs/pcntorch/lib/python3.7/site-packages/imath/__init__.py", line 14, in <module>
    from __lib__ import *
ModuleNotFoundError: No module named '__lib__'

My guess is that pip install imath installs a module, which is not the same as Imath from AcademySoftwareFoundation. From my understanding and reading the installation.md, I can see that this module needs to be compiled and built (with the proper python flags as it's a C++ library with python compatibility).

It would be great to know how did you install it in order to finally create my own dataset and train the model!