Script errors when trying to post item.yml
See original GitHub issueHi Guys,
Getting script erros when trying to post a file. I am not sure if anyone can sniff out the issue here, I am a total Python noob.
python3 kijiji_repost_headless repost posts/7030-woodbine/item.yml
Traceback (most recent call last):
File "/opt/alt/python35/lib64/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/alt/python35/lib64/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "kijiji_repost_headless/__main__.py", line 195, in <module>
main()
File "kijiji_repost_headless/__main__.py", line 51, in main
args.function(args)
File "kijiji_repost_headless/__main__.py", line 139, in repost_ad
api.login(args.username, args.password)
File "kijiji_repost_headless/kijiji_api.py", line 96, in login
'ca.kijiji.xsrf.token': get_token(resp.text, 'ca.kijiji.xsrf.token'),
File "kijiji_repost_headless/kijiji_api.py", line 38, in get_token
res = soup.select("[name={}]".format(attrib_name))
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/bs4/element.py", line 1376, in select
return soupsieve.select(selector, self, namespaces, limit, **kwargs)
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/__init__.py", line 108, in select
return compile(select, namespaces, flags).select(tag, limit)
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/__init__.py", line 59, in compile
return cp._cached_css_compile(pattern, namespaces, flags)
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/css_parser.py", line 178, in _cached_css_compile
CSSParser(pattern, flags).process_selectors(),
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/css_parser.py", line 810, in process_selectors
return self.parse_selectors(self.selector_iter(self.pattern), index, flags)
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/css_parser.py", line 688, in parse_selectors
key, m = next(iselector)
File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/css_parser.py", line 797, in selector_iter
raise SyntaxError("Invlaid character {!r} at position {}".format(pattern[index], index))
SyntaxError: Invlaid character '[' at position 0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
YAML syntax error when string contains a colon + space
There is a YAML syntax error if you try to enter a colon followed by a space ( ": " ) inside any...
Read more >Ansible stdout script error when trying to output to file
You got this error because the return of - name: Run yum update and output details task does not contain any attribute stdout....
Read more >How to find and fix script errors with Raygun
Below is a working example of correctly manually sending errors. Below are some common pitfalls that cause Script errors to be sent to...
Read more >Unknown(Script Error)
"Script Error" happens when an uncaught JavaScript error crosses domain boundaries in violation of the cross-origin policy. For example, if you host your ......
Read more >Understanding and fixing “too many script compilations” errors ...
When using Elasticsearch, in some rare instances you may see an error such as “Too many dynamic script compilations within X minutes”.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow, thanks so much for your fast reply @facelessuser! That definitely helps, as I said, I am totally running blindly into the world of Python with this project. Excuse my ignorance, but should I go in and make these edits to the
soupsieve
file, or wait for a project update?@ArthurG not sure if this helps you at all, I’ll be making the changes on my end but if you want to update the project this nice gentleman has been a great help!