Help moving to Mylar3 in Ubuntu

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
musictrivianut
Posts: 19
Joined: Fri Jun 10, 2016 10:07 am

Help moving to Mylar3 in Ubuntu

Post by musictrivianut »

I really hate that I have to ask for help on this, but I just do not know enough about Python to figure it out myself. Any and all help appreciated.

I *just* discovered that there is a new version of Mylar, so I made my way to the github page and followed the instructions to move to it. Meaning I:

ran pip3 install -r requirements .txt (everything seemed to already be satisfied)
cloned the github repository to /opt/mylar3, same directory as the previous version, which ran just fine
copied over the config and db files and cache directory
edited config as instructed
reran requirements from mylar3 root directory

However, when trying to start the program (python3 Mylar.py), I get errors:

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 39, in <module>
    import cherrypy
  File "/home/wayne/.local/lib/python3.8/site-packages/cherrypy/__init__.py", line 66, in <module>
    from ._cperror import (
  File "/home/wayne/.local/lib/python3.8/site-packages/cherrypy/_cperror.py", line 135, in <module>
    from cherrypy.lib import httputil as _httputil
  File "/home/wayne/.local/lib/python3.8/site-packages/cherrypy/lib/httputil.py", line 20, in <module>
    import jaraco.collections
ModuleNotFoundError: No module named 'jaraco.collections'
I am at a loss, because I know that CherryPy and jaraco.collections are installed:

Code: Select all

$ pip3 list                           
Package                   Version
------------------------- --------------------
altgraph                  0.17
APScheduler               3.7.0
apsw                      3.28.0.post1
apturl                    0.5.2
asn1crypto                1.4.0
astropy                   4.2
atomicwrites              1.4.0
attrs                     20.3.0
beautifulsoup4            4.9.3
blinker                   1.4
bpytop                    1.0.63
Brlapi                    0.7.0
bsddb3                    6.2.7
certifi                   2020.12.5
cffi                      1.14.4
cfscrape                  2.1.1
chardet                   4.0.0
Cheetah3                  3.2.6
cheroot                   8.2.1
CherryPy                  18.6.0 <-----------
chrome-gnome-shell        0.0.0
click                     7.1.2
colorama                  0.4.4
comictagger               1.3.0a0
command-not-found         0.3
configobj                 5.0.6
configparser              5.0.1
coverage                  5.3.1
cryptography              3.3.1
css-parser                1.0.6
cssselect                 1.1.0
cssutils                  1.0.2
cupshelpers               1.0
dbus-python               1.2.16
decorator                 4.4.2
defer                     1.0.6
defusedxml                0.6.0
distro                    1.5.0
distro-info               0.0.0
dnspython                 2.0.0
entrypoints               0.3
ExifRead                  2.3.2
feedparser                6.0.2
gramps                    5.1.2
html2text                 2020.1.16
html5-parser              0.4.9
html5lib                  1.1
httplib2                  0.18.1
hypothesis                5.43.4
idna                      2.10
ifaddr                    0.1.7
importlib-metadata        3.3.0
iniconfig                 1.1.1
iotop                     0.6
jaraco.classes            3.1.0
jaraco.collections        3.1.0 <----------
jaraco.functools          3.1.0
jaraco.text               3.4.0
jeepney                   0.6.0
keyring                   21.8.0
keyrings.alt              4.0.2
language-selector         0.1
launchpadlib              1.10.13
lazr.restfulclient        0.14.3
lazr.uri                  1.0.5
louis                     3.12.0
lxml                      4.6.2
macaroonbakery            1.3.1
Mako                      1.1.3
Markdown                  3.3.3
MarkupSafe                1.1.1
mechanize                 0.4.5
more-itertools            8.6.0
msgpack                   1.0.2
mutagen                   1.45.1
mysqlclient               1.4.4
natsort                   3.5.2
netifaces                 0.10.9
nose                      1.3.7
notify2                   0.3.1
numpy                     1.19.4
oauth                     1.0.1
oauthlib                  3.1.0
odfpy                     1.4.1
olefile                   0.46
packaging                 20.8
pbr                       5.5.1
pexpect                   4.8.0
Pillow                    6.2.2
pip                       21.0.1
pip-review                1.1.0
pluggy                    0.13.1
ply                       3.11
portend                   2.7.0
protobuf                  3.14.0
psutil                    5.8.0
ptyprocess                0.7.0
puddletag                 2.0.1
py                        1.10.0
pycairo                   1.16.2
pychm                     0.8.6
pycparser                 2.20
pycrypto                  2.6.1
pycups                    1.9.73
pyenchant                 3.2.0
pyerfa                    1.7.1.1
Pygments                  2.7.3
PyGObject                 3.36.0
pyinstaller               4.1
pyinstaller-hooks-contrib 2020.11
PyJWT                     2.0.0
pymacaroons               0.13.0
PyNaCl                    1.4.0
pyOpenSSL                 20.0.1
pyparsing                 2.4.7
PyPDF2                    1.24
PyQt5                     5.15.2
PyQt5-sip                 12.8.1
PyQtWebEngine             5.15.2
pyRFC3339                 1.1
pystun                    0.1.0
pytest                    6.2.1
pytest-arraydiff          0.3
pytest-astropy            0.8.0
pytest-astropy-header     0.1.2
pytest-cov                2.10.1
pytest-doctestplus        0.8.0
pytest-filter-subpackage  0.1.1
pytest-openfiles          0.5.0
pytest-remotedata         0.3.2
python-apt                2.0.0+ubuntu0.20.4.4
python-dateutil           2.8.1
python-debian             0.1.39
python-Levenshtein        0.12.0
python-sane               2.8.3
pytz                      2020.5
pyxdg                     0.27
PyYAML                    5.3.1
rarfile                   4.0
regex                     2020.11.13
reportlab                 3.5.57
repoze.lru                0.7
requests                  2.25.1
requests-unixsocket       0.2.0
Routes                    2.5.1
sabyenc3                  4.0.2
scipy                     1.6.0
screen-resolution-extra   0.0.0
SecretStorage             3.3.0
setuptools                51.1.1
sgmllib3k                 1.0.0
simplejson                3.17.2
sip                       5.5.0
six                       1.15.0
sortedcontainers          2.3.0
soupsieve                 2.1
ssh-import-id             5.11
system-service            0.3
systemd-python            234
tempora                   4.0.1
testresources             2.0.1
toml                      0.10.2
tzlocal                   2.1
ubuntu-advantage-tools    20.3
ubuntu-drivers-common     0.0.0
ufw                       0.36
unattended-upgrades       0.1
unrar-cffi                0.1.0a5
urllib3                   1.26.2
usb-creator               0.3.7
variety                   0.8.3
vboxapi                   1.0
wadllib                   1.3.4
wcwidth                   0.2.5
webencodings              0.5.1
WebOb                     1.8.6
wheel                     0.36.2
xattr                     0.9.6
xkit                      0.0.0
zc.lockfile               2.0
zeroconf                  0.28.7
zipp                      3.4.0
zope.interface            5.2.0
Yes, it shows that python3 is in /home/me/.local/lib, but python2 is also there and I don't remember any other programs giving me a fit about it. I don't know how it got installed where it is, so if it should be somewhere else, could someone point me in the right direction, please?

I have used Mylar for years now and would really like to get the new version working.

Thanks much!
Wayne
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Help moving to Mylar3 in Ubuntu

Post by evilhero »

From what I can recall, it's due to having installed cherrypy via the apt installation method (ie. apt-get install cherrypy) as well as having it installed via pip.

I believe if you uninstall the apt-installed version via apt-get remove, and then uninstalling cherrypy via python pip (pip uninstall cherrypy) - and then try installing it directly via pip again only (pip install cherrypy).

I noticed that you're installing python directly to your user directory, probably using the --user switch with pip. If so, then you need to make sure that your pip commands all contain the same --user switch toggle (install and uninstall).

I'm not 100% sure if the --user switch is partially the problem as I've only seen this occur in users that seem to be utilising that method (they have cherrypy installed via apt, as well as with pip via --user and without --user - which results in in 2 different locations).
musictrivianut
Posts: 19
Joined: Fri Jun 10, 2016 10:07 am

Re: Help moving to Mylar3 in Ubuntu

Post by musictrivianut »

That really helped. Turns out that my system *was* updating as user instead of system, even without me specifying it. I saw a message flash by that said as much because the directories were not write-enabled. Damn permissions. I have it figured out now and have mylar3 going.

Really appreciate the help!!!!
Post Reply