NameError: global name 'eprint' is not defined
See original GitHub issueHey, we are using xlsx2csv
to import sheets and it generally works fine.
Recently, while trying to upload a specific sheet we got the following error:
File "/home/rof/.pyenv/versions/2.7.16/bin/xlsx2csv", line 817, in handleCharData
eprint("Error: potential invalid date format.")
NameError: global name 'eprint' is not defined
We moved the eprint
method at the top of the file, and the script worked with only a warning as I assume was intended, but I am not sure if that is a correct solution?
thanks ac
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Python NameError: global name not defined - Stack Overflow
Python NameError: global name not defined · 1. Of course Chunk is never defined, you never assign to it. · 2. There are...
Read more >NameError: global name 't' is not defined - Google Groups
hay. I try to write a py script to calculate something for me. The script is called friction.py and containes #!/usr/bin/env sage -python...
Read more >Day20-Function-Variable Scope - iT 邦幫忙
... except NameError as e: print('Name Error: {0}'.format(e)) # Name Error: name 'para1' is not defined # Name Error: name 'var2' is not...
Read more >(15/15) NameError: global name 'true' is not defined
(15/15) NameError: global name 'true' is not defined. I have having difficulty understanding what to do. I am sure the issue is right...
Read more >python throw error Code Example - Code Grepper
except Exception as e: print(e). Source: stackoverflow.com ... global name 'asd' is not defined ("global name 'asd' is not defined",).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same issue:
thanks,
I am also facing similar issue. xlsx2csv version 0.7.5. Anybody have any solution for this? Please suggest.