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

AttributeError: 'Namespace' object has no attribute 'attachments' #286

Closed
zopyx opened this issue Dec 27, 2015 · 5 comments
Closed

AttributeError: 'Namespace' object has no attribute 'attachments' #286

zopyx opened this issue Dec 27, 2015 · 5 comments
Labels
bug Existing features not working as expected crash Problems preventing documents from being rendered

Comments

@zopyx
Copy link

zopyx commented Dec 27, 2015

bin/weasyprint -a test.svg index.html index.pdf
Traceback (most recent call last):
File "bin/weasyprint", line 9, in
load_entry_point('WeasyPrint==0.25', 'console_scripts', 'weasyprint')()
File "/Users/ajung/src/enbit/lib/python3.4/site-packages/weasyprint/main.py", line 150, in main
kwargs['attachments'] = args.attachments
AttributeError: 'Namespace' object has no attribute 'attachments'

How about quality control and unit tests?

@SimonSapin
Copy link
Member

How about quality control and unit tests?

So entitlement. Many helpful. Wow.

@zopyx
Copy link
Author

zopyx commented Dec 27, 2015

Some more blather?

@SimonSapin
Copy link
Member

In other language: you’re using for free the fruit of a couple years of work, and you think that a hostile comment like this is gonna improve your chances of getting help from strangers?

This honestly doesn’t look hard to fix, but now I’m going to do something else instead and won’t comment further on this issue.

By the way, unit tests for __main__.py are in test_command_line_render() in weasyprint/tests/test_api.py.

@zopyx
Copy link
Author

zopyx commented Dec 27, 2015

Software breaking after a few tries...and then couple of years work....poor software..yes, hostile...too much broken software out in the wild that would be better kept in a private repo.

@Kozea Kozea locked and limited conversation to collaborators Dec 27, 2015
@liZe
Copy link
Member

liZe commented Dec 31, 2015

See d09ba47.

@liZe liZe added crash Problems preventing documents from being rendered bug Existing features not working as expected labels Dec 31, 2015
prepare pushed a commit to prepare/WeasyPrint that referenced this issue Oct 31, 2018
How about quality control and unit tests? Well, tests have been added,
wow, such hope they are many helpful.

Oh, and it probably fixes Kozea#286.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Existing features not working as expected crash Problems preventing documents from being rendered
Projects
None yet
Development

No branches or pull requests

3 participants