On 22 Feb 2021, at 2:44, Jose Brito wrote:
excell 2016 ... I've installed it several times and always give me this
error when installing openpyxl. what can I do????
I've no idea what you're doing but it must be something wrong because openpyxl/init.py is only 19 lines long. I assume you haven't installed openpyxl according to the documentation.
Good luck!
Charlie Clark
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
# Copyright (c) 2010-2021 openpyxl
"""
#from openpyxl.compat.numbers import NUMPY
from openpyxl.xml import DEFUSEDXML, LXML
from openpyxl.workbook import Workbook
from openpyxl.reader.excel import load_workbook as open
from openpyxl.reader.excel import load_workbook
import openpyxl._constants as constants
"""
import openpyxl
wb = openpyxl.load.workbook(filename = "pytttt.xlsx")
wb.shetnames
for d in wb['sheet_1'].iter_rows(values_only = True):
print (d)
# Expose constants especially the version number
__author__ = constants.__author__
__author_email__ = constants.__author_email__
__license__ = constants.__license__
__maintainer_email__ = constants.__maintainer_email__
__url__ = constants.__url__
__version__ = constants.__version__
my programimport openpyxl
wb = openpyxl.load.workbook(filename = "pytttt.xlsx")
wb.shetnames
for d in wb['sheet_1'].iter_rows(values_only = True):
print (d)
the error
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
== RESTART: C:\Users\José Brito\AppData\Local\Programs\Python\Python39\bex.py ==
Traceback (most recent call last):
File "C:\Users\José Brito\AppData\Local\Programs\Python\Python39\bex.py", line 1, in <module>
import openpyxl
File "C:\Users\José Brito\AppData\Local\Programs\Python\Python39\lib\site-packages\openpyxl\__init__.py", line 27
^
SyntaxError: unexpected EOF while parsing
>>>
--
You received this message because you are subscribed to the Google Groups "openpyxl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpyxl-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpyxl-users/F0E2AB45-327F-4AC3-8586-5D626ECA5F02%40clark-consulting.eu.
--
You received this message because you are subscribed to the Google Groups "openpyxl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpyxl-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpyxl-users/01C414AE-065A-4BAB-A47A-A2D7A1832415%40clark-consulting.eu.