You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the standalone CLI (tested both Ubuntu and Windows) while things like --info do work, running meshtastic --nodes results in the following error:
Connected to radio
Aborting due to: No module named 'timeago.locales.en'
This was already reported some time ago here: #331.
It works fine if you do not use the standalone version, to reproduce the issue the standalone version must be used.
Considering that the ticket was closed too quickly last time, I'll try to write down a "how-to replicate" section.
Execute the downloaded file with the --info parameter (via USB or via --host ipAddr it is the same), the result should be fine
Execute the downloaded file with the --nodes parameter (via USB or via --host ipAddr it is the same) the result will be Aborting due to: No module named 'timeago.locales.en'
Build it
As per the build-and-publish-windows workflow, run in the repository:
1.1 pip uninstall meshtastic #at least i guess so, I have no clue
1.2 pip install pyinstaller
1.3 pip install -r requirements.txt
1.4 pip install .
1.5 pyinstaller -F -n meshtastic --collect-all meshtastic meshtastic/__main__.py
Now run .\dist\meshtastic.exe --nodes (windows) or .\dist\meshtastic --nodes (ubuntu)
The result should be Aborting due to: No module named 'timeago.locales.en'
If step 1.5 is slightly changed to pyinstaller -F -n meshtastic --collect-all meshtastic --add-data "%USERPROFILE%\AppData\Local\Programs\Python\Python310\Lib\site-packages\timeago\locales\en.py;timeago/locales" meshtastic/__main__.py (on windows at least) the built version works fine.
Notes
I have no idea of what I'm doing
Also might be related to hustcc/timeago#40 (comment) "Locales not imported with PyInstaller".
The text was updated successfully, but these errors were encountered:
Same here with downloaded Win standalone 2.2.22, reproduceable as per OP Scarg steps in "Downloaded version" above.
Running on:
OS Name Microsoft Windows 10 Pro
Version 10.0.19045 Build 19045
NOTE: meshtastic_windows.exe --port com12 --info returns all expexted nodes along with the rest of the expected info.
Description
When using the standalone CLI (tested both Ubuntu and Windows) while things like
--info
do work, runningmeshtastic --nodes
results in the following error:Connected to radio Aborting due to: No module named 'timeago.locales.en'
This was already reported some time ago here: #331.
It works fine if you do not use the standalone version, to reproduce the issue the standalone version must be used.
Considering that the ticket was closed too quickly last time, I'll try to write down a "how-to replicate" section.
Reproduction steps
Downloaded version
--info
parameter (via USB or via--host ipAddr
it is the same), the result should be fine--nodes
parameter (via USB or via--host ipAddr
it is the same) the result will beAborting due to: No module named 'timeago.locales.en'
Build it
1.1
pip uninstall meshtastic #at least i guess so, I have no clue
1.2
pip install pyinstaller
1.3
pip install -r requirements.txt
1.4
pip install .
1.5
pyinstaller -F -n meshtastic --collect-all meshtastic meshtastic/__main__.py
.\dist\meshtastic.exe --nodes
(windows) or.\dist\meshtastic --nodes
(ubuntu)Aborting due to: No module named 'timeago.locales.en'
If step 1.5 is slightly changed to
pyinstaller -F -n meshtastic --collect-all meshtastic --add-data "%USERPROFILE%\AppData\Local\Programs\Python\Python310\Lib\site-packages\timeago\locales\en.py;timeago/locales" meshtastic/__main__.py
(on windows at least) the built version works fine.Notes
I have no idea of what I'm doing
Also might be related to hustcc/timeago#40 (comment) "Locales not imported with PyInstaller".
The text was updated successfully, but these errors were encountered: