You are not logged in.
I am trying to run the journaling software, 'rednotebook' from the community repo. I get the following error on launch:
Traceback (most recent call last):
File "/usr/bin/rednotebook", line 9, in <module>
journal.main()
AttributeError: module 'journal' has no attribute 'main'
This happens with both the community version and the ARU git version of the software.
Last edited by shoelesshunter (2021-01-31 07:28:08)
Offline
What's the output of
python -c "import journal; print(journal.__file__)"
Offline
/home/jmgant/.local/lib/python3.9/site-packages/journal/__init__.py
so it seems it is looking for a local package, when rednotebook is a system packages.
I really don't understand how python works yet.
Offline
It looks like you installed a journal package with pip --user, and that's overriding the system one. That's what's causing your problem.
Offline
I did 'sudo pip install journal' and get the same error. should I just uninstall the local version?
Offline
rednotebook did not install 'journal' by default at all. I uninstalled the user package as well as the system package, reinstalled rednotebook and now get this error:
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 29, 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]
Help with this would really be great, I was using this software heavily for daily stuff and now won't install/run.
Offline
sorry to keep responding. I installed python3.8 from the AUR, but I have no idea how to use an alternate python.
Offline
Create a new user to avoid all the pip user installed packages. Does executing rednotebook as the new user produce any errors?
Offline
sudo rednotebook works just fine. but that is not a solution.
Offline
Create a new user to avoid all the pip user installed packages. Does executing rednotebook as the new user produce any errors?
sudo rednotebook works just fine. but that is not a solution.
Are you deliberately ignoring loqs, or are you that clueless. Elevating privileges is neither what he asked you to do, nor what any vaguely competent person would try.
Either follow the requests of the people trying to help you, or stop posting here: you are wasting everyone's time, including your own.
Offline
I had problems with pip installed packages conflicts in arch in the past and I avoid to install anything with pip, or use a virtual environment for pip installations. I just installed rednotebook and runs fine. So seems that the problem comes from pip installed packages.
The "module not found" error for journal indicates that the file journal.py(which is in /lib/python3.9/site-packages/rednotebook directory) cannot be found. This kind of problems started with python 3.9(I had some with other applications), but usually solved with a reinstallation of the application. In your case seems that this doesn' t work, probably because you have pip installed packages which rednotebook has as dependencies.
As this package:
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]
From the above error seems that the application trying to use the cefpython3 package from your local installation(installed by pip -user). So, you can try to uninstall it and reinstall rednotebook. But maybe you have some other packages there which also need to get rid of them.
Offline
yes removing cefpython3 with pip and reinstalling rednotebook did the trick. thanks.
Offline