pyexcel / pyexcel-io

One interface to read and write the data in various excel formats, import the data into and export the data from databases
http://io.pyexcel.org
Other
58 stars 20 forks source link

Deprecation Warning Issued: "Deprecated since v0.6.0!.." #104

Closed taifu closed 3 years ago

taifu commented 3 years ago

https://github.com/pyexcel/pyexcel-io/blob/9d70e9703754282fb17f0e970d73078bf2e416a2/pyexcel_io/book.py#L32

Using pyexcel.get_book always raises a Deprecation Warning. Why? How have I to open a file?

pyexcel==0.5.15 pyexcel-io==0.6.3 pyexcel-ods==0.5.6 pyexcel-xls==0.5.9 pyexcel-xlsx==0.5.8

chfw commented 3 years ago

Hi, it means pyexcel-io 0.6.x had plugin interface updated. Although backward compatibility is insured, you are advised to upgrade its plugins to 0.6.x.

Here is the change log: https://github.com/pyexcel/pyexcel-io/blob/dev/CHANGELOG.rst#061---7102020

chfw commented 3 years ago

And here is the table:

http://io.pyexcel.org/en/latest/#id6

taifu commented 3 years ago

These where the plugin version installed:

pyexcel==0.5.15
pyexcel-io==0.6.3
pyexcel-ods==0.5.6
pyexcel-xls==0.5.9
pyexcel-xlsx==0.5.8

All of those seems to be more than enough respect the table. I updated two of them and the warning disappeared:

pyexcel==0.5.15
pyexcel-io==0.6.3
pyexcel-ods==0.5.6
pyexcel-xls==0.6.1
pyexcel-xlsx==0.6.0
chfw commented 3 years ago

It means your code does not handle ods file type yet.

taifu commented 3 years ago

Updating the plugins solved the warning.

taifu commented 3 years ago

It means your code does not handle ods file type yet.

Just to be sure I updated all of them (I use the ods but I did not test them):

pyexcel==0.6.5
pyexcel-io==0.6.3
pyexcel-ods==0.6.0
pyexcel-xls==0.6.1
pyexcel-xlsx==0.6.0
chfw commented 3 years ago

Oh you may want to upgrade pyexcel to 0.6.5 if you use database queryset. If not, pyexcel 0.5.15 is fine.

chfw commented 3 years ago

https://github.com/pyexcel/pyexcel/blob/dev/CHANGELOG.rst#065---8102020

chfw commented 3 years ago

Case closed! thanks for raising the issue, which helps the interaction between pyexcel and pyexcel community.