1 (edited by auanta 2023-02-27 17:40:36)

Topic: [solved] rednotebook bug: will not start

hyperbola version: stable
problem: installed rednotebook for the first time, it fails to start when called from GUI, and on the terminal shows this error:

$ rednotebook
Adding /usr/lib/python3.8/site-packages to sys.path
2023-02-26 11:03:54,222 INFO     Writing log to file "/home/auanta/.rednotebook/rednotebook.log"
2023-02-26 11:03:54,222 INFO     System encoding: utf-8
2023-02-26 11:03:54,223 INFO     Language code: en_US
Traceback (most recent call last):
  File "/usr/bin/rednotebook", line 6, in <module>
    import journal
ModuleNotFoundError: No module named 'journal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/rednotebook", line 12, in <module>
    import rednotebook.journal
  File "/usr/lib/python3.8/site-packages/rednotebook/journal.py", line 169, in <module>
    from rednotebook.gui.main_window import MainWindow
  File "/usr/lib/python3.8/site-packages/rednotebook/gui/main_window.py", line 23, in <module>
    from unittest import mock
  File "/usr/lib/python3.8/unittest/__init__.py", line 60, in <module>
    from .async_case import IsolatedAsyncioTestCase
  File "/usr/lib/python3.8/unittest/async_case.py", line 1, in <module>
    import asyncio
  File "/usr/lib/python3.8/asyncio/__init__.py", line 8, in <module>
    from .base_events import *
  File "/usr/lib/python3.8/asyncio/base_events.py", line 45, in <module>
    from . import staggered
  File "/usr/lib/python3.8/asyncio/staggered.py", line 6, in <module>
    import typing
  File "/usr/lib/python3.8/site-packages/typing.py", line 1359, in <module>
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "/usr/lib/python3.8/site-packages/typing.py", line 1007, in __new__
    self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'

2

Re: [solved] rednotebook bug: will not start

Not possible to review for the moment as it works here. Can you please give out more details or try to look for the error ModuleNotFoundError: No module named 'journal'? There should be something missing then on your installation but we need to assure which part and package is then missing I have then installed here.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

3

Re: [solved] rednotebook bug: will not start

Okay, a picture is now right back clearer: The application in version 2.21 has its problems reported and seems to have problems with load-ordering of the classes. Newer versions are incompatible with gettext-tiny. So there is no other choice as to remove rednotebook.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

4

Re: [solved] rednotebook bug: will not start

Thanks for looking into this, throgh. Sad news, but it is what it is.

I find myself using the graphical notebook apps because I can't get used to emacs even with org mode... but I might have to try again for the 5th time lol

5

Re: [solved] rednotebook bug: will not start

That's a problem with the class-loader of the application in this version. sad
But perhaps there is an alternative with qownnotes.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

6 (edited by auanta 2023-02-27 12:56:10)

Re: [solved] rednotebook bug: will not start

https://i.postimg.cc/3N0mh679/2023-02-27-070037-1280x720-scrot.png

Unfortunately I also cannot make use of qownnotes because it looks like this, probably not playing nicely with my cwm environment

https://i.postimg.cc/C5tj30qc/2023-02-27-072014-1280x720-scrot.png

(this is what it looks like maximized)

https://i.postimg.cc/K8j3BjRw/2023-02-27-075326-1280x720-scrot.png

It is not adjustable :')

7 (edited by auanta 2023-02-27 17:40:06)

Re: [solved] rednotebook bug: will not start

Upon further reflection, I think a simple unixy solution for my case would be this:

Have directory of notes, use a tool to search the contents for all files in directory x, edit files with vim/nano/etc. Browse files quickly using ranger.

The tool? grep. For speed and convenience, I added a bash alias:

alias n="grep -R ~/notes -e"

$ n sxmo
/home/user/notes/do:install sxmo on pinephone

I do not recommend recoll as it is too messy and overcomplicated for this task.