pokken - No module named 'google' #2

Closed
opened 2023-02-22 08:41:27 +00:00 by KamijouMarisa · 3 comments
D:\ARTEMiS>python index.py
ARTEMiS starting in develop mode
pokken - No module named 'google'
Traceback (most recent call last):
  File "D:\ARTEMiS\index.py", line 104, in <module>
    dispatcher = HttpDispatcher(cfg, args.config)
  File "D:\ARTEMiS\index.py", line 21, in __init__
    self.allnet = AllnetServlet(cfg, config_dir)
  File "D:\ARTEMiS\core\allnet.py", line 44, in __init__
    plugins = Utils.get_all_titles()
  File "D:\ARTEMiS\core\utils.py", line 16, in get_all_titles
    mod = importlib.import_module(f"titles.{dir}")
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\ARTEMiS\titles\pokken\__init__.py", line 1, in <module>
    from titles.pokken.index import PokkenServlet
  File "D:\ARTEMiS\titles\pokken\index.py", line 7, in <module>
    from titles.pokken.proto import jackal_pb2
  File "D:\ARTEMiS\titles\pokken\proto\jackal_pb2.py", line 5, in <module>
    from google.protobuf.internal import builder as _builder
ModuleNotFoundError: No module named 'google'
``` D:\ARTEMiS>python index.py ARTEMiS starting in develop mode pokken - No module named 'google' Traceback (most recent call last): File "D:\ARTEMiS\index.py", line 104, in <module> dispatcher = HttpDispatcher(cfg, args.config) File "D:\ARTEMiS\index.py", line 21, in __init__ self.allnet = AllnetServlet(cfg, config_dir) File "D:\ARTEMiS\core\allnet.py", line 44, in __init__ plugins = Utils.get_all_titles() File "D:\ARTEMiS\core\utils.py", line 16, in get_all_titles mod = importlib.import_module(f"titles.{dir}") File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\ARTEMiS\titles\pokken\__init__.py", line 1, in <module> from titles.pokken.index import PokkenServlet File "D:\ARTEMiS\titles\pokken\index.py", line 7, in <module> from titles.pokken.proto import jackal_pb2 File "D:\ARTEMiS\titles\pokken\proto\jackal_pb2.py", line 5, in <module> from google.protobuf.internal import builder as _builder ModuleNotFoundError: No module named 'google' ```
Contributor

Execute

pip install protobuf
Execute ```sh pip install protobuf ```
Author

Execute

pip install protobuf

The problem has been solved.
Please add protobuf to requirements_win.txt.
I will close this issue.

> Execute > > ```sh > pip install protobuf > ``` The problem has been solved. Please add protobuf to requirements_win.txt. I will close this issue.
Owner

Yeah that's my bad for not realizing protobuf was missing from the requirements, I'll add it now. Thank you for the report

Yeah that's my bad for not realizing protobuf was missing from the requirements, I'll add it now. Thank you for the report
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hay1tsme/artemis#2
No description provided.