I am not a techie, but I want to try using Leo as an organizer. I may try building something like Johnny Decimal type indexing in Leo to organize files, and use an external app for my actual journaling (Bike Outliner), since as I understand it Leo can organize files and I can open them in their native app from Leo.
My use case is notes and files organization, journaling, hopefully writing a book. Leo seems like a tough road for a non-techie. It was a challenge just installing it (on Mac 14.4.1), and Terminal gave me an error:
TypeError: expected str, bytes or os.PathLike object, not NoneType
I don’t know what it means or what to do about it.
After Python installation (I failed with miniconda and with brew) Leo launched with ``Leo``, but with the same error as above.
On Leo startup there was no menu bar in the main window and I somehow managed to lose the icon area.
Next day now, I cannot start it with ``leo`` (zsh: command not found) and I don’t know how to start it.
I had Leo a few years ago (don't recall what version) and as I recall it started from a desktop icon, not from terminal.
> Leo seems like a tough road for a non-techie.
My apologies. It shouldn't the that tough :-)
> It was a challenge just installing it (on Mac 14.4.1), and Terminal gave me an error:
> TypeError: expected str, bytes or os.PathLike object, not NoneType
In the future, it's good to record the entire console message. That will tell me where the problem lies.
Do you have a copy of the console message?
The other problems you report may have been the result of the TypeError.
Edward
I spoke from frustration, sir. I should not complain so loudly on day one.No I don't have the complete message. Should I uninstall and start over? If so, how do I uninstall?
It's a little hard to help with Mac-related problems because most of the developer-minded people (like Edward and myself) don't have Macs to try things out on.
setting leoID from os.getenv('USER'): 'andy'
Leo 6.7.8
Python 3.9.19, PyQt version 6.7.0
darwin
load_session Ignoring invalid session unl: 'unl:gnx:///Users/andy/.leo/workbook.leo#andy.20240513222826.1'
qt.qpa.fonts: Populating font family aliases took 355 ms. Replace uses of missing font family "DejaVu Sans Mono" with one that exists to avoid this cost.
unexpected error creating: None
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.9/site-packages/leo/commands/spellCommands.py", line 65, in create
f = open(fn, mode='wb')
TypeError: expected str, bytes or os.PathLike object, not NoneType
I'll go ahead and get acquainted with it and see how she rolls from here. It would be nice to have a menu bar though.
Sorry I didn't figure out how to change the format/font back after the copy paste.
Andy
Thanks Edward and tbp1 (Thomas, is it?)
I just rolled the dice and figured it shouldn't hurt to just install again.
Leo launched, but no menu bar. Also got TypeError. Here is the whole output:
setting leoID from os.getenv('USER'): 'andy'
Leo 6.7.8
Python 3.9.19, PyQt version 6.7.0
darwin
load_session Ignoring invalid session unl: 'unl:gnx:///Users/andy/.leo/workbook.leo#andy.20240513222826.1'
qt.qpa.fonts: Populating font family aliases took 355 ms. Replace uses of missing font family "DejaVu Sans Mono" with one that exists to avoid this cost.
unexpected error creating: None
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.9/site-packages/leo/commands/spellCommands.py", line 65, in create
f = open(fn, mode='wb')
TypeError: expected str, bytes or os.PathLike object, not NoneType
one more question and I'll try to leave you alone:I use Bike, an outlining editor. The file extension is .bikeCan I represent an external Bike file in a Leo outline and from that Leo outline can I open the external file in the Bike application?