Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

TypeError: compile() takes exactly 1 argument (2 given) #105

Open
wugh opened this issue Apr 10, 2013 · 2 comments
Open

TypeError: compile() takes exactly 1 argument (2 given) #105

wugh opened this issue Apr 10, 2013 · 2 comments

Comments

@wugh
Copy link

wugh commented Apr 10, 2013

After installing wok from github, I got these error :
(ENV)tom@nextzone ~/robmd.net $ wok
Textile not enabled.
Traceback (most recent call last):
File "/home/tom/ENV/bin/wok", line 7, in
execfile(file)
File "/home/tom/ENV/src/wok/scripts/wok", line 4, in
Engine()
File "/home/tom/ENV/src/wok/wok/engine.py", line 97, in init
self.generate_site()
File "/home/tom/ENV/src/wok/wok/engine.py", line 132, in generate_site
self.prepare_output()
File "/home/tom/ENV/src/wok/wok/engine.py", line 239, in prepare_output
self.run_hook('site.output.post', self.options['output_dir'])
File "/home/tom/ENV/src/wok/wok/engine.py", line 197, in run_hook
returns.append(hook(self.options, *args))
TypeError: compile() takes exactly 1 argument (2 given)

@mythmon
Copy link
Owner

mythmon commented Apr 11, 2013

This looks like a hook which hasn't been updated. Hooks now take the site config as the first parameter. This would be located in the hooks directory in the site that you are trying to render.

@wugh
Copy link
Author

wugh commented Apr 11, 2013

Here is another problem, when I use pip install wok to install wok, then I got ImportError
tom@nextzone /tmp/wok/docs $ wok --server
Textile not enabled.
Traceback (most recent call last):
File "/usr/bin/wok", line 4, in
Engine()
File "/usr/lib64/python2.7/site-packages/wok/engine.py", line 97, in init
self.generate_site()
File "/usr/lib64/python2.7/site-packages/wok/engine.py", line 128, in generate_site
self.load_hooks()
File "/usr/lib64/python2.7/site-packages/wok/engine.py", line 189, in load_hooks
raise ImportError(e)
ImportError: No module named contrib.hooks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants