Skip to content

Latest commit

 

History

History
111 lines (83 loc) · 3.44 KB

PitFalls.md

File metadata and controls

111 lines (83 loc) · 3.44 KB
title description published date tags editor dateCreated
PitFalls
true
2022-09-18 04:51:10 UTC
markdown
2022-09-18 04:51:08 UTC

Common pitfalls and answers

mapping values are not allowed here, line x column y

Possible cause: You have : somewhere where it's not allowed.

If a series has : in the name, you must put the name in quotes.

Possible cause: name is missing : after it in the below example.

series:
  - name
      path: ~/name/

Possible cause: Indentation error.

The rule of thumb is that every time a line ends with :, the next line must be indented two spaces more from the start of the word on the previous line. This means that for keys in lists, you don't indent two spaces from the start of the - (dash) on the previous line.

This is invalid:

series:
  - name:
    watched:
      season: 1

This is fixed:

series:
  - name:
      watched:
        season: 1

ValueError: unsupported format character '"' (0x22) at ....

In case you are using an RSS input, try forcing it into ASCII.

rss:
  url: http://example.com
  ascii: yes

RSS Feed ... is not valid XML

Possible cause: You're not receiving an RSS feed for some reason (i.e. you must be logged in, missing cookies, etc.).

Possible cause: The feed server sends is made by monkeys and isn't outputting well-formed XML. You can use this service to check if the feed is broken.


cron job did not run

Possible cause: Check that you have a working mail system so you receive errors occur during crontab execution.

  • Add the following to the top of the crontab (crontab -e) that runs flexget so you receive cron errors to the right email address.

Possible cause: Ensure the configuration file is within ~/.flexget/ and that the directory and config.yml is owned by, or at least readable by, the user under which cron is operating.


cookielib bug

If you get an error like this:

/usr/lib/python2.6/_MozillaCookieJar.py:109: UserWarning: cookielib bug!
Traceback (most recent call last):
  File "/usr/lib/python2.6/_MozillaCookieJar.py", line 82, in _really_load
    assert domain_specified == initial_dot
AssertionError

  _warn_unhandled_exception()

And you know your Netscape cookie file is properly formatted, but you just can't get it to work, try rewriting the cookie file with curl:

curl -b oldcookiefile.txt --cookie-jar newcookiefile.txt http://url

Distribution Not Found

Traceback (most recent call last):
  File "/usr/local/bin/flexget", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: FlexGet==1.0r2175

This may happen when you upgrade your Linux distribution and the Python installation gets replaced with a newer one - for example 2.6 is replaced by 2.7. When you then try to run flexget it will use the newer version of Python, and FlexGet is not installed on that. To fix the problem, just reinstall FlexGet.