andreinechaev / nvcc4jupyter

A plugin for Jupyter Notebook to run CUDA C/C++ code
MIT License
200 stars 87 forks source link

ModuleNotFoundError: No module named 'nvcc_plugin' #25

Closed ekagra-ranjan closed 9 months ago

ekagra-ranjan commented 9 months ago

Hi!

I am running the he following to load enable colab to run cuda:

!nvcc --version
!pip install git+https://github.com/andreinechaev/nvcc4jupyter.git
%load_ext nvcc_plugin

It was working fine till yesterday and today I come across this issue. I see someone else also facing this issue today.

Error

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-2-5df49c27db81>](https://localhost:8080/#) in <cell line: 1>()
----> 1 get_ipython().run_line_magic('load_ext', 'nvcc_plugin')

7 frames
<decorator-gen-57> in load_ext(self, module_str)

/usr/lib/python3.10/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)

ModuleNotFoundError: No module named 'nvcc_plugin'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Has something changed? Thank you!

Barenya255 commented 9 months ago

%load_ext nvcc_plugin This should be %load_ext nvcc4jupyter, as is in the Readme.

cosminc98 commented 9 months ago

Just like @Barenya255 said, the API was updated recently. This particular change was made to not have to remember the "nvcc_plugin" name as well as the name of the package "nvcc4jupyter" (now you only need to know the package name). Also, you can install from pypi directly by running:

pip install nvcc4jupyter
ekagra-ranjan commented 9 months ago

Thank you for the help!