Hey. I'm running a super simple 2 code line program:
from unidecode import unidecode
When I use Run on this program, I get this:
When I debug this program using pydev, I get this:
pydev debugger: process 1453 is connecting
Connected to pydev debugger (build 139.487)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2198, in <module>
globals = debugger.run(setup['file'], None, None)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1637, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/Ben/dev/socialstudios/socialstudios/engine/fiddling.py", line 390, in <module>
File "/Users/Ben/dev/socialstudios/socialstudios/.work/lib/python2.7/site-packages/unidecode/__init__.py", line 54, in unidecode
mod = __import__('unidecode.x%03x'%(section), , , ['data'])
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_pluginbase.py", line 426, in plugin_import
space = _discover_space(name, ref_globals)
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_pluginbase.py", line 99, in _discover_space
mod_name = globals.get('__name__')
AttributeError: 'list' object has no attribute 'get'
Process finished with exit code 1
What am I doing wrong here? How can this be fixed?
Thanks for your help!