-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

Comment by 🛰️ lufte


Re: "Thoughts on Gemalaya"

In: s/GemalayaBrowser


  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

🛰️ lufte [OP]

2023-12-03 · 6 months ago


8 Later Comments ↓


🛰️ lufte [OP] · 2023-12-03 at 15:38:

  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module

🛰️ lufte [OP] · 2023-12-03 at 15:39:

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/tmp/gemgemgem/env/lib/python3.11/site-packages/gemalaya/__init__.py", line 24, in <module>
    from gemalaya import rc_gemalaya  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'rc_gemalaya' from partially initialized module 'gemalaya' (most likely due to a circular import) (/tmp/gemgemgem/env/lib/python3.11/site-packages/gemalaya/__init__.py)

😺 gemalaya [mod] · 2023-12-03 at 16:14:

@lufte You need to run the "build_gemalaya" setuptools command first via setup.py:


python setup.py build_gemalaya install

This will use 'pyside6-rcc' to build the rc_gemalaya module.


🛰️ lufte [OP] · 2023-12-03 at 18:17:

Yes, that's what I meant when I said that it succeeds to build. I ran that command as explained in the repository, but then running "gemalaya" results in the previous error.


😺 gemalaya [mod] · 2023-12-03 at 19:16:

@lufte Ok. So, given that "build_gemalaya" doesn't show errors if pyside6-rcc fails or if it's not found, it's likely that it didn't work. You could edit "setup.py", and in the "run_rcc()" function, add a print(stdout, err) statement. What's the result of "which pyside6-rcc" ?


🛰️ lufte [OP] · 2023-12-03 at 19:33:

Oh, I am just now reading what pyside is exactly, I definitely don't have that installed 😅. Yeah, the output from that print statement is simply `b'' None`.


😺 gemalaya [mod] · 2023-12-03 at 20:07:

@lufte But, if you ran "pip install '.[gemalaya]'", it will install Pyside6-essentials which provides "pyside6-rcc". Are you sure that you're running all of these commands from within the virtualenv ?


🛰️ lufte [OP] · 2023-12-03 at 23:43:

Oh man, I'm sure I was, and it happend multiple times, but now I can't reproduce it so I'm not so sure... :/ Anyway, forget about this haha.


Original Post


🌒 s/GemalayaBrowser

Thoughts on Gemalaya — Writing my thoughts here, about the Gemalaya browser and *from* the Gemalaya browser. Running it and setting up my certificate was dead simple, that's important! I wasn't able to build it with pip though, it complained about a circular import (I can give you more details if you want). I find the UI very peculiar, it sure has its own identity and style. I like the "Gemalaya!" popup when selecting a link, hah. The TTS is a killer feature, gemtext is such an accessible...

💬 lufte · 12 comments · 2023-12-02 · 6 months ago

-- Response ended

-- Page fetched on Sun Jun 2 15:22:53 2024