Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Script errors when trying to post item.yml

See original GitHub issue

Hi 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/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/alt/python35/lib64/python3.5/", line 85, in _run_code
    exec(code, run_globals)
  File "kijiji_repost_headless/", line 195, in <module>
  File "kijiji_repost_headless/", line 51, in main
  File "kijiji_repost_headless/", line 139, in repost_ad
    api.login(args.username, args.password)
  File "kijiji_repost_headless/", line 96, in login
    'ca.kijiji.xsrf.token': get_token(resp.text, 'ca.kijiji.xsrf.token'),
  File "kijiji_repost_headless/", line 38, in get_token
    res ="[name={}]".format(attrib_name))
  File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/bs4/", line 1376, in select
    return, self, namespaces, limit, **kwargs)
  File "/home/zachatki/virtualenv/public__html_cgi-bin_tester/3.5/lib/python3.5/site-packages/soupsieve/", 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/", 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/", 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/", 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/", 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/", 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

zachatkinsoncommented, Jan 9, 2019

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?

zachatkinsoncommented, Jan 9, 2019

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found