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

SyntaxError: invalid syntax #31

Closed
C-Claus opened this issue May 14, 2020 · 3 comments
Closed

SyntaxError: invalid syntax #31

C-Claus opened this issue May 14, 2020 · 3 comments

Comments

@C-Claus
Copy link

C-Claus commented May 14, 2020

I have installed the mdutils on Python 3.5 with pip install.
On importing the module I get the following error:

Traceback (most recent call last):
  File "C:\Users\CClaus\projecten\Studytube\navisworks_manage.py", line 1, in <module>
    from mdutils import *
  File "C:\Python35\lib\site-packages\mdutils\__init__.py", line 2, in <module>
    from mdutils.mdutils import MdUtils
  File "C:\Python35\lib\site-packages\mdutils\mdutils.py", line 21, in <module>
    import mdutils.tools.Table
  File "C:\Python35\lib\site-packages\mdutils\tools\__init__.py", line 4, in <module>
    from .MDList import MDList
  File "C:\Python35\lib\site-packages\mdutils\tools\MDList.py", line 28
    md_list += self._add_new_item(item, f "{n_marker}")
                                                     ^
SyntaxError: invalid syntax

@didix21
Copy link
Owner

didix21 commented May 14, 2020

Which version have you installed ? Minimum python version is 3.6.

@C-Claus
Copy link
Author

C-Claus commented May 14, 2020

I am using:

3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)]

Guess I will need to upgrade to 3.6. Or is there an easy workaround?

@didix21
Copy link
Owner

didix21 commented May 14, 2020

As you said, you have to upgrade to 3.6. Mdutils use f-strings and they are available as of Python 3.6. Thus, I think we can close this issue.

@didix21 didix21 closed this as completed May 14, 2020
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