You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the last version with Python 3.12
The import works well in a Python file but fail in the Jupiter Notebook
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[65], line 2
1 import sys
----> 2 from rknn.api import RKNN
File ~/miniconda3/envs/ai/lib/python3.12/site-packages/rknn/api/__init__.py:1
----> 1 from rknn.api.rknn import RKNN
File ~/miniconda3/envs/ai/lib/python3.12/site-packages/rknn/api/rknn.py:7
5 from .rknn_log import set_log_level_and_file_path
6 from .rknn_platform import get_host_os_platform, get_librknn_api_require_dll_dir
----> 7 from .rknn_base import RKNNBase
8 from argparse import Namespace
10 already_imported = False
File rknn/api/rknn_base.py:24, in init rknn.api.rknn_base()
File rknn/api/graph_optimizer.py:1, in init rknn.api.graph_optimizer()
The text was updated successfully, but these errors were encountered:
nassimus26
changed the title
import RKNN inside Pycharm Jupiter Notebook fails with the message 'NameError: name 'exit' is not defined'
import RKNN inside Jupiter fails with the message 'NameError: name 'exit' is not defined'
Oct 13, 2024
Has this question been solved? I meet the same situation when I use “from rknn.api import RKNN” in google colab!
Interesting, it is used rightly before a week .
I am using the last version with Python 3.12
The import works well in a Python file but fail in the Jupiter Notebook
The text was updated successfully, but these errors were encountered: