Generating site error, from 0.8.5a15 to 0.8.8

91 views
Skip to first unread message

Alexandre Dube

unread,
Dec 4, 2013, 8:50:29 AM12/4/13
to hyde...@googlegroups.com
Hi,

  After upgrading Hyde from 0.8.5a15 to 0.8.8, I get an error when trying to generate my existing site: "hyde Error occured when calling sitedefaults"

  My site_defaults.py content looks like this: http://pastebin.com/CSUY7fcp

  Any idea what's causing this ?  Or, any hint about how I can debug this issue ?

Thanks,

Alexandre

Alexandre Dube

unread,
Dec 4, 2013, 9:11:33 AM12/4/13
to hyde...@googlegroups.com
In an other environment (iOS), after installing 0.8.8, I get an other error: 

hyde Error occurred when processing template: [/path/to/site/content/en/blog/index.html]: UndefinedError("'None' has no attribute 'meta'",) 

Any hint how I can debug this issue ?

FYI, the command I used to install hyde is:
  sudo pip install -e git://github.com/hyde/hyde.git#egg=hyde

Thanks,

Alexandre

Lakshmi Narasimhan

unread,
Dec 4, 2013, 11:06:20 AM12/4/13
to hyde...@googlegroups.com
> Any idea what's causing this ? 

I think the "lc" value is missing from resource.meta.  If you add a lc
in your site.yaml "meta" section, this error should go away.

Not sure why this happens only in 0.8.8 though.  Are there other changes you
have made to the site or is it just the upgrade that is causing this failure?

----

> Or, any hint about how I can debug this issue ?

The best debugging info you can get is by adding a -v flag to gen. 

hyde -v gen -r

In this case it does point out the line of the failure.

Thanks
Lakshmi
--
You received this message because you are subscribed to the Google Groups "Hyde" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyde-dev+u...@googlegroups.com.
To post to this group, send email to hyde...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hyde-dev/3dd5c15b-cb9b-4dcb-820d-8fc0f5b211dd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lakshmi Narasimhan

unread,
Dec 4, 2013, 11:09:51 AM12/4/13
to hyde...@googlegroups.com
The problem is in the file contents of (/path/to/site/content/en/blog/index.html).

I think you might have some code in there to loop through or get a page reference and access
the meta variable.  You can check further by using the verbose flag or writing out all
the pages that you access in your loop inside that file and make sure no stray files
(hidden files, temp files, text files etc) are not getting processed by default.

I can help you further if you have the source somewhere.

Thanks
Lakshmi
--
You received this message because you are subscribed to the Google Groups "Hyde" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyde-dev+u...@googlegroups.com.
To post to this group, send email to hyde...@googlegroups.com.

Alexandre Dube

unread,
Dec 4, 2013, 1:24:49 PM12/4/13
to hyde...@googlegroups.com
Hello Lakshmi,

  Thanks for the reply.

  The lc value is already set in site.yaml and also in content/fr/meta.yaml where it is set to 'fr_CA'.  The file template causing the error is content/fr/index.html, and I'm not sure why it doesn't get the according fr_CA value there...

  I had tested 0.8.8 with a site hosted on a private server, but I checked an other which is available on GitHub and in which I use the same kind of structure and it also has the issue.  If you want to quickly check you could clone it and lunch the gen command:


Thanks a lot for your help,

Alexandre

Lakshmi Narasimhan

unread,
Dec 4, 2013, 9:25:18 PM12/4/13
to hyde...@googlegroups.com
Hi,

This is probably something to do with the locale setting:

The above paste worked for me.  You can revert the locale
to `resource.meta.lc` to see the detailed exception.

Not sure why this happens with hyde 0.8.8 only though. 

Thanks
Lakshmi

Alexandre Dube

unread,
Dec 5, 2013, 10:11:46 AM12/5/13
to hyde...@googlegroups.com
Yup, that did the trick.  Thanks a lot Lakshmi !

This didn't fix the other issue I had with iOS though.  I'll reply to the other "branch" of the tread.

Alexandre Dube

unread,
Dec 5, 2013, 10:13:09 AM12/5/13
to hyde...@googlegroups.com
I meant OSX, sorry.
Reply all
Reply to author
Forward
0 new messages