Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to install from the latest image - python version error? #171

Open
alexgherman opened this issue Aug 5, 2023 · 2 comments
Open

fails to install from the latest image - python version error? #171

alexgherman opened this issue Aug 5, 2023 · 2 comments
Labels

Comments

@alexgherman
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest picroft image on a raspberry pi 4, 2Gb
  2. seeing this error:
    https://paste.debian.net/1287933
  3. Tried to run dev-setup and getting the same error

Running ./start-mycroft.sh all works fine, but ./start-mycroft.sh cli fails with this:

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/pi/mycroft-core/mycroft/__init__.py", line 17, in <module>
    from mycroft.api import Api
  File "/home/pi/mycroft-core/mycroft/api/__init__.py", line 22, in <module>
    from mycroft.configuration import Configuration
  File "/home/pi/mycroft-core/mycroft/configuration/__init__.py", line 15, in <module>
    from .config import Configuration, LocalConf, RemoteConf
  File "/home/pi/mycroft-core/mycroft/configuration/config.py", line 26, in <module>
    from mycroft.util.combo_lock import ComboLock
  File "/home/pi/mycroft-core/mycroft/util/__init__.py", line 24, in <module>
    from mycroft.util.format import nice_number
  File "/home/pi/mycroft-core/mycroft/util/format.py", line 34, in <module>
    from lingua_franca import get_default_loc
ImportError: cannot import name 'get_default_loc' from 'lingua_franca' (/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/lingua_franca/__init__.py)

Looks like a python version mismatch but I might be wrong. Can anyone help? Thank you in advance.

@alexgherman alexgherman added the bug label Aug 5, 2023
@Diamantino-Op
Copy link

same here

@Diamantino-Op
Copy link

ok, fixed
Solution: clone the lingua_franca repo from github, navigate to lingua_franca in site-packages and delete every file, then put the content of the lingua_franca from the downloaded content inside the folder on the picroft, and done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants