While running pythoscope init, it fails on "MemoryError: out of memory" message

Bug #1716337 reported by Sagiv Grupper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pythoscope
New
Undecided
Unassigned

Bug Description

ERROR: Oops, it seems that an internal Pythoscope error occurred. Please file a bug report at https://bugs.launchpad.net/pythoscope

Traceback (most recent call last):
  File "C:\Python27\Scripts\pythoscope-script.py", line 8, in <module>
    load_entry_point('pythoscope==0.4.3', 'console_scripts', 'pythoscope')()
  File "C:\Python27\lib\site-packages\pythoscope\__init__.py", line 190, in main
    generate_tests(args, force, template)
  File "C:\Python27\lib\site-packages\pythoscope\__init__.py", line 118, in generate_tests
    inspect_project(project)
  File "C:\Python27\lib\site-packages\pythoscope\inspector\__init__.py", line 12, in inspect_project
    updates = inspect_project_statically(project)
  File "C:\Python27\lib\site-packages\pythoscope\inspector\__init__.py", line 55, in inspect_project_statically
    return add_and_update_modules(project) + \
  File "C:\Python27\lib\site-packages\pythoscope\inspector\__init__.py", line 37, in add_and_update_modules
    static.inspect_module(project, modpath)
  File "C:\Python27\lib\site-packages\pythoscope\inspector\static.py", line 130, in inspect_module
    return inspect_code(project, path, read_file_contents(path))
  File "C:\Python27\lib\site-packages\pythoscope\inspector\static.py", line 151, in inspect_code
    last_import=visitor.last_import)
  File "C:\Python27\lib\site-packages\pythoscope\store.py", line 151, in create_module
    module = Module(subpath=self._extract_subpath(path), project=self, **kwds)
  File "C:\Python27\lib\site-packages\pythoscope\store.py", line 799, in __init__
    project.remember_code_tree(code_tree, self)
  File "C:\Python27\lib\site-packages\pythoscope\store.py", line 188, in remember_code_tree
    self.code_trees_manager.remember_code_tree(code_tree, module.subpath)
  File "C:\Python27\lib\site-packages\pythoscope\code_trees_manager.py", line 49, in remember_code_tree
    code_tree.save(self._code_tree_path(module_subpath))
  File "C:\Python27\lib\site-packages\pythoscope\store.py", line 332, in save
    pickled_code_tree = cPickle.dumps(self, cPickle.HIGHEST_PROTOCOL)
MemoryError: out of memory

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.