Mylar3 feedparser issues

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Mylar3 feedparser issues

Post by MIghtyThor460 »

I am running into an error with feedparser when trying to run new install of mylar3. I've tried uninstalling and rerunning the requirements.txt but I still end up with the same error:

Code: Select all

 python3 Mylar.py
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, updater, 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 suggestions?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar3 feedparser issues

Post by evilhero »

So first, how did you install Mylar (git / source / docker)?

And then next, which version of Mylar are you running (master /python3-dev), and what commit (or version number if you're running master) ?

We'll also need to make sure the version of feedparser you have installed is correct for the version of python you're using Mylar against. So which version of python are you using, and what is the output of doing a pip list ? If it spits back pip not found or it doesn't look right - make sure that you're calling the right version of pip. Depending on how many versions of python 3 you have on your system, pip might reference a different version that the python you use to run Mylar with (ie. it could be called pip3).
But we'll need to see what version of feedparser you're running regardless.

Let's start with those questions first...
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Re: Mylar3 feedparser issues

Post by MIghtyThor460 »

I installed via git following the upgrade instructions onn the git page.

I'm not sure which version I'm running since I have yet to successfully launch Mylar3.

I just installed Python 3.6.9 today. When I ran the requirments.txt I used the pip3 command. When I try and run Mylar I use pthyon3 Mylar.py

pip3 list:

Code: Select all

pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
altgraph (0.17)
APScheduler (3.6.3)
asn1crypto (0.24.0)
attrs (17.4.0)
Automat (0.6.0)
beautifulsoup4 (4.9.3)
blinker (1.4)
bottle (0.12.13)
certifi (2020.11.8)
cffi (1.14.4)
cfscrape (2.1.1)
chardet (3.0.4)
cheroot (8.2.1)
CherryPy (18.6.0)
click (6.7)
cloud-init (19.4)
colorama (0.3.7)
command-not-found (0.3)
configobj (5.0.6)
configparser (5.0.1)
constantly (15.1.0)
cryptography (2.1.4)
cycler (0.10.0)
distro-info (0.18ubuntu0.18.04.1)
docker (2.5.1)
docker-pycreds (0.2.1)
feedparser (6.0.2)
Glances (2.11.1)
httplib2 (0.9.2)
hyperlink (17.3.1)
idna (2.10)
importlib-metadata (1.6.1)
importlib-resources (3.3.0)
incremental (16.10.1)
influxdb (4.1.1)
jaraco.classes (3.1.0)
jaraco.collections (3.0.0)
jaraco.functools (3.0.1)
jaraco.text (3.2.0)
Jinja2 (2.10)
jsonpatch (1.16)
jsonpointer (1.10)
jsonschema (2.6.0)
keyring (10.6.0)
keyrings.alt (3.0)
language-selector (0.1)
Mako (1.1.3)
MarkupSafe (1.1.1)
matplotlib (2.1.1)
more-itertools (8.6.0)
natsort (7.1.0)
netifaces (0.10.4)
numpy (1.13.3)
oauthlib (2.0.6)
olefile (0.45.1)
PAM (0.4.2)
Pillow (6.2.2)
pip (9.0.1)
ply (3.11)
portend (2.7.0)
psutil (5.4.2)
pyasn1 (0.4.2)
pyasn1-modules (0.2.1)
pycparser (2.20)
pycrypto (2.6.1)
pycryptodomex (3.4.7)
pygobject (3.26.1)
pyinstaller (4.1)
pyinstaller-hooks-contrib (2020.10)
PyJWT (1.5.3)
pyOpenSSL (17.5.0)
pyparsing (2.2.0)
pyserial (3.4)
pysmi (0.2.2)
pysnmp (4.4.3)
pystache (0.5.4)
python-apt (1.6.5+ubuntu0.2)
python-dateutil (2.6.1)
python-debian (0.1.32)
pytz (2020.4)
pyxdg (0.25)
PyYAML (3.12)
requests (2.25.0)
requests-unixsocket (0.1.5)
SecretStorage (2.3.1)
service-identity (16.0.0)
setuptools (50.3.2)
sgmllib3k (1.0.0)
simplejson (3.17.2)
six (1.15.0)
soupsieve (2.0.1)
ssh-import-id (5.7)
systemd-python (234)
tempora (4.0.1)
Twisted (17.9.0)
tzlocal (2.1)
ufw (0.36)
unattended-upgrades (0.1)
unrar (0.4)
unrar-cffi (0.1.0a5)
urllib3 (1.26.2)
websocket-client (0.44.0)
wheel (0.30.0)
zc.lockfile (2.0)
zipp (3.4.0)
zope.interface (4.3.2)
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar3 feedparser issues

Post by evilhero »

Well there's the problem most likely then - python 3.6.9 isn't a supported version for use with Mylar3 (as mentioned on the github readme).

You'll have to use at least python3.7.2, but if you can go higher it's best to go current (mylar3 is coded primarily against 3.8 1).

Once you install a newer version, you'll need to run the appropriate pip command again to install the requirements.txt against the newly installed version of python.
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Re: Mylar3 feedparser issues

Post by MIghtyThor460 »

So here is where I am confused. I've installed Python 3.8 multiple times. after every attempt I run python3 --version to confirm and it always comes back 3.6.9. I'm not sure what I'm doing wrong.
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Re: Mylar3 feedparser issues

Post by MIghtyThor460 »

I took a shot in the dark and tried python3.8 instead of python3 when launching myalr3. This is the error I got:

Code: Select all

python3.8 Mylar.py
Traceback (most recent call last):
  File "Mylar.py", line 26, in <module>
    import mylar
  File "/opt/mylar3/mylar/__init__.py", line 33, in <module>
    from apscheduler.schedulers.background import BackgroundScheduler
ModuleNotFoundError: No module named 'apscheduler'
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar3 feedparser issues

Post by evilhero »

So your python3.6.9 uses the command python3, and your 3.8 version uses python3.8 as the command. This your pip commands are tied to the same logistics, pip3 will install modules for use with python 3.6.9, and pip3.8 will do the same but for python 3.8.

You need to do the pip install requirements.txt installation aspect (as per the github readme) using the correct version of pip, which is tied to your python version (in this case, it's probably pip3.8, not pip).

So if you run python as python3.8, then your pip command to install modules to be used by that specific version is pip3.8, not pip, nor pip3. As an example, pip3.8 install -r requirements.txt
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Re: Mylar3 feedparser issues

Post by MIghtyThor460 »

So pip3.8 comes up as command not found. I'll try and do some more googling. This has been my first foray into Linux so I'm sure I've mucked something up.
User avatar
MIghtyThor460
Posts: 32
Joined: Mon Apr 20, 2015 1:26 pm

Re: Mylar3 feedparser issues

Post by MIghtyThor460 »

I figured it out!

I used this guide: https://tech.serhatteker.com/post/2019- ... on-ubuntu/

I was able to force python3 to use 3.8 instead of 3.6. From there I reran the pip3 install -r requirements.txt and then ran Mylar. Thank you for you help! Next step is to reconfigure my autolaunch!
Post Reply