Skip to content

Instantly share code, notes, and snippets.

@tfmoraes
Created April 27, 2011 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfmoraes/944144 to your computer and use it in GitHub Desktop.
Save tfmoraes/944144 to your computer and use it in GitHub Desktop.
traceback_memmap
<traceback>
Process Process-1:
Traceback (most recent call last):
File "C:\Python26\Lib\multiprocessing\process.py", line 232, in _bootstrap
self.run()
File "C:\Python26\Lib\multiprocessing\process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "C:\Documents and Settings\phamorim\Desktop\test.py", line 7, in print_ma
trix
print matrix
File "C:\Python26\Lib\site-packages\numpy\core\numeric.py", line 1379, in arra
y_str
return array2string(a, max_line_width, precision, suppress_small, ' ', "", s
tr)
File "C:\Python26\Lib\site-packages\numpy\core\arrayprint.py", line 309, in ar
ray2string
separator, prefix)
File "C:\Python26\Lib\site-packages\numpy\core\arrayprint.py", line 189, in _a
rray2string
data = _leading_trailing(a)
File "C:\Python26\Lib\site-packages\numpy\core\arrayprint.py", line 162, in _l
eading_trailing
min(len(a), _summaryEdgeItems))]
File "C:\Python26\Lib\site-packages\numpy\core\memmap.py", line 257, in __arra
y_finalize__
self.filename = obj.filename
AttributeError: 'memmap' object has no attribute 'filename'
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'te
ll'",) in <bound method memmap.__del__ of memmap([0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0], dtype=int16)> ignored
</traceback>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment