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

Lost dependence #25

Closed
soker90 opened this issue Sep 1, 2017 · 8 comments
Closed

Lost dependence #25

soker90 opened this issue Sep 1, 2017 · 8 comments

Comments

@soker90
Copy link

soker90 commented Sep 1, 2017

In version 0.5.0, the "pyexcel" dependency is required to work correctly, but pip does not install it.

I have needed to install pyexcel to write ods files.

@chfw
Copy link
Member

chfw commented Sep 1, 2017

Hmm... will look into it

@chfw
Copy link
Member

chfw commented Sep 1, 2017

I had a check. pyexcel and pyexcel-ods do not depend on each other. Only pyexcel-ods depends on pyexcel-io.

@chfw chfw closed this as completed Sep 1, 2017
@chfw
Copy link
Member

chfw commented Sep 1, 2017

Here is the architecture:

http://pyexcel.readthedocs.io/en/latest/architecture.html

@soker90
Copy link
Author

soker90 commented Sep 2, 2017

if pyexcel is not installed I get this error

save_data("your_file.ods", data)

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/site-packages/pyexcel_ods/init.py", line 30, in save_data
write_data(afile, data, file_type=file_type, **keywords)
File "/usr/lib/python3.6/site-packages/pyexcel_io/io.py", line 140, in store_data
with get_writer(**keywords) as writer:
File "/usr/lib/python3.6/site-packages/pyexcel_io/io.py", line 213, in get_writer
writer = WRITERS.get_a_plugin(file_type, library)
File "/usr/lib/python3.6/site-packages/pyexcel_io/plugins.py", line 77, in get_a_plugin
plugin = self.load_me_now(__file_type, library=library)
File "/usr/lib/python3.6/site-packages/lml/plugin.py", line 275, in load_me_now
cls = self.dynamic_load_library(plugin_info)
File "/usr/lib/python3.6/site-packages/lml/plugin.py", line 303, in dynamic_load_library
cls = do_import_class(a_plugin_info.absolute_import_path)
File "/usr/lib/python3.6/site-packages/lml/utils.py", line 59, in do_import_class
plugin_module = import(plugin_module_name)
File "/usr/lib/python3.6/site-packages/pyexcel_ods/odsw.py", line 20, in
import pyexcel_io.service as converter
File "/usr/lib/python3.6/site-packages/pyexcel_io/service.py", line 14, in
from pyexcel._compact import PY2
ModuleNotFoundError: No module named 'pyexcel'

In version 0.4 it works

@chfw
Copy link
Member

chfw commented Sep 2, 2017

Oh I see. It is an unwanted bug

@chfw chfw reopened this Sep 2, 2017
chfw added a commit to pyexcel/pyexcel-io that referenced this issue Sep 2, 2017
@chfw
Copy link
Member

chfw commented Sep 2, 2017

Please try pyexcel-io v0.5.1. I have also withdrawn pyexcel-io 0.5.0. Thanks for your report, otherwise I am blinded by my test case, which I will try to correct in the coming days.

@soker90
Copy link
Author

soker90 commented Sep 2, 2017

It works perfectly! Thanks, I've updated the Archlinux package with the new version.

@chfw chfw closed this as completed Sep 10, 2017
@chfw
Copy link
Member

chfw commented Sep 10, 2017

And thanks for bringing pyexcel-io to new world.

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