GusBerco Posted April 15, 2022 Share Posted April 15, 2022 Hello, thank you for this awesome workflow! Could you help me get it running? I am having this error: workflow.py:2080 ERROR [Errno 2] No such file or directory Traceback (most recent call last): File "/Users/myusername/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.06159C09-B228-4A05-A19A-B0B0258E1640/workflow/workflow.py", line 2070, in run self.check_update() Something with the settings.json not being found and not initialized? How can I fix it? Link to comment
vitor Posted April 15, 2022 Share Posted April 15, 2022 @GusBerco Have you seen the post right before yours? Link to comment
giovanni Posted May 25, 2022 Share Posted May 25, 2022 (edited) this should be migrated cc @vitor it is great to synergize interactive eyeballs again, empower wireless info-mediaries, and finally empower extensible architectures! (...enjoy the corporate BS 🤣) Edited May 25, 2022 by giovanni vitor 1 Link to comment
Joris Posted April 29 Share Posted April 29 This looks great! I've set-up my locale for nl_BE and I'm trying to get it working for IBAN but it seems it is not picking up specific IBAN's for BE. I see it is supported in faker: https://faker.readthedocs.io/en/stable/locales/nl_BE.html#faker.providers.bank.nl_BE.Provider.iban VAT and SID would also be very useful but they are probably BE specific: https://faker.readthedocs.io/en/stable/locales/nl_BE.html#faker.providers.ssn.nl_BE.Provider.vat_id https://faker.readthedocs.io/en/stable/locales/nl_BE.html#faker.providers.ssn.nl_BE.Provider.ssn Anyone any experience with adding these? Link to comment
Joris Posted May 17 Share Posted May 17 I was able to contribute to the Faker python library to add the correct Belgian VAT format: https://github.com/joke2k/faker/compare/v25.1.0...v25.2.0 However this workflow seems to use an older Faker version and doesn't include all Locale's by default. I was able to manually add locales and by copying the install directory of the workflow and editing the workflow to add support for VAT numbers. It been a while since this repository has been updated. Does't seem active anymore? Link to comment
vitor Posted May 17 Share Posted May 17 8 hours ago, Joris said: It been a while since this repository has been updated. Does't seem active anymore? The one that originated the post isn’t, but the fork by @giovanni is. I recommend contributions be made there. Link to comment
Send Me Posted June 6 Share Posted June 6 I think I need help.. I haven't used this workflow in while so I don't know how or when I broke it, maybe I updated a package I shouldn't have. Anyway, I get the following error -edited home folder path- when trying to use Fakeum. Any insight on how to resolve? I'm not familiar with six.moves, in any case I am clueless. Thanks in advance ``` [15:44:53.480] Fakeum[Script Filter] Queuing argument '' [15:44:53.619] Fakeum[Script Filter] Script with argv '' finished [15:44:53.624] ERROR: Fakeum[Script Filter] Code 1: . 15:44:53 workflow.py:2093 DEBUG ---------- Fakeum (2.3.1) ---------- 15:44:53 fakeum.py:228 DEBUG query='' 15:44:53 workflow.py:2114 ERROR No module named 'six.moves' Traceback (most recent call last): File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/workflow/workflow.py", line 2107, in run func(self) File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/fakeum.py", line 258, in main fake_data = get_fake_data() ^^^^^^^^^^^^^^^ File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/fakeum.py", line 197, in get_fake_data names = [n for n in names if supported_type(n)] ^^^^^^^^^^^^^^^^^ File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/fakeum.py", line 182, in supported_type for faker in all_fakers(): ^^^^^^^^^^^^ File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/fakeum.py", line 132, in all_fakers from faker import Factory File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/faker/__init__.py", line 2, in <module> from faker.factory import Factory # noqa F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/faker/factory.py", line 13, in <module> from faker.config import DEFAULT_LOCALE, PROVIDERS, AVAILABLE_LOCALES File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/faker/config.py", line 14, in <module> AVAILABLE_LOCALES = find_available_locales(PROVIDERS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/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.3/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 "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/faker/providers/address/__init__.py", line 5, in <module> from .. import date_time File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/faker/providers/date_time/__init__.py", line 12, in <module> from dateutil.tz import tzlocal, tzutc File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/dateutil/tz/__init__.py", line 2, in <module> from .tz import * File "~/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24812C3A-4164-4CC2-8C50-A13FC3591405/libs/dateutil/tz/tz.py", line 21, in <module> from six.moves import _thread ModuleNotFoundError: No module named 'six.moves' 15:44:53 workflow.py:2116 INFO for assistance, see: https://github.com/giovannicoppola/alfred-fakeum/issues 15:44:53 workflow.py:2136 DEBUG ---------- finished in 0.024s ---------- [15:44:53.626] 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" } } ] } ``` Link to comment
giovanni Posted June 6 Share Posted June 6 yes @Send Me the default python has changed, I will add the complete path, in the meantime could you try to add /usr/bin as described in this issue? Send Me and TomBenz 2 Link to comment
TomBenz Posted June 7 Share Posted June 7 9 hours ago, giovanni said: yes @Send Me the default python has changed, I will add the complete path, in the meantime could you try to add /usr/bin as described in this issue? Getting No module named six.moves error. I will test it again once new version is posted @giovanni Link to comment
Send Me Posted June 7 Share Posted June 7 14 hours ago, giovanni said: yes @Send Me the default python has changed, I will add the complete path, in the meantime could you try to add /usr/bin as described in this issue? Thank you, it's working again. I appreciate your prompt response. Link to comment
TomBenz Posted June 7 Share Posted June 7 (edited) 6 hours ago, TomBenz said: Getting No module named six.moves error. I will test it again once new version is posted @giovanni I am able to make this work as well using the link suggested. But not getting multiple items using fake name > 5 How to generate multiple fake records? Edited June 7 by TomBenz Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now