You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/runner/work/city-scrapers-atl/city-scrapers-atl/.venv/bin/scrapy", line 8, in <module>
sys.exit(execute())
File "/home/runner/work/city-scrapers-atl/city-scrapers-atl/.venv/lib/python3.9/site-packages/scrapy/cmdline.py", line 149, in execute
cmd.add_options(parser)
File "/home/runner/work/city-scrapers-atl/city-scrapers-atl/.venv/lib/python3.9/site-packages/city_scrapers_core/commands/validate.py", line 23, in add_options
parser.add_option(
AttributeError: 'ScrapyArgumentParser' object has no attribute 'add_option'
Error: Process completed with exit code 123.
spider is using parser.add_option (which isn't an available method for the underlying object) instead of parser.add_argument.
Proposed fix
Just update the Command.add_options method to call parser.add_argument instead of parser.add_option.
NOTE: I haven't looked at where in production the validate --all command is being run, but the above fix should fix the error assuming that's the intended functionality
Status
PR incoming shortly
The text was updated successfully, but these errors were encountered:
Summary
Issue appeared here: https://github.com/City-Bureau/city-scrapers-atl/runs/7603497825?check_suite_focus=true
CI Test failing due to the following error
spider is using
parser.add_option
(which isn't an available method for the underlying object) instead ofparser.add_argument
.Proposed fix
Just update the
Command.add_options
method to callparser.add_argument
instead ofparser.add_option
.validate --all
command is being run, but the above fix should fix the error assuming that's the intended functionalityStatus
PR incoming shortly
The text was updated successfully, but these errors were encountered: