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

Path Issue while running on Windows #453

Open
sharkbit opened this issue Jul 20, 2017 · 4 comments
Open

Path Issue while running on Windows #453

sharkbit opened this issue Jul 20, 2017 · 4 comments

Comments

@sharkbit
Copy link

I have gotten the Dev Branch to "work" on windows but it looks like there are some path issues.

It looks like it is looking for the Prefrences file and DB in the "C:\Program Files (x86)\Plex\Plex Media Server..." folders instead of the "C:\Users<Username>\AppData\Local\Plex Media Server..." path. So it never fully starts Trakt.

com.plexapp.plugins.trakttv.log.txt

Plex Media Server.log.txt

Note: the Main branch breaks well before, in the init.py

@sharkbit
Copy link
Author

Fixed Preference issue ".\content\code\fs_migrator.py" Line 42:
return os.path.join(Core.plugin_support_path, 'Preferences', 'com.plexapp.plugins.trakttv.xml')

@sharkbit
Copy link
Author

sharkbit commented Jul 20, 2017

So fixed the DB creation issue by modifying 3 variables in .\Trakttv.bundle\Contents\Libraries\Shared\plugin\core\environment.py
environment.py.txt

Full file for Pref issue:
fs_migrator.py.txt

Now when trying to sync I get "CantOpenError: unable to open database file"... Log atached
com.plexapp.plugins.trakttv.log.txt

Could it be trying to open a second connect to the DB? I.E. I clicked 'Sync Now' and it just tries to open the DB without checking if it's already connected?

@sharkbit
Copy link
Author

sharkbit commented Jul 23, 2017

I built a Debian Plex server to test my issues were not platform specific, I found the same issue with profile in the logs,...

I Found the that the wrong path was getting passed for the DB (apsw_ext.py). I hard coded the correct path and file and the Sync worked!
.\Trakttv.bundle\Contents\Libraries\Shared\playhouse\apsw_ext.py Line 60 -> def _connect(self, database, **kwargs) is having the wrong DB path passed to it. Where is this being changed from the correct env vars?

@sharkbit
Copy link
Author

Found the Variable, Trakt now works for me on windows and Debian systems with these changes. #455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant