Skip to content

ValueError: Unable to configure handler 'file_default' #526

@levzilber2004

Description

@levzilber2004

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions