Hi,
Thanks for sharing. I’m code illiterate, so it might just be me but, every time i try to run N2O.py it just flashes a python window blackscreen and quickly dissappears. Would you know how to fix my situation?

thanks!

When I run the script, nothing would happen because the zip file open dialog would always pop up behind my IDE window. I have to minimize and search for that pop-up. If you can’t find that pop-up anywhere, hopefully someone else can chime in. I’m only familiar with Python under anaconda and the Spyder IDE.

I run the same problem and found out the solution:

  1. First, make sure you installed python on your computer. Check by open cmd or terminal (mac) and type python --version . It should show your python version number. e.g Python 3.8.6rc1.
  2. If there isn’t, install python from the website or windows store. pip should’ve installed automatically with new python.
  3. After that make sure you have easygui, you can install it by typing pip install easygui.
  4. That’s it, now you just need to double click the N2O.py and it should work.
3 Likes

Thanks! that worked :slight_smile:

Much appreciated!

1 Like

Oooo, this sounds very helpful!

Unfortunately, I can’t seem to get it to work on Mac even though I have everything installed including easygui. For some reason it keeps spitting out

Traceback (most recent call last):
File “N2O.py”, line 15, in
from easygui import fileopenbox
ModuleNotFoundError: No module named ‘easygui’

…even though it says I’ve successfully installed easygui earlier. Any suggestions from fellow Mac users?

Or is there a way to just run this completely from command line without GUI?

Thanks.
Ray

For the life of me I can’t seem to get this to work per above.

Any chance a kind soul would be willing to receive my archive.zip (it’s quite small as it is) from Notion, convert it for me using the above program, and send it back zipped up?

Many thanks.
Ray

Feel free to send it to me if you have not solved the issue yet.

2 Likes

I have someone willing to give it a try – thanks anyway for your offer. Much appreciated!

Ray

2 Likes

Anyone else gets the py script to run on a Mac? I got the following error when running the Python3 N2O.py command:

    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

Any advice on how to remedy this?

-yohannes

1 Like

Hey I get an error
ModuleNotFoundError: No module named 'easygui'

This is using the 2NO file thing. Also I can’t open the zip file to unzip it so that mode also doesn’t work.

I got the same error and solved it by installing the easygui module. Try pasting in:

pip3 install easygui

(then hit enter)

After that, the python3 N2O.py command worked fine – after I pasted it in and hit enter a file browser opened up and I selected the zip I exported from Notion. Then I got the Spinning Rainbow of Doom and I thought something had gone wrong, but after about 10 seconds lo and behold, there was a new zip file next to the original with “-ObsidianReady” appended to the filename!

2 Likes

…too stupid, even though I installed easygui and it also confirmed it…n20.py does not open

1 Like

this one in Javascript worked for me: GitHub - connertennery/Notion-to-Obsidian-Converter: Converts exported Notion notes to work with Obsidian.

Same problem here. Python version 3.9.2 and easyGUI are installed.

Did not work for me. I receiving a failure that Microsoft JS could not execute the code.

For people with windows 10 and python3, given easygui don’t work ( at least not worked for me).
So I find another fork of easygui here that works with new versions of python.
To install it just download code, extract it, from folder launch cmd and write “python setup.py install”.

1 Like

Thanks for making this–we really appreciate it!

I am a long-time Notion user desperately trying to give Obsidian a try and wanted to test out what I’ve built so far using your converter.

Unfortunately, I run into this error. Any thoughts?

Traceback (most recent call last):
File “C:/Users/adity/OneDrive/Desktop/Notion-2-Obsidan/N2O.py”, line 85, in
mdTitle = N2Omodule.N2Ocsv(csvFile)
File “C:\Users\adity\OneDrive\Desktop\Notion-2-Obsidan\N2Omodule.py”, line 68, in N2Ocsv
IntLinks = list(dictionry.keys())[0] # Only want 1st column header
IndexError: list index out of range

@bndo Could you give me the sample of that exported file. I will check it out.

@goodsignal I have done some improvement on github.

  • Support full name of notion page when convert to obsidian md
  • Support unicode characters on Link
  • Fix issues
    Please review :slight_smile:

it just says syntax error every time i type pip install easygui ?
what should i do ? i am extremely new and inexperienced in anything code-related