Hey, i'm having issues with the pyexcel can anybody help me with it:
ImportError Traceback (most recent call last)
<ipython-input-5-12f199465d15> in <module>
3 import numpy as np
4 import pandas as pd
----> 5 import pyexcel
6 import statsmodels.api as stat
7 import statsmodels.tsa.stattools as ts
~\Anaconda3\lib\site-packages\pyexcel_init_.py in <module>
11 """
12 # flake8: noqa
—> 13 from .cookbook import (
14 merge_csv_to_a_book,
15 merge_all_to_a_book,
~\Anaconda3\lib\site-packages\pyexcel\cookbook.py in <module>
9 """
10 import os
—> 11 from pyexcel.book import Book
12 from pyexcel.core import get_book, get_sheet, save_as
13 from pyexcel._compact import OrderedDict
~\Anaconda3\lib\site-packages\pyexcel\book.py in <module>
8 :license: New BSD License, see LICENSE for more details
9 """
—> 10 from pyexcel.sheet import Sheet
11 import pyexcel.compact as compact
12 from pyexcel.internal.meta import BookMeta
~\Anaconda3\lib\site-packages\pyexcel\sheet.py in <module>
10 import pyexcel.compact as compact
11 import pyexcel.constants as constants
—> 12 from pyexcel.internal.sheets.matrix import Matrix
13 from pyexcel.internal.sheets.row import Row as NamedRow
14 from pyexcel.internal.sheets.column import Column as NamedColumn
~\Anaconda3\lib\site-packages\pyexcel\internal_init.py in <module>
10 from lml.loader import scan_plugins
11 from pyexcel.internal.plugins import PARSER, RENDERER # noqa
—> 12 from pyexcel.internal.source_plugin import SOURCE # noqa
13 from pyexcel.internal.generators import SheetStream, BookStream # noqa
14
~\Anaconda3\lib\site-packages\pyexcel\internal\source_plugin.py in <module>
8 :license: New BSD License
9 """
—> 10 import pyexcel_io.constants as io_constants
11
12 import pyexcel.constants as constants
~\Anaconda3\lib\site-packages\pyexcel_io_init.py in <module>
13 logging.getLogger(name).addHandler(NullHandler()) # noqa
14
—> 15 from .io import get_data, iget_data, save_data # noqa
16 import pyexcel_io.plugins as plugins
17
~\Anaconda3\lib\site-packages\pyexcel_io\io.py in <module>
13
14 from pyexcel_io._compact import isstream, PY2
—> 15 from pyexcel_io.plugins import READERS, WRITERS
16 from pyexcel_io.exceptions import NoSupportingPluginFound
17 import pyexcel_io.constants as constants
~\Anaconda3\lib\site-packages\pyexcel_io\plugins.py in <module>
8 :license: New BSD License, see LICENSE for more details
9 """
—> 10 from lml.loader import scan_plugins_regex
11 from lml.plugin import PluginManager
12 from lml.plugin import PluginInfoChain, PluginInfo
ImportError: cannot import name 'scan_plugins_regex' from 'lml.loader'
Thanks,
Jamal
Hello Jamal,
You might want to look at this git issue raised at the official repo of pyexcel.
Perhaps, try to hardcode the versions:
"Current lml 0.0.9 (lml>=0.0.4) does not seem to work with your code.
I hardcoded it to lml==0.0.6 in my project in order to resolve it.
I use:
pyexcel==0.5.8
pyexcel-xlsx==0.5.6"
I'm having the same issue where do you hard code it?
Did you figure it out?
Hi Alexander,
First, uninstall the "lml" version you have downloaded in your system using " pip uninstall lml" because it is not compatible with the version of Python you have installed, with other packages that you have installed, or with your Python code. Then, install the '0.0.6' version of 'lml' using "pip install lml==0.0.6".
I hope it resolves your issue.
Thanks,