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

Bug about stumpy in cx Freeze in tsfresh #1090

Open
mh8859 opened this issue Sep 12, 2024 · 1 comment
Open

Bug about stumpy in cx Freeze in tsfresh #1090

mh8859 opened this issue Sep 12, 2024 · 1 comment
Labels

Comments

@mh8859
Copy link

mh8859 commented Sep 12, 2024

The problem:

Hello,I have encountered such a problem when using tsfresh.
When I use the IDE for development, everything works fine. But then I need to package tsfresh into a runnable exe file using cx Freeze's setup. The code is:

python setup.py instsall

After packing, this error occurs:
ImportError: cannot import name 'initialize' from partially initialized module 'numba.cuda' (most likely due to a circular import)

Looking through the source code for the project, I found that the problem was caused by the import stumpy of feature_calculators.py in the feature_extraction folder. Once I commented out its functions and imports, the problem was solved.

Environment:

  • Python version: 3.8
  • Operating System: Windows
  • tsfresh version: 0.20.3
  • Install method (conda, pip, source):
  • numba version: 0.58.1
@mh8859 mh8859 added the bug label Sep 12, 2024
@nils-braun
Copy link
Collaborator

Hello @mh8859!
Thank you very much for the bug report. I do not know cx freeze, but from your description it seems it might be related to the stumpy package, which is also just a dependency for tsfresh. Have you tried contacting the stumpy developers on this issue? I think, unfortunately, that there is not much that we can do on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants