-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: numpy.core.multiarray failed to import #54
Comments
I'm also getting the same issue. It seems to be related to |
Would it be possible for you to share the NumPy version and the trimesh version in your environment? |
All I did to setup the environment was clone this repo and follow the instructions on the readme. This is a portion of the response after creating a new environment using
So this script updates numpy from 1.15.4 to 1.18 and rtree to 0.9.4. Skimage gets updated from 0.14 to 0.16.2 as well before trimesh is installed via pip. When I open up an interpreter and look at the After all this, I get exactly the same issue as @yuyingyeh when attempting to run
yet another dependency issue. Seems to me that Trimesh and its evolved dependencies are indeed causing the issue. |
I just updated the install_trimesh.sh script and tested it with a new environment. It should be working now.
Also please make sure you have CUDA<10 due to the pytorch version we are using. |
Hi again, all the build scripts and environment setup steps seem to be ok, but I still get the following issue when trying to test the whole reconstruction pipeline using
I'm kind of at a loss as to what's going on. I have CUDA 9.0 as well. |
I currently do not have cuda9.0; I'll get back to you once I setup the
environment.
Have you cleaned the previous build and rebuild the cuda kernels though?
…On Thu, Feb 20, 2020, 7:49 PM skamano ***@***.***> wrote:
Hi again, all the build scripts and environment setup steps seem to be ok,
but I still get the following issue when trying to test the whole
reconstruction pipeline:
Testing Pipeline
==> Parsing arguments
Traceback (most recent call last):
File "test.py", line 19, in <module>
opt = options_test.parse()
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/options/options_test.py", line 44, in parse
parser, _ = get_model(net_name, test=True).add_arguments(parser)
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/models/__init__.py", line 5, in get_model
module = importlib.import_module('models.' + alias)
File "/datasets/home/73/773/skamano/.conda/envs/shaperecon/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/models/genre_full_model.py", line 5, in <module>
from models.depth_pred_with_sph_inpaint import Net as Depth_inpaint_net
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/models/depth_pred_with_sph_inpaint.py", line 4, in <module>
from models.marrnet1 import Model as DepthModel
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/models/marrnet1.py", line 8, in <module>
from .marrnetbase import MarrnetBaseModel
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/models/marrnetbase.py", line 7, in <module>
from toolbox.cam_bp.cam_bp.functions import CameraBackProjection
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/toolbox/cam_bp/cam_bp/functions/__init__.py", line 1, in <module>
from .cam_back_projection import CameraBackProjection
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/toolbox/cam_bp/cam_bp/functions/cam_back_projection.py", line 4, in <module>
from .._ext import cam_bp_lib
File "/datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/toolbox/cam_bp/cam_bp/_ext/cam_bp_lib/__init__.py", line 3, in <module>
from ._cam_bp_lib import lib as _lib, ffi as _ffi
ImportError: /datasets/home/home-02/73/773/skamano/GenRe-ShapeHD/toolbox/cam_bp/cam_bp/_ext/cam_bp_lib/_cam_bp_lib.so: undefined symbol: __cudaPopCallConfiguration
I'm kind of at a loss as to what's going on. I have CUDA 9.0 as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54?email_source=notifications&email_token=ADF4WOYJ7CC2IOGBQQWCVG3RD4QIJA5CNFSM4KUFNFH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMRDLVA#issuecomment-589444564>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADF4WO7EH2RYGSTVU5VSJHTRD4QIJANCNFSM4KUFNFHQ>
.
|
Yeah I just tried it right now, unfortunately with the same results. The issue may be with the docker image I've been using. The machine comes with CUDA 10 installed, but the conda environment uses CUDA 9, this case is pretty similar. I'll try and get a new image running Ubuntu 16 + Python 3.6 + CUDA 9.0 when I can either get access to a machine with a GPU or permission to use a custom image on the server I've been using, I haven't been able to change the container I've been allowed to use. |
torchvision 0.5.0 works with Pillow 7: |
@hugovk sure, but we never tested with this version. At the time of this project, we used 0.2.1 as stated in the environment.yml file. |
I just tried running the code, and I'm able to get the test script to finally start running so everything seems good build-wise, but the machine running this code must have CUDA 9.0 installed. It won't work if the machine has CUDA 10 since it seems like the dependencies leak out of the conda environment. I also ran into another issue while attempting to test the general reconstruction pipeline:
The update scripts seem to mistakenly update scipy as well, but the above error was easily fixed by installing scipy 1.2.1. |
I still cannot run
./build_toolbox.sh
to build the environment after checking #40.#40 suggests to check
PYTHONPATH
, however, in this post it said that Anaconda doesn't usePYTHONPATH
.I have tested the code on two different machines with Ubuntu 18.04 using Anaconda, but they came into same error messages. Could you help me solve this problem? Thanks.
The text was updated successfully, but these errors were encountered: