Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run it #139

Open
linkcell opened this issue Sep 14, 2023 · 2 comments
Open

can't run it #139

linkcell opened this issue Sep 14, 2023 · 2 comments

Comments

@linkcell
Copy link

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants