trakt-scrobbler
trakt-scrobbler copied to clipboard
Can't find config or log file
Describe the bug
I can't find the .yaml or the .log files, they're not on the supposed location.
Desktop (please complete the following information):
- Windows 11
- 3.10
- mpv.net
trakts log open
should open the log. What location are you trying to look at?
It says this, but there is nothing in that path There is no path really
Have you run trakts init
fully?
Have you run
trakts init
fully?
Yes, but I will try to run it again
I have the same problem too.
I have the same problem too.
What is the problem exactly? Till what directory are you able to see? Note that AppData
is hidden by default- you will need to unhide it.
there is no folder named "trakt-scrobbler" in AppData/Roaming
@panaris do you still have the issue?
yes. just installed fresh windows 11 latest, with latest latest trakt scrobbler 1.6.1-beta1, python 3.11 from store and I confirm that there is not such path created.
I am having the same problem. Windows 11 PRO N. Python 3.10.10, pip 23.0.1, VLC. Followed the instalation guide with no errors. Ran "\trakts init" and setup 1 player, and 3 whitelisted locations. Althought there is no folder in %appdata%/roaming/, restarting and shuting down doesn't reset the settings. Running "\trakts config list" and "\trakts test vlc", while playing media will still works properly and as espected. I have had vlc running for a while, and there is no syncing with trakts.tv. Also, "\trakts backlog" list gives always an empty result. I've reinstalled trakts,python, and vlc with the same outcome. The first instalation was made with an elevated terminal, and the last one without elevated privaledges, with the same outcome.
As anyone found a solution? Thank you.
@th3guard1an Does trakts log open
work? What path does it print?
It prints
Log file is located at: "C:\Users\panar\AppData\Roaming\trakt-scrobbler\trakt_scrobbler.log" In case this command doesn't work, manually open the log file from the path.
and it opens the Documents folder.
What happens when you open Run (press Windows+R) and type %AppData%
in it?
correctly opens C:\Users\panar\AppData\Roaming
And there is no trakt-scrobbler
folder inside it?
sorry for the late reply, but no.
@iamkroot > @th3guard1an Does trakts log open
work? What path does it print?
"trakts log open" printed the expected path in "C:\Users\jpdr\AppData\Roaming\trakt-scrobbler\trakt_scrobbler.log" but opened the Default "Documents" Folder in Windows. As said by panaris, the folder is simply not present in the appdata folder, not in roaming, not in local, nor locallow (I searched all of these before submiting the earlier reply). I installed it on my windows 11 PRO N laptop and it created a folder as expected. I can't really tell why it isn't creating the folder on my Desktop, even after several tries at reinstalling. If I do a clean install in the future I will give an update. Sorry for answering so late, thx for your time.
This is very weird indeed. Maybe we can try to create the folder manually and see what happens:
- Open Powershell
- (Assuming you installed using pipx) Enter
C:\Users\<Your Username>\.local\pipx\venvs\trakt-scrobbler\bin\Activate.ps1
. This should activate the python environment of this app. - Run
python
. Now you are in the python repl (it should show>>>
as the prompt) -
from trakt_scrobbler.app_dirs import DATA_DIR, CFG_DIR
-
print(DATA_DIR)
-
assert DATA_DIR == CFG_DIR
-
DATA_DIR.exists()
If it saysTrue
, then we are in big trouble :P But if the above saysFalse
, try- -
DATA_DIR.mkdir()
- And again
DATA_DIR.exists()
And report back
https://bit.ly/3FwFEZO
@iamkroot Well, it does indicate "True" which is a bummer. Just to make sure, I sent a screenshot of my roaming folder, and as u can see, there is no "trakt-scrobbler". Running "DATA_DIR.mkdir()" gives the exact same result as @panaris screenshot.
I'm seeing that both of you needed to use the Administrator privileges to run the commands. Any particular reason for that? It is supposed to work just fine as normal user.
Also, how did you install python?
This might the the cause: https://stackoverflow.com/a/62095380
The commands can be ran without admin priveledge (just tested), I just so happen to have an admin console open. I've tried several diferent versions of python, firstly throught winget (not MS), then manual website download, currently I'm on MS STORE install. Following the indications on your link I was able to find the missing folder under: "C:\Users\jpedr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\Roaming"
My original problem was that the script wasn't syncing into trakts website, should I start a new thread with the newfound "logs", or do you think it might be related to this pathing problem? Thank you
I was able to find the missing folder
Finally some progress! Pinging @panaris @ang3lo-azevedo this might be the solution for you too.
I didn't expect Store apps to be doing this kind of shady stuff :( They seem to be hijacking the paths. https://learn.microsoft.com/en-us/windows/apps/design/app-settings/store-and-retrieve-app-data
One big issue I see is-
Roaming data and settings is no longer supported as of Windows 11
We really need to provide a standard way of installing trakt-scrobbler on windows, preferably with its own bundled Python. #244
My original problem was that the script wasn't syncing into trakts website, should I start a new thread with the newfound "logs", or do you think it might be related to this pathing problem?
From what I can tell by reading the docs of msft, it seems that this new path should be "seamless" as far as the app is concerned (hence the DATA_DIR.exists() == True
inside the console). I suggest going through the logs once and trying to see where the error is. If that doesn't work out, feel free to create a separate issue with the logs :)
I've determined through the log files, that the problem I was having is unrelated to the weird pathing and is instead more closely matched with #214. Thanks for the help!
Will close this for now. If anyone is facing this, first give https://github.com/iamkroot/trakt-scrobbler/issues/196#issuecomment-1477206537 a shot. If that doesn't work, create a new issue.