TypeError: stat: path should be string (help please?)

Information and Tutorials on features in Mylar and how to use it
Post Reply
LowVibe75
Posts: 13
Joined: Sun Jun 17, 2018 5:21 am

TypeError: stat: path should be string (help please?)

Post by LowVibe75 »

Hi, getting a 500 server error when trying to access certain comics in my list:

https://pastebin.com/WN0QhNze

No errors in the log. Persists after restart.

Any ideas on this one?

Cheers,

G
LowVibe75
Posts: 13
Joined: Sun Jun 17, 2018 5:21 am

Re: TypeError: stat: path should be string (help please?)

Post by LowVibe75 »

Version: v0.6.1 (master)
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: TypeError: stat: path should be string (help please?)

Post by evilhero »

Is your python version 3.6?

Mylar won't run properly unless it's at least 3.7.5+ (preferably 3.8 or newer), as per the installation instructions on github.
LowVibe75
Posts: 13
Joined: Sun Jun 17, 2018 5:21 am

Re: TypeError: stat: path should be string (help please?)

Post by LowVibe75 »

Thanks for the reply, I appreciate it.

It’s 3.6.9 so that probably explains it, thank you.

I will update and see how it goes.

Cheers,

G.
LowVibe75
Posts: 13
Joined: Sun Jun 17, 2018 5:21 am

Re: TypeError: stat: path should be string (help please?)

Post by LowVibe75 »

$ ls /usr/bin/python*
/usr/bin/python /usr/bin/python3.5m
/usr/bin/python2 /usr/bin/python3.6
/usr/bin/python2.7 /usr/bin/python3.6m
/usr/bin/python3 /usr/bin/python3.9
/usr/bin/python3.5 /usr/bin/python3m

OK installed Python 3.9 and now I have all the versions.

I attempted to be clever and ran:

~/.mylar3 $ python3.9 Mylar.py
Traceback (most recent call last):
File "/home/gregory/.mylar3/Mylar.py", line 26, in <module>
import mylar
File "/home/gregory/.mylar3/mylar/__init__.py", line 36, in <module>
from apscheduler.schedulers.background import BackgroundScheduler
ModuleNotFoundError: No module named 'apscheduler'

Sorry, a little out of my depth perhaps.

Any suggestions still gratefully accepted.

Thank you.

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

Re: TypeError: stat: path should be string (help please?)

Post by evilhero »

You need to install the requirements for mylar against that specific version of python.

From the mylar3 wiki:
from the root of the mylar installation, run the following command pip3 install -r requirements.txt to install all required dependencies not included.
In your case, because you have several different versions installed, you need to make sure it's against the python3.9 version, most likely the pip command is pip3.9 instead of pip3 indicated above, so replace that when you run the install command above and you should be good thereafter.
Post Reply