mycroft-precise icon indicating copy to clipboard operation
mycroft-precise copied to clipboard

Raspberry Pi4 Buster precise-listen python 3.7 'typing' AttributeError

Open varungujjar opened this issue 5 years ago • 1 comments

Although 'precise-listen' and 'precise-collect' works on pytthon 3.6.x having trouble running it on python 3.7 heres the error.. seems theres something not right with typing package of python also was able to install the requirements.txt.

What have I tried after doing a little google: uninstall typing 3.6.6 and install 3.7 for python 3.7

still no luck :(

Traceback (most recent call last): File "/home/pi/env/bin/precise-listen", line 11, in load_entry_point('mycroft-precise==0.3.0', 'console_scripts', 'precise-listen')() File "/home/pi/env/lib/python3.7/site-packages/pkg_resources/init.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/pi/env/lib/python3.7/site-packages/pkg_resources/init.py", line 2854, in load_entry_point return ep.load() File "/home/pi/env/lib/python3.7/site-packages/pkg_resources/init.py", line 2445, in load return self.resolve() File "/home/pi/env/lib/python3.7/site-packages/pkg_resources/init.py", line 2451, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/home/pi/env/lib/python3.7/site-packages/mycroft_precise-0.3.0-py3.7.egg/precise/scripts/listen.py", line 24, in from precise.network_runner import Listener File "/home/pi/env/lib/python3.7/site-packages/mycroft_precise-0.3.0-py3.7.egg/precise/network_runner.py", line 18, in from typing import * File "/home/pi/env/lib/python3.7/site-packages/typing.py", line 1356, in class Callable(extra=collections_abc.Callable, metaclass=CallableMeta): File "/home/pi/env/lib/python3.7/site-packages/typing.py", line 1004, in new self._abc_registry = extra._abc_registry AttributeError: type object 'Callable' has no attribute '_abc_registry'

varungujjar avatar Feb 21 '20 06:02 varungujjar

ok so i upgraded my tensorflow from 1.13 --> 1.14 and also upgraded my keras ->2.3.1 and now it works fine.

varungujjar avatar Feb 21 '20 06:02 varungujjar