Closed plphlpp closed 6 months ago
thanks for the report @plphlpp. It is still working fine for me (but I am on 3.10.9). Could you check the debugger output?
thanks for the report @plphlpp.
It is still working fine for me (but I am on 3.10.9).
Could you check the debugger output?
debugger output : " Error in module 'Fakeum' – no module named 'six.moves' "
and much more
Here is the debugger output in my side @giovannicoppola :
[21:03:05.676] Logging Started...
[21:03:07.246] Fakeum[Script Filter] Queuing argument ''
[21:03:07.360] Fakeum[Script Filter] Script with argv '' finished
[21:03:07.363] ERROR: Fakeum[Script Filter] Code 1: .
21:03:07 workflow.py:2093 DEBUG ---------- Fakeum (2.3.1) ----------
21:03:07 fakeum.py:228 DEBUG query=''
21:03:07 workflow.py:2114 ERROR No module named 'six.moves'
Traceback (most recent call last):
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/workflow/workflow.py", line 2107, in run
func(self)
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/fakeum.py", line 258, in main
fake_data = get_fake_data()
^^^^^^^^^^^^^^^
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/fakeum.py", line 197, in get_fake_data
names = [n for n in names if supported_type(n)]
^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/fakeum.py", line 182, in supported_type
for faker in all_fakers():
^^^^^^^^^^^^
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/fakeum.py", line 132, in all_fakers
from faker import Factory
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/__init__.py", line 2, in <module>
from faker.factory import Factory # noqa F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/factory.py", line 13, in <module>
from faker.config import DEFAULT_LOCALE, PROVIDERS, AVAILABLE_LOCALES
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/config.py", line 14, in <module>
AVAILABLE_LOCALES = find_available_locales(PROVIDERS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "//Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/utils/loading.py", line 44, in find_available_locales
provider_module = import_module(provider_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/providers/address/__init__.py", line 5, in <module>
from .. import date_time
File "//Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/faker/providers/date_time/__init__.py", line 12, in <module>
from dateutil.tz import tzlocal, tzutc
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/dateutil/tz/__init__.py", line 2, in <module>
from .tz import *
File "/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.968A2AE3-3797-4E29-A803-71C67B6A7A11/libs/dateutil/tz/tz.py", line 21, in <module>
from six.moves import _thread
ModuleNotFoundError: No module named 'six.moves'
21:03:07 workflow.py:2116 INFO for assistance, see: https://github.com/giovannicoppola/alfred-fakeum/issues
21:03:07 workflow.py:2136 DEBUG ---------- finished in 0.034s ----------
[21:03:07.364] Fakeum[Script Filter] {
"items": [
{
"title": "Error in workflow 'Fakeum'",
"subtitle": "No module named 'six.moves'",
"valid": false,
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
@anhkhoakz @plphlpp do you have other pythons installed?
(check with which -a python3
)
Yes, I've installed python and currently use pyenv as default
great, so to be able to use alfred-fakeum
you will need to specify the complete path to the system python, as below
I've changed it, but it's still had error.
you changed to homebrew, you need to change to system python
I've also changed to the pyenv, but it's still had the error
@anhkhoakz you need to change it to the system python, please check the screenshot I sent
Oh, yes, thank you very much, it fixed the problem.
... module 'Fakeum' – no module named 'six.moves' "
hi just fyi this text is showing up in Alfred's window when typing the last letter of 'fake'. this message covers Alfred's command 'Generate Fake Data - fake data for testing', which then disappears. did a little debugging, found some things in ##### /libs/six.py starting line 164
following line 209
etc stopped looking any further. i'm on python 3.12.1. and with Alfred 5.1.4 and took your latest release : https://github.com/giovannicoppola/alfred-fakeum/releases/tag/v2.3.1
kind regards all the best