Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
- exec(code_obj, self.user_global_ns, self.user_ns)
- File "<ipython-input-13-dc98cd77c3bc>", line 1, in <module>
- from model import OpenNsfwModel, InputType
- File "C:\Users\nikli\Desktop\Coursera_Python\Not_Suitable_for_Work_TF\tensorflow-open_nsfw\model.py", line 259, in <module>
- self.weights = np.load("open_nsfw-weights.npy", encoding="latin1",allow_pickle=True).item()
- NameError: name 'self' is not defined
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
- stb = value._render_traceback_()
- AttributeError: 'NameError' object has no attribute '_render_traceback_'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 1101, in get_records
- return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
- File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 319, in wrapped
- return f(*args, **kwargs)
- File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 353, in _fixed_getinnerframes
- records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
- File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 1490, in getinnerframes
- frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
- File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 1448, in getframeinfo
- filename = getsourcefile(frame) or getfile(frame)
- File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 696, in getsourcefile
- if getattr(getmodule(object, filename), '__loader__', None) is not None:
- File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 733, in getmodule
- if ismodule(module) and hasattr(module, '__file__'):
- File "C:\Users\nikli\Anaconda2\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
- from tensorflow._api.v1 import image
- File "C:\Users\nikli\Anaconda2\lib\site-packages\tensorflow\__init__.py", line 44, in _load
- from tensorflow._api.v1 import distributions
- File "C:\Users\nikli\Anaconda2\lib\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 941, in _find_and_load_unlocked
- File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
- File "<frozen importlib._bootstrap>", line 994, in _gcd_import
- File "<frozen importlib._bootstrap>", line 971, in _find_and_load
- File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
- ModuleNotFoundError: No module named 'tensorflow_core'
- ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement