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

Problems with tqdm / pandas / swifter #99

Open
g3n35i5 opened this issue Jul 18, 2019 · 3 comments
Open

Problems with tqdm / pandas / swifter #99

g3n35i5 opened this issue Jul 18, 2019 · 3 comments

Comments

@g3n35i5
Copy link

g3n35i5 commented Jul 18, 2019

The following exceptions occur when the code is executed:

Traceback (most recent call last):
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/swifter-0.289-py3.6.egg/swifter/swifter.py", line 259, in apply
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/tqdm-4.32.2-py3.6.egg/tqdm/_tqdm.py", line 611, in pandas
    from pandas.core.groupby.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'DataFrameGroupBy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "[hidden]/CorporaCreator/venv/bin/create-corpora", line 11, in <module>
    load_entry_point('CorporaCreator==0.0.post0.dev159+g64d63b6.dirty', 'console_scripts', 'create-corpora')()
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/CorporaCreator-0.0.post0.dev159+g64d63b6.dirty-py3.6.egg/corporacreator/tool.py", line 31, in run
    main(sys.argv[1:])
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/CorporaCreator-0.0.post0.dev159+g64d63b6.dirty-py3.6.egg/corporacreator/tool.py", line 21, in main
    corpora.create()
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/CorporaCreator-0.0.post0.dev159+g64d63b6.dirty-py3.6.egg/corporacreator/corpora.py", line 44, in create
    ].swifter.apply(func=lambda arg: self.common_wrapper(*arg), axis=1)
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/swifter-0.289-py3.6.egg/swifter/swifter.py", line 288, in apply
  File "[hidden]/CorporaCreator/venv/lib/python3.6/site-packages/tqdm-4.32.2-py3.6.egg/tqdm/_tqdm.py", line 614, in pandas
    from pandas.core.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'PanelGroupBy'
@g3n35i5
Copy link
Author

g3n35i5 commented Jul 18, 2019

Fixed by downgrading pandas to v0.24

@g3n35i5 g3n35i5 closed this as completed Jul 18, 2019
@kdavis-mozilla
Copy link
Contributor

I guess we should pin the pandas version?

@g3n35i5
Copy link
Author

g3n35i5 commented Jul 18, 2019

I think this is more a bug in tqdm than pandas but yes, it'd be a first step

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