maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
653 stars 162 forks source link

AttributeError: 'Namespace' object has no attribute 'format' #39

Closed TravelTrader closed 4 years ago

TravelTrader commented 4 years ago

This is the error code (line 361, in the craft_cmd function):

Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/home/XUSERX/.local/lib/python3.6/site-packages/webscreenshot/webscreenshot.py", line 361, in craft_cmd
    output_format = options.format if options.renderer == 'phantomjs' else 'png'
AttributeError: 'Namespace' object has no attribute 'format'

Would be great if I could get it run! Thanks for help.

maaaaz commented 4 years ago

Hello,

It seems that it's similar to this and related to that

Cheers.

TravelTrader commented 4 years ago

Thank you very much.

~Now I had the same error as this.~

~My additional question is:~ ~How can I add the option --no-xserver in my Python code?~ ~Is there a possibility?~

Sorry, I solved it. I just set the right option variable to True. So easy. Thanks. It seems it's working. Great code!

maaaaz commented 4 years ago

Glad to here that it's working for you @TravelTrader !