ModuleNotFoundError: No module named 'handler'
Closed this issue · 2 comments
Hello, I've got an error like this when running "
(Env_PIKSI) C:\Users\Adhitya\Documents\GNSS\GNSSPython\Env_PIKSI\piksi_tools>python -m piksi_tools.console.console
Traceback (most recent call last):
File "c:\users\adhitya\anaconda3\Lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\adhitya\anaconda3\Lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Adhitya\Documents\GNSS\GNSSPython\Env_PIKSI\piksi_tools\piksi_tools\console\console.py", line 24, in
import sbp.client as sbpc
File "C:\Users\Adhitya\Documents\GNSS\GNSSPython\Env_PIKSI\lib\site-packages\sbp\client_init.py", line 11, in
from handler import Handler
ModuleNotFoundError: No module named 'handler'
How to resolve this problem?
Thanks
Now, I resolved the the issue by adding "." like this:
from .handler import Handler
from .framer import Framer
from .forwarder import Forwarder
Looks like Python 3x has its own way to define the init.py
However, the issue move inside the module "Handler":
Traceback (most recent call last):
File "C:\Users\Adhitya\Anaconda3\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\Adhitya\Anaconda3\lib\runpy.py", line 109, in get_module_details
import(pkg_name)
File "C:\Users\Adhitya\Documents\GNSS\GNSSPython\Env_PIKSI\libsbp\python\sbp\client_init.py", line 11, in
from .handler import Handler
File "C:\Users\Adhitya\Documents\GNSS\GNSSPython\Env_PIKSI\libsbp\python\sbp\client\handler.py", line 18, in
from Queue import Queue
ModuleNotFoundError: No module named 'Queue'
Tried to the same things but doesn't work.
Ok, I resolved the issue by using python 2.7 version in virtualenv.