Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[PYTHON] Undefined name: 'logging' in ./ci/util.py #12406

Closed
cclauss opened this issue Aug 30, 2018 · 1 comment · Fixed by #12488
Closed

[PYTHON] Undefined name: 'logging' in ./ci/util.py #12406

cclauss opened this issue Aug 30, 2018 · 1 comment · Fixed by #12488
Labels

Comments

@cclauss
Copy link
Contributor

cclauss commented Aug 30, 2018

Description

Undefined name: 'logging' in ./ci/util.py Import statement is missing. 6a7bfe9#r30308353 Linters can catch this automatically. @larroy @marcoabreu

Environment info (Required)

Package used (Python/R/Scala/Julia):
(I'm using ...) Python

For Scala user, please provide:

  1. Java version: (java -version)
  2. Maven version: (mvn -version)
  3. Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():

Build info (Required if built from source)

Compiler (gcc/clang/mingw/visual studio):

MXNet commit hash:
(Paste the output of git rev-parse HEAD here.)

Build config:
(Paste the content of config.mk, or the build command.)

Error Message:

./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^

Minimum reproducible example

(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)

Steps to reproduce

flake8 testing of https://github.com/apache/incubator-mxnet on Python 3.7.0

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^
1     F821 undefined name 'logging'
1

What have you tried to solve it?

@anirudhacharya
Copy link
Member

@mxnet-label-bot [Python]

@cclauss cclauss changed the title Undefined name: 'logging' in ./ci/util.py [(PYTHON] Undefined name: 'logging' in ./ci/util.py Aug 31, 2018
@cclauss cclauss changed the title [(PYTHON] Undefined name: 'logging' in ./ci/util.py [PYTHON] Undefined name: 'logging' in ./ci/util.py Aug 31, 2018
cclauss pushed a commit to cclauss/incubator-mxnet that referenced this issue Sep 8, 2018
Fixes apache#12406 @larroy @marcoabreu @szha 

[flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^
1     F821 undefined name 'logging'
1
```
marcoabreu pushed a commit that referenced this issue Sep 8, 2018
…2488)

Fixes #12406 @larroy @marcoabreu @szha 

[flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^
1     F821 undefined name 'logging'
1
```
aaronmarkham pushed a commit to aaronmarkham/incubator-mxnet that referenced this issue Sep 11, 2018
…ache#12488)

Fixes apache#12406 @larroy @marcoabreu @szha 

[flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^
1     F821 undefined name 'logging'
1
```
anirudh2290 pushed a commit to anirudh2290/mxnet that referenced this issue Sep 19, 2018
…ache#12488)

Fixes apache#12406 @larroy @marcoabreu @szha 

[flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ci/util.py:73:21: F821 undefined name 'logging'
                    logging.warning("Exception: %s, Retrying in %d seconds...", str(e), mdelay)
                    ^
1     F821 undefined name 'logging'
1
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants