Issues getting Mylar3 to run on Ubuntu 20.04

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
CraftyClown
Posts: 123
Joined: Fri Jan 30, 2015 9:49 pm

Issues getting Mylar3 to run on Ubuntu 20.04

Post by CraftyClown »

Hi evilhero,

I'm trying to migrate over from a working Mylar install using Python 2.7 and I seem to be having some issues that I can't get to the bottom of.

Everything seemed to install ok and I ran the dependencies, however when I run

Code: Select all

python3 Mylar.py
I get the following message:

Code: Select all

Traceback (most recent call last):
  File "Mylar.py", line 26, in <module>
    import mylar
  File "/opt/mylar3/mylar/__init__.py", line 38, in <module>
    from mylar import logger, versioncheckit, rsscheckit, searchit, weeklypullit, PostProcessor, update             r, helpers
  File "/opt/mylar3/mylar/rsscheckit.py", line 21, in <module>
    from mylar import logger, rsscheck, helpers, auth32p
  File "/opt/mylar3/mylar/rsscheck.py", line 52, in <module>
    feedparser._FeedParserMixin._start_newznab_attr = _start_newznab_attr
AttributeError: module 'feedparser' has no attribute '_FeedParserMixin'
Any thoughts on what might be going wrong?


EDIT: Just to make sure I double checked all requirements were satisfied.
Python version is 3.8.2
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Issues getting Mylar3 to run on Ubuntu 20.04

Post by evilhero »

Feedparser got a new release yesterday and it broke backwards compatibility.if you uninstall the current version (pip uninstall feedparser), and then change the line in requirements.txt to feedparser==5.2.1 and then redo the requirements it'll work.

I haven't been able to get to a a machine as of yet to fix requirements or change how mylar uses the feedparser module so that it's compatible with 6.0.0 as of yet. There is a git issue here in regards to this.
CraftyClown
Posts: 123
Joined: Fri Jan 30, 2015 9:49 pm

Re: Issues getting Mylar3 to run on Ubuntu 20.04

Post by CraftyClown »

Thanks mate, I presume that should be

Code: Select all

pip3 uninstall feedparser
?

EDIT: Sorry ignore me. I'm wrongly presuming others have python 2.7 still installed :)
CraftyClown
Posts: 123
Joined: Fri Jan 30, 2015 9:49 pm

Re: Issues getting Mylar3 to run on Ubuntu 20.04

Post by CraftyClown »

Thanks evil that did the trick and I'm now up on V3

This was actually the first stage of me moving over to a docker environment (I wanted to make sure I was on V3 first)

Is it fairly easy to make the jump to a docker container? Would it just be a case of setting the container up and then moving over the cache, config.ini and mylar.db file, as I did with the upgrade? Or is there more to it?

Cheers
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Issues getting Mylar3 to run on Ubuntu 20.04

Post by evilhero »

Moving over the cache and ini are the easiest aspects - save for making sure you update the ini to point to your new locations / values within your docker container.

Updating the locations of the mylar.db I guess are dependent on how your ran it previously. If the paths are identical (ie. you previously ran a docker for v2 and nothing has changed as far as locations go), you should be able to just drop it in the directory and go for it to work.

If you were on a non-docker install, or the paths have changed between docker versions (just for your Comic Location path, that's the only one that matters) - then you'd need to do the locmove workflow in order to update all the paths in the db to the new location.
CraftyClown
Posts: 123
Joined: Fri Jan 30, 2015 9:49 pm

Re: Issues getting Mylar3 to run on Ubuntu 20.04

Post by CraftyClown »

Thanks evil,

excuse my ignorance but what exactly is the locmove workfow?
Post Reply