ShayHill / docx2python

Extract docx headers, footers, (formatted) text, footnotes, endnotes, properties, and images.
https://docx2python.readthedocs.io/en/latest/
MIT License
164 stars 35 forks source link

SyntaxError: invalid syntax #1

Closed FabianGroeger96 closed 5 years ago

FabianGroeger96 commented 5 years ago

When I try to import your module docx2python, I get this SyntaxError:

>>> import docx2python
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\__init__.py", line 1, in <module>
    from .main import docx2python
  File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\main.py", line 15, in <module>
    from docx2python.docx_output import DocxContent
  File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\docx_output.py", line 27
    ) -> None:
    ^
SyntaxError: invalid syntax

Can you help me?

ShayHill commented 5 years ago

Absolutely. I will attempt to reproduce.

Thank you for the report.

From: Fabian Gröger notifications@github.com Sent: Thursday, August 29, 2019 4:48 AM To: ShayHill/docx2python docx2python@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [ShayHill/docx2python] SyntaxError: invalid syntax (#1)

When I try to import your module docx2python, I get this SyntaxError:

import docx2python

Traceback (most recent call last):

File "", line 1, in

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python__init__.py", line 1, in

from .main import docx2python

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\main.py", line 15, in

from docx2python.docx_output import DocxContent

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\docx_output.py", line 27

) -> None:

^

SyntaxError: invalid syntax

Can you help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ShayHill/docx2python/issues/1?email_source=notifications&email_token=ADAKIE2G7MVCHY3BBFZ3WFTQG6LORA5CNFSM4ISAFNJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIEZW7A, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAKIE5MROAFA246VUF4FL3QG6LORANCNFSM4ISAFNJQ.

ShayHill commented 5 years ago

What is your Python version?

From: Fabian Gröger notifications@github.com Sent: Thursday, August 29, 2019 4:48 AM To: ShayHill/docx2python docx2python@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [ShayHill/docx2python] SyntaxError: invalid syntax (#1)

When I try to import your module docx2python, I get this SyntaxError:

import docx2python

Traceback (most recent call last):

File "", line 1, in

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python__init__.py", line 1, in

from .main import docx2python

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\main.py", line 15, in

from docx2python.docx_output import DocxContent

File "C:\Program Files\Kryon Studio\Python\lib\site-packages\docx2python\docx_output.py", line 27

) -> None:

^

SyntaxError: invalid syntax

Can you help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ShayHill/docx2python/issues/1?email_source=notifications&email_token=ADAKIE2G7MVCHY3BBFZ3WFTQG6LORA5CNFSM4ISAFNJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIEZW7A, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAKIE5MROAFA246VUF4FL3QG6LORANCNFSM4ISAFNJQ.

FabianGroeger96 commented 5 years ago

I'm using python 3.5.

I forked your project and made a version for my python version, it had a problem with the new python syntax.

ShayHill commented 5 years ago

Excellent. Thank you.

Going down to Python 3.4 is on my “to do” list.

From: Fabian Gröger notifications@github.com Sent: Monday, September 02, 2019 10:30 AM To: ShayHill/docx2python docx2python@noreply.github.com Cc: Shay Hill shay_public@hotmail.com; Comment comment@noreply.github.com Subject: Re: [ShayHill/docx2python] SyntaxError: invalid syntax (#1)

I'm using python 3.5.

I forked your project and made a version for my python version, it had a problem with the new python syntax.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ShayHill/docx2python/issues/1?email_source=notifications&email_token=ADAKIEYNRM64OVYSJ5X3JE3QHUWOTA5CNFSM4ISAFNJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WDNOY#issuecomment-527185595, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAKIE7QQ5FJADNQL7PPRVDQHUWOTANCNFSM4ISAFNJQ.