Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
  3. exec(code_obj, self.user_global_ns, self.user_ns)
  4. File "<ipython-input-13-dc98cd77c3bc>", line 1, in <module>
  5. from model import OpenNsfwModel, InputType
  6. File "C:\Users\nikli\Desktop\Coursera_Python\Not_Suitable_for_Work_TF\tensorflow-open_nsfw\model.py", line 259, in <module>
  7. self.weights = np.load("open_nsfw-weights.npy", encoding="latin1",allow_pickle=True).item()
  8. NameError: name 'self' is not defined
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
  14. stb = value._render_traceback_()
  15. AttributeError: 'NameError' object has no attribute '_render_traceback_'
  16.  
  17. During handling of the above exception, another exception occurred:
  18.  
  19. Traceback (most recent call last):
  20. File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 1101, in get_records
  21. return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
  22. File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 319, in wrapped
  23. return f(*args, **kwargs)
  24. File "C:\Users\nikli\Anaconda2\lib\site-packages\IPython\core\ultratb.py", line 353, in _fixed_getinnerframes
  25. records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
  26. File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 1490, in getinnerframes
  27. frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
  28. File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 1448, in getframeinfo
  29. filename = getsourcefile(frame) or getfile(frame)
  30. File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 696, in getsourcefile
  31. if getattr(getmodule(object, filename), '__loader__', None) is not None:
  32. File "C:\Users\nikli\Anaconda2\lib\inspect.py", line 733, in getmodule
  33. if ismodule(module) and hasattr(module, '__file__'):
  34. File "C:\Users\nikli\Anaconda2\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
  35. from tensorflow._api.v1 import image
  36. File "C:\Users\nikli\Anaconda2\lib\site-packages\tensorflow\__init__.py", line 44, in _load
  37. from tensorflow._api.v1 import distributions
  38. File "C:\Users\nikli\Anaconda2\lib\importlib\__init__.py", line 126, in import_module
  39. return _bootstrap._gcd_import(name[level:], package, level)
  40. File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  41. File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  42. File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
  43. File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  44. File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  45. File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  46. File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  47. ModuleNotFoundError: No module named 'tensorflow_core'
  48. ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement