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

import error #830

Closed
prjemian opened this issue Mar 23, 2023 · 0 comments · Fixed by #832
Closed

import error #830

prjemian opened this issue Mar 23, 2023 · 0 comments · Fixed by #832
Assignees
Labels
Projects
Milestone

Comments

@prjemian
Copy link
Contributor

Again, this error in CI:

        if maxBytes > 0 or backupCount > 0:
>           handler = logging.handlers.RotatingFileHandler(log_file, maxBytes=maxBytes, backupCount=backupCount)
E           AttributeError: module 'logging' has no attribute 'handlers'

../../../micromamba-root/envs/anaconda-test-env-py-3.9/lib/python3.9/site-packages/apstools/utils/log_utils.py:64: AttributeError

Yet the Python 3.9 documentation says that logging.handlers.RotatingFileHandler() is available. So this might be an import problem (needing import logging.handlers in apstools upstream?)?

Originally posted by @prjemian in BCDA-APS/bluesky_training#83 (comment)

@prjemian prjemian self-assigned this Mar 23, 2023
@prjemian prjemian added the bug label Mar 23, 2023
@prjemian prjemian added this to To do in 1.6.15 Mar 23, 2023
@prjemian prjemian added this to the 1.6.15 milestone Mar 23, 2023
prjemian added a commit that referenced this issue Mar 24, 2023
prjemian added a commit that referenced this issue Mar 24, 2023
prjemian added a commit that referenced this issue Mar 24, 2023
@prjemian prjemian moved this from To do to In progress in 1.6.15 Mar 24, 2023
1.6.15 automation moved this from In progress to Done Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant