hyde/hyde — Issue #155: maximum recursion depth
Author: godavemon
Created: 2012-02-23 02:02:11+00:00
State: open

I'm hitting a maximum recursion depth error when generating my site one one computer but not the other, though the files are exactly the same.

The working one is using python2.7 on linux
the non-working one is python2.6 on mac

Has anyone run into this? Been looking through the get_dependencies and update_deps functions in generator.py and can't quite figure out what's happening.

$ ./hyde gen
17:58:28 hyde.engine Reading site configuration from [/Users/davidbeyer/projects/chartio-hyde/site.yaml]
17:58:28 hyde.engine Reading site contents
17:58:28 hyde.engine Generating site at [/Users/davidbeyer/projects/chartio-hyde]
17:58:28 hyde.engine Configuring the template environment
17:58:29 hyde.engine Generating site to [/Users/davidbeyer/projects/chartio-hyde/deploy]
Traceback (most recent call last):
File "/usr/local/bin/hyde", line 5, in
Engine().run()
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/engine.py", line 39, in run
super(Engine, self).run(args)
File "build/bdist.macosx-10.6-universal/egg/commando.py", line 198, in run
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/engine.py", line 118, in gen
gen.generate_all(incremental=incremental)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 208, in generate_all
self.__generate_node__(self.site.content, incremental)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 306, in __generate_node__
self.__generate_resource__(resource, incremental)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 349, in __generate_resource__
self.events.binary_resource_complete(resource)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/contextlib.py", line 34, in __exit__
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 55, in context_for_resource
yield self.__context__
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 327, in __generate_resource__
self.update_deps(resource)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 144, in update_deps
deps.extend(self.get_dependencies(dep_res))

..... (many many more lines of the same repeated) ....

File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 127, in get_dependencies
self.update_deps(resource)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 148, in update_deps
deps.extend(self.get_dependencies(dep_res))
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/generator.py", line 123, in get_dependencies
rel_path = resource.relative_path
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/site.py", line 111, in relative_path
return self.source_file.get_relative_path(self.node.root.source_folder)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/fs.py", line 126, in get_relative_path
self.name)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/fs.py", line 99, in ancestors
while folder.parent != stop:
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/fs.py", line 84, in parent
return Folder(os.path.dirname(self.path))
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/fs.py", line 500, in __init__
super(Folder, self).__init__(path)
File "/Users/davidbeyer/projects/chartio-hyde/hyde/hyde/fs.py", line 34, in __init__
super(FS, self).__init__()
RuntimeError: maximum recursion depth exceeded while calling a Python object