Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_trees() raises exception #26

Closed
Suor opened this issue Feb 5, 2015 · 2 comments
Closed

load_trees() raises exception #26

Suor opened this issue Feb 5, 2015 · 2 comments

Comments

@Suor
Copy link
Contributor

Suor commented Feb 5, 2015

>>> import webstruct
>>> list(webstruct.load_trees('data/*.html', webstruct.HtmlLoader()))
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-21-4694a0768f78> in <module>()
----> 1 list(webstruct.load_trees('data/*.html', webstruct.HtmlLoader()))

/home/suor/projects/.virtualenvs/advices/local/lib/python2.7/site-packages/webstruct/loaders.pyc in <genexpr>(***failed resolving arguments***)
    160     """
    161     return chain.from_iterable(
--> 162         load_trees_from_files(pat, loader, verbose) for pat, loader in patterns
    163     )
    164 

ValueError: need more than 1 value to unpack

In webstuct 0.2.

@kmike
Copy link
Member

kmike commented Feb 5, 2015

Hi @Suor,
The API for load_trees is changed in webstruct master; it looks like you are using master docs with webstruct 0.2. Updating webstruct to github master should fix this exampe.

@kmike kmike closed this as completed Feb 5, 2015
@Suor
Copy link
Contributor Author

Suor commented Feb 5, 2015 via email

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

No branches or pull requests

2 participants