gourmet
gourmet copied to clipboard
Flatpak instal does not run on latest manjaro
Trying to run after install (based on https://github.com/thinkle/gourmet/blob/master/INSTALL.md):
[fbobraga@pi4 ~]$ /usr/bin/flatpak run --branch=master --arch=x86_64 --command=gourmet io.github.thinkle.Gourmet bwrap: execvp ldconfig: Exec format error erro: ldconfig falhou, status de saída 256 [fbobraga@pi4 ~]$
Understood the problem now: wrong arch (its a raspberry pi, armhf, not a x86_64 computer... will try to run the python form)
There's support for arm now?
If no, I must reinstall it in python module (I don know what happened: the module seems to not exists anymore... maybe is something related to the distro update)
figured out what happened: the $HOME/lib/python3.9/site-packages/ changed to $HOME/lib/python3.10/site-packages/ on OS update :P
now the problem changed:
$ PYTHONPATH='/home/fbobraga/.local/lib/python3.9/site-packages' python -m gourmet
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/fbobraga/.local/lib/python3.9/site-packages/gourmet/main.py", line 2, in
so, I download last release and try to reinstall:
$ python setup.py install
File "/tmp/gourmet-0.17.4/setup.py", line 37
raise TypeError,
^
SyntaxError: invalid syntax
trying to install with 'master':
$ python setup.py install /tmp/gourmet-master/setup.py:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import Command running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
[Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/test-easy-install-5316.write-test'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/usr/lib/python3.10/site-packages/
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html
Please make the appropriate changes for your system and try again.
installed with sudo and:
$ python -m gourmet
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/site-packages/gourmet-0.17.5-py3.10.egg/gourmet/main.py", line 2, in
installing missing module:
$ python -m pip install argcomplete Defaulting to user installation because normal site-packages is not writeable Collecting argcomplete Downloading argcomplete-2.0.0-py2.py3-none-any.whl (37 kB) Installing collected packages: argcomplete Successfully installed argcomplete-2.0.0
I must install 'sqlachemy' module too:
$ python -m pip install argcomplete sqlalchemy Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: argcomplete in ./.local/lib/python3.10/site-packages (2.0.0) Requirement already satisfied: sqlalchemy in ./.local/lib/python3.10/site-packages (1.4.31) Requirement already satisfied: greenlet!=0.4.17 in ./.local/lib/python3.10/site-packages (from sqlalchemy) (1.1.2)
trying to run now:
$ python -m gourmet
args = Namespace(db_url='', html_plugin_dir='', threads=False, gourmetdir='', thread_debug_interval=5.0, thread_debug=False, debug_file='', time=False, debug=None)
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/site-packages/gourmet-0.17.5-py3.10.egg/gourmet/main.py", line 2, in
...but:
$ python -m pip install PIL Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL
how solve this now?
searching on internet, I found some sites tell to use module 'pillow' istead of 'PIL' (I needed to install module 'bs4' too, which 'pillow' depends...): now the error trying to run is this:
$ python -m gourmet Traceback (most recent call last): File "/home/fbobraga/.local/lib/python3.10/site-packages/sqlalchemy/sql/base.py", line 1222, in getattr return self._index[key] KeyError: 'id'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/site-packages/gourmet-0.17.5-py3.10.egg/gourmet/main.py", line 3, in
... any ideas what is causing this error?