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

ValueError: Unable to configure handler 'file_default' #526

Open
levzilber2004 opened this issue May 2, 2024 · 0 comments
Open

ValueError: Unable to configure handler 'file_default' #526

levzilber2004 opened this issue May 2, 2024 · 0 comments

Comments

@levzilber2004
Copy link

Describe the bug
When I only import pyswarms it crashes on init

To Reproduce
Create an android application with com.chaquo.python
as a python compiler,
in the default config install pyswarms (which will install all the other libraries)
chaquopy {
defaultConfig {
pip {
install("pyswarms==1.3.0")
}
}

then if you run a python method with chaquopy, on import it would throw out this error
com.chaquo.python.PyException: ValueError: Unable to configure handler 'file_default'
at .logging.config.configure(config.py:570)
at .logging.config.dictConfig(config.py:808)
at .pyswarms.utils.reporter.reporter._load_defaults(reporter.py:188)
at .pyswarms.utils.reporter.reporter._setup_logger(reporter.py:184)
at .pyswarms.utils.reporter.reporter.init(reporter.py:118)
at .pyswarms.backend.generators.(generators.py:21)
at .java.chaquopy.import_override(import.pxi:26)
at .pyswarms.backend.(init.py:7)
at .java.chaquopy.import_override(import.pxi:26)
at .pyswarms.single.global_best.(global_best.py:65)
at .java.chaquopy.import_override(import.pxi:26)
at .pyswarms.single.(init.py:17)
at .java.chaquopy.import_override(import.pxi:26)
at .pyswarms.(init.py:17)
at .java.chaquopy.import_override(import.pxi:26)

Expected behavior
Expected to not crash at import

Environment (please complete the following information):

  • Android
  • Version: minSDK 21, targetSDK 34
  • PySwarms Version 1.3..0
  • Python Version 3.8
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

1 participant