leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
841 stars 132 forks source link

can't run it #139

Open linkcell opened 1 year ago

linkcell commented 1 year ago

installed all good, but when trying to run it...

$ python loconotion community.toml 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "loconotion/__main__.py", line 4, in <module>
    import modules.main as main
  File "loconotion/modules/main.py", line 8, in <module>
    from .notionparser import Parser
  File "loconotion/modules/notionparser.py", line 580
    if not (custom_fonts := self.get_page_config(url).get("fonts", {})):
                         ^
SyntaxError: invalid syntax

any ideas?

leoncvlt commented 1 year ago

Seems like a problem with the := operator, what version of Python are you using? That's supported since 3.8 if I'm not wrong

linkcell commented 1 year ago

yup, using python 3.7. can you make it compatible?