Problem with Python 3.4 traceback
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- distributed-systems
Research direction
No repository file or test is named. Start by reproducing the Python 3.4 example around context.register(sumit) and context.sumit(la), then inspect the dynamically constructed module handling; done means identifying whether DistArray or Python/IPython owns the secondary traceback failure and documenting or correcting that scope.
Written by the indexing model from the issue text.
Description
DistArray error or Python 3.4 bug? Maybe something to do with our dynamically constructed local modules. (Note: should just be a NameError, since la was undefined).
In [19]: def sumit(la):
....: return sum(la)
....:
In [20]: context.register(sumit)
In [21]: context.sumit(la)
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.
Traceback (most recent call last):
File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-21-268373916429>", line 1, in <module>
context.sumit(la)
NameError: name 'la' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 1753, in showtraceback
stb = value._render_traceback_()
AttributeError: 'NameError' object has no attribute '_render_traceback_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 776, in structured_traceback
records = _fixed_getinnerframes(etb, context, tb_offset)
File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 230, in wrapped
return f(*args, **kwargs)
File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 259, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 1332, in getinnerframes
framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 1292, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 583, in getsourcefile
if getattr(getmodule(object, filename), '__loader__', None) is not None:
File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 629, in getmodule
os.path.realpath(f)] = module.__name__
AttributeError: 'module' object has no attribute '__name__'
Unfortunately, your original traceback can not be constructed.
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from enthought/distarray
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in enthought/distarray
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100