Я обновил свой Python с 2,7 до 3,7. Я не могу импортировать OpenPyxlLibrary из-за следующей ошибки. Это та же библиотека, которая прекрасно работала
Importing test library 'OpenPyxlLibrary' failed: TypeError: module() takes at most 2 arguments (3 given)
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\OpenPyxlLibrary\__init__.py", line 4, in <module>
class OpenPyxlLibrary(OpenPyxlLibrary):
PYTHONPATH:
C:\workspace\PQD-AMUI-QA
C:\Python37\python37.zip
C:\Python37\DLLs
C:\Python37\lib
C:\Python37
C:\Python37\lib\site-packages
Вот что есть в моей библиотеке
__ init .__. Py
from OpenPyxlLibrary import OpenPyxlLibrary
class OpenPyxlLibrary(OpenPyxlLibrary):
OpenPyxlLibrary.py
import openpyxl
class OpenPyxlLibrary:
...rest of the code...
Я вижу, что класс OpenPyxlLibrary имеет только один аргумент, я не понимаю, откуда поступают два других