posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

what does "no `www_root` specified" mean? #188

Closed luckypoem closed 9 years ago

luckypoem commented 10 years ago

hi.

as3:~/acrylamid/docs# acrylamid compile warn no www_root specified, using localhost:8000 0 new, 0 updated, 0 skipped [0.19s] as3:~/acrylamid/docs#

i opened conf.py,didn't see where to set www_root

how to fix it? tks

posativ commented 10 years ago

It is used for feed urls and disqus integration. If you do not provide a www_root some links may be invalid. See http://posativ.org/acrylamid/conf.py.html#basic-settings -> www_root for details.

luckypoem commented 10 years ago

hi.pls see below. how to fix it?

as3:~/acrylamid# acrylamid compile Traceback (most recent call last): File "/usr/local/bin/acrylamid", line 9, in load_entry_point('acrylamid==0.8.dev0', 'console_scripts', 'acrylamid')() File "/usr/local/lib/python2.7/site-packages/acrylamid-0.8.dev0-py2.7.egg/acrylamid/init.py", line 164, in Acryl commands.compile(conf, env) File "/usr/local/lib/python2.7/site-packages/acrylamid-0.8.dev0-py2.7.egg/acrylamid/commands.py", line 220, in compile for buf, path in v.generate(conf, env, data): File "/usr/local/lib/python2.7/site-packages/acrylamid-0.8.dev0-py2.7.egg/acrylamid/views/articles.py", line 46, in generate tt = env.engine.fromfile(env, self.template) File "/usr/local/lib/python2.7/site-packages/acrylamid-0.8.dev0-py2.7.egg/acrylamid/templates/jinja2.py", line 137, in fromfile Template(env, path, self.get_template(path))) File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 791, in get_template return self._load_template(name, self.make_globals(globals)) File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 765, in _load_template template = self.loader.load(self, name, globals) File "/usr/local/lib/python2.7/site-packages/acrylamid-0.8.dev0-py2.7.egg/acrylamid/templates/jinja2.py", line 69, in load source, filename, uptodate = self.get_source(environment, child) File "/usr/local/lib/python2.7/site-packages/jinja2/loaders.py", line 178, in get_source raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: articles.html as3:~/acrylamid# as3:~/acrylamid# find . -name articles.html as3:~/acrylamid#

there is no articles.html,where is the file?

posativ commented 10 years ago

It looks like the template is not found. Usually, when you follow the quickstart, you initialize a basic blog structure (including a theme/ directory). If you use custom layouts, make sure to change them for each view separately (e.g. "view": {..., template:"foo.html"}.

luckypoem commented 10 years ago

hi.

i feel very strange.acrylamid has no init parameter??

as3:~/acrylamid# acrylamid init myblog usage: acrylamid [-h] [-v] [-q] [-C] [--conf /path/to/conf] [--version] ... acrylamid: error: argument parser: invalid choice: 'init' (choose from 'compile', 'view', 'autocompile', 'co', 'gen', 'generate', 'serve', 'srv', 'aco', 'info', 'ping', 'check', 'deploy', 'dp', 'import', 'new') as3:~/acrylamid#

tks

posativ commented 10 years ago

The init command has been removed from master. You need to initialize with the PyPi release and then upgrade to master. Sorry for the inconvenience.

luckypoem commented 10 years ago

hi. wether i use "python setup.py install" or "easy_install -U acrylamid",THEN when i run "acrylamid init myblog",it always show: acrylamid: error: argument parser: invalid choice: 'init' (choose from 'compile', 'view', 'autocompile', 'co', 'gen', 'generate', 'serve', 'srv', 'aco', 'info', 'ping', 'check', 'deploy', 'dp', 'import', 'new')

so can u give a version with the init feature?can give the version's download link?

posativ commented 10 years ago

Can you show me the output of pip freeze?

luckypoem commented 10 years ago

hi.

as3:~/acrylamid# pip freeze Warning: cannot find svn location for Attest-latest==0.6dev-20121124

FIXME: could not find svn URL in dependency_links for this package:

Attest-latest==0.6dev-20121124 Django==1.4.10 Jinja2==2.7.1 Logbook==0.6.0 Mako==0.7.3 Markdown==2.1.1 MarkupSafe==0.18 acrylamid==0.8.dev0

posativ commented 10 years ago

You still have the master installed. Do:

  1. pip uninstall acrylamid
  2. make sure, pip freeze | grep acrylamid is empty. If not, go to 1.
  3. pip install acrylamid
luckypoem commented 10 years ago

hi.

thank u so much for ur patience.finally i solved it