Certain functions of Mylar don't seem to work correctly in these later versions of Mylar. One thing I noticed was that after I add a new series, the picture of the book would never download/display. Just get the little red X as a icon. Also getting a message in the log "Could not get the latest commit from github" after trying to update. This never happened before. So I did a little searching in the forums and found the version of Python makes a big difference. Evilhero had suggested using pyenv so that a specific folder could run a different (newer) version without messing up other apps or Linux in general.
The version of Python that runs globally is 2.7.6. I installed pyenv with two different Python versions to start: 2.7.9 and 3.4.0 and set it up so that the ~/.mylar folder runs 2.7.9. I verified this by running python -V in different folders. All show 2.7.6 as the version except the .mylar folder (shows 2.7.9). Great!
However, when the service starts and I open the web page for it and go to the setting page, it shows Python version at 2.7.6! So at the server, I stop Mylar (sudo service Mylar stop) and start it manually in the ~/.mylar folder (python Mylar.py [with or without -d switch]) when I check at the settings page, it shows Python version 2.7.9! And then adding a series downloads the correct book image and checking for updates! (FYI: I tried 3.4.0 as well, but Mylar didn't run, so I stuck with 2.7.9 for my experimentation.)
But when I reboot the machine, it all goes back to the 2.7.6. I did research and tinkered around with the /etc/init/mylar.conf script (Google to the rescue);
Code: Select all
setuid media
setgid media
start on runlevel [2345]
stop on runlevel [016]
respawn
chdir /home/media/.mylar
exec python Mylar.py -d
Can one of you Linux gurus help me out? Thanks in advance.
Just to be clear, this is what the setting page shows:
Configuration Options
Mylar Version: development
-- git build 704ef85dec573b90592224243229a6443fec5367.
Python Version : 2.7.6
MYLAR PROGRAM OPTIONS
Mylar Data Directory : /home/media/.mylar
Mylar Program Directory : /home/media/.mylar
Mylar Cache Directory : /home/media/.mylar/cache/
Mylar Config File :/home/media/.mylar/config.ini