trakt-scrobbler icon indicating copy to clipboard operation
trakt-scrobbler copied to clipboard

Can't find config or log file

Open ang3lo-azevedo opened this issue 2 years ago • 7 comments

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

ang3lo-azevedo avatar Jul 04 '22 10:07 ang3lo-azevedo

trakts log open should open the log. What location are you trying to look at?

iamkroot avatar Jul 06 '22 15:07 iamkroot

image

It says this, but there is nothing in that path There is no path really

ang3lo-azevedo avatar Jul 06 '22 19:07 ang3lo-azevedo

Have you run trakts init fully?

iamkroot avatar Jul 07 '22 03:07 iamkroot

Have you run trakts init fully?

Yes, but I will try to run it again

ang3lo-azevedo avatar Jul 07 '22 09:07 ang3lo-azevedo

I have the same problem too.

panaris avatar Jul 26 '22 13:07 panaris

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.

iamkroot avatar Aug 01 '22 14:08 iamkroot

there is no folder named "trakt-scrobbler" in AppData/Roaming

panaris avatar Aug 02 '22 23:08 panaris

@panaris do you still have the issue?

iamkroot avatar Nov 26 '22 09:11 iamkroot

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.

panaris avatar Nov 28 '22 13:11 panaris

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 avatar Feb 20 '23 05:02 th3guard1an

@th3guard1an Does trakts log open work? What path does it print?

iamkroot avatar Feb 21 '23 02:02 iamkroot

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.

panaris avatar Feb 21 '23 23:02 panaris

What happens when you open Run (press Windows+R) and type %AppData% in it?

iamkroot avatar Feb 25 '23 02:02 iamkroot

correctly opens C:\Users\panar\AppData\Roaming

panaris avatar Feb 28 '23 13:02 panaris

And there is no trakt-scrobbler folder inside it?

iamkroot avatar Feb 28 '23 15:02 iamkroot

sorry for the late reply, but no.

panaris avatar Mar 14 '23 12:03 panaris

@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.

th3guard1an avatar Mar 14 '23 21:03 th3guard1an

This is very weird indeed. Maybe we can try to create the folder manually and see what happens:

  1. Open Powershell
  2. (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.
  3. Run python. Now you are in the python repl (it should show >>> as the prompt)
  4. from trakt_scrobbler.app_dirs import DATA_DIR, CFG_DIR
  5. print(DATA_DIR)
  6. assert DATA_DIR == CFG_DIR
  7. DATA_DIR.exists() If it says True, then we are in big trouble :P But if the above says False, try-
  8. DATA_DIR.mkdir()
  9. And again DATA_DIR.exists()

And report back

iamkroot avatar Mar 17 '23 03:03 iamkroot

https://bit.ly/3FwFEZO

panaris avatar Mar 19 '23 21:03 panaris

@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.

th3guard1an avatar Mar 19 '23 23:03 th3guard1an

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.

iamkroot avatar Mar 21 '23 01:03 iamkroot

Also, how did you install python?

This might the the cause: https://stackoverflow.com/a/62095380

iamkroot avatar Mar 21 '23 01:03 iamkroot

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

th3guard1an avatar Mar 21 '23 02:03 th3guard1an

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 :)

iamkroot avatar Mar 21 '23 14:03 iamkroot

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!

th3guard1an avatar Mar 21 '23 21:03 th3guard1an

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.

iamkroot avatar Oct 08 '23 22:10 iamkroot