You are not logged in.

#1 2021-01-21 14:02:30

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

[solved] rednotebook python 3.9 not supported

I am trying to us the app rednotebook. When launched from the terminal, I get this error:


Adding /usr/lib/python3.9/site-packages to sys.path
2021-01-20 08:02:25,789 INFO     Writing log to file "/home/jmgant/.rednotebook/rednotebook.log"
2021-01-20 08:02:25,789 INFO     System encoding: utf-8
2021-01-20 08:02:25,789 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.9/site-packages/rednotebook/journal.py", line 169, in <module>
    from rednotebook.gui.main_window import MainWindow
  File "/usr/lib/python3.9/site-packages/rednotebook/gui/main_window.py", line 29, in <module>
    from rednotebook.gui import (
  File "/usr/lib/python3.9/site-packages/rednotebook/gui/browser_cef.py", line 30, in <module>
    from cefpython3 import cefpython as cef
  File "/home/jmgant/.local/lib/python3.9/site-packages/cefpython3/__init__.py", line 64, in <module>
    raise Exception("Python version not supported: " + sys.version)
Exception: Python version not supported: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]

Last edited by shoelesshunter (2022-02-02 21:58:53)

Offline

#2 2021-01-21 15:02:47

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [solved] rednotebook python 3.9 not supported

I don't know about the first error, but the second is caused by your user installation trying to use cefpython3 (chromium based), which does not allow any python newer than 3.7.

Just use rednotebook from community repository. That should work, since It uses webkit2gtk.

Last edited by progandy (2021-01-21 15:05:30)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-01-22 08:40:38

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] rednotebook python 3.9 not supported

I am using the one from community. but now I get this error:

Starting RedNotebook from the source directory
Traceback (most recent call last):
  File "/usr/bin/rednotebook", line 9, in <module>
    journal.main()
AttributeError: module 'journal' has no attribute 'main'

Offline

#4 2022-02-02 21:55:05

steff
Member
Registered: 2009-01-08
Posts: 57

Re: [solved] rednotebook python 3.9 not supported

Same here. First error (first part) I solved with

pip install journal

second is the one above about "main".
Full upgraded before.

Offline

#5 2022-02-02 21:59:25

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] rednotebook python 3.9 not supported

I'm slowly learning that pip packages are often the way to go.

Offline

#6 2022-02-03 01:28:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [solved] rednotebook python 3.9 not supported

shoelesshunter wrote:

I'm slowly learning that pip packages are often the way to go.

I often use it with virtual environments.  My advise on an Arch system, if you are going to use pip -- NEVER use it for system wide installation.  Always use --user mode.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2022-02-03 08:13:08

steff
Member
Registered: 2009-01-08
Posts: 57

Re: [solved] rednotebook python 3.9 not supported

For me it isn't solved, still here:

Starting RedNotebook from the source directory
Traceback (most recent call last):
  File "/usr/bin/rednotebook", line 9, in <module>
    journal.main()
AttributeError: module 'journal' has no attribute 'main'

Offline

#8 2022-02-03 12:49:52

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] rednotebook python 3.9 not supported

My advise on an Arch system, if you are going to use pip -- NEVER use it for system wide installation.  Always use --user mode.

learned that the hard way when I had to manually remove a lot of system-wide pip packages before I could install certain pacman/AUR  packages that needed to install those same dependencies on their own. thanks.

Offline

Board footer

Powered by FluxBB