CGCL-codes/naturalcc

How to register the ncc variable at ncc/__init__.py.?

rebel-ly opened this issue · 6 comments

Hello, I have build and install all the required libraries. But when i try to run the 'pip install --editable ./' this command, it return the error as follow picture. I guess the reason is not register the ncc variable at 'ncc/init.py'. Thus, i want to know how to register it . on the other , if is caused by another reasons, please tell me!!

image

image
Thanks!

I have the same question

please try to install with python setup.py build_ext --inplace in the repo directory.

it is still return the same error 'status 1'
image
image

Sorry, I have never met this problem before. But from your error logs (/usr/local/cuda/bin/nvcc, no such file or directory), I think that you probably added the NVCC path into $PYTHONPATH, which is in-executable.

Solution:

  1. Please ensure you can run nvcc -V. If it fails, please reinstall CUDA (time-consuming, I recommend the 2nd solution). Otherwise, reinstall NaturalCC.
  2. Or install CUDA with conda install cudatoolkit. We developed this repo under such an environment.

image
The running for 'nvcc -V' is satisfied.
o(╥﹏╥)o

3usi9 commented

It seems the ninja build tool is missing which is required for C++ source compilation.