Skip to content
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

import RKNN inside Jupiter fails with the message 'NameError: name 'exit' is not defined' #342

Open
nassimus26 opened this issue Oct 13, 2024 · 1 comment

Comments

@nassimus26
Copy link

nassimus26 commented Oct 13, 2024

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()

Screenshot from 2024-10-13 23-13-07
Screenshot from 2024-10-13 23-20-12

@nassimus26 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
@hellobo2802
Copy link

hellobo2802 commented Nov 28, 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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants