Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find config or log file #196

Closed
ang3lo-azevedo opened this issue Jul 4, 2022 · 26 comments
Closed

Can't find config or log file #196

ang3lo-azevedo opened this issue Jul 4, 2022 · 26 comments
Labels
setup Trouble with installation

Comments

@ang3lo-azevedo
Copy link

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
@iamkroot
Copy link
Owner

iamkroot commented Jul 6, 2022

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

@iamkroot iamkroot added setup Trouble with installation needs-more-info Awaiting more info from the user's end labels Jul 6, 2022
@ang3lo-azevedo
Copy link
Author

ang3lo-azevedo commented Jul 6, 2022

image

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

@iamkroot
Copy link
Owner

iamkroot commented Jul 7, 2022

Have you run trakts init fully?

@ang3lo-azevedo
Copy link
Author

Have you run trakts init fully?

Yes, but I will try to run it again

@panaris
Copy link

panaris commented Jul 26, 2022

I have the same problem too.

@iamkroot
Copy link
Owner

iamkroot commented Aug 1, 2022

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.

@panaris
Copy link

panaris commented Aug 2, 2022

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

@iamkroot
Copy link
Owner

@panaris do you still have the issue?

@panaris
Copy link

panaris commented Nov 28, 2022

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.

@th3guard1an
Copy link

th3guard1an commented Feb 20, 2023

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.

@iamkroot
Copy link
Owner

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

@panaris
Copy link

panaris commented Feb 21, 2023

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.

@iamkroot
Copy link
Owner

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

@panaris
Copy link

panaris commented Feb 28, 2023

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

@iamkroot
Copy link
Owner

And there is no trakt-scrobbler folder inside it?

@panaris
Copy link

panaris commented Mar 14, 2023

sorry for the late reply, but no.

@th3guard1an
Copy link

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

@iamkroot
Copy link
Owner

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

@panaris
Copy link

panaris commented Mar 19, 2023

https://bit.ly/3FwFEZO

@th3guard1an
Copy link

th3guard1an commented Mar 19, 2023

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

@iamkroot
Copy link
Owner

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
Copy link
Owner

Also, how did you install python?

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

@th3guard1an
Copy link

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

@iamkroot
Copy link
Owner

iamkroot commented Mar 21, 2023

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

@th3guard1an
Copy link

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!

@iamkroot
Copy link
Owner

iamkroot commented Oct 8, 2023

Will close this for now. If anyone is facing this, first give #196 (comment) a shot. If that doesn't work, create a new issue.

@iamkroot iamkroot closed this as completed Oct 8, 2023
@iamkroot iamkroot removed the needs-more-info Awaiting more info from the user's end label Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup Trouble with installation
Projects
None yet
Development

No branches or pull requests

4 participants