TDeskDroid icon indicating copy to clipboard operation
TDeskDroid copied to clipboard

"it does not work" ...

Open lemmy04 opened this issue 7 years ago • 10 comments

Yes i know, does not tell you much, but here's what I got:

mathias@kirika:~/TDeskDroid-master> python3 main.py Downloading [desktop => android] mapping Traceback (most recent call last): File "main.py", line 272, in TDeskDroid().convert() File "main.py", line 256, in convert self._updateThemesMap() File "main.py", line 48, in _updateThemesMap self._themeMapCommit = self._getCommitId(THEME_MAP_COMMIT_URL) File "main.py", line 44, in _getCommitId return requests.get(url).json()['sha'] KeyError: 'sha'

any ideas?

lemmy04 avatar Apr 04 '17 16:04 lemmy04

How about now?

MrYadro avatar Apr 04 '17 16:04 MrYadro

ok it does something, but the resulting theme is empty... I'm trying to convert the attached theme, the resulting attheme file only contains this:

mathias@kirika:~/TDeskDroid/android> cat Luna.attheme // //////////////////////////////////////// // // This Telegram android-theme was converted from desktop-theme using TDeskDroid utility. // // Convertion parameters: // TDeskDroid : '1.0.0' // Desktop theme : 'Luna.tdesktop-theme' // theme.map : 'None' // theme_alpha.map : 'None' // default.map : 'None' // // If you have any bugs feel free to contact: // https://t.me/TThemesHQ // https://github.com/MrYadro/TDeskDroid/issues/new // // ////////////////////////////////////////

findme=#ff00ffff whatever=#ffff00ff

Luna.tdesktop-theme.zip

lemmy04 avatar Apr 04 '17 16:04 lemmy04

Do you have internet connection on that PC, because for some reason it can't download map files.

MrYadro avatar Apr 04 '17 16:04 MrYadro

I do, but the map files it downloads only contain the single line "404: Not Found"

lemmy04 avatar Apr 04 '17 16:04 lemmy04

Do you have access to https://raw.githubusercontent.com/TThemes/TThemeMap/master/desktop_android.map ?

MrYadro avatar Apr 04 '17 16:04 MrYadro

yup, should I just grab that and stick it into the maps folder?

lemmy04 avatar Apr 04 '17 17:04 lemmy04

python should grab it for you (: But for some reason you get 404 on every request, weird.

MrYadro avatar Apr 04 '17 17:04 MrYadro

i can download them just fine with curl... no idea what&where python tries to grab them.

lemmy04 avatar Apr 04 '17 17:04 lemmy04

ok I downloaded the map files manually, put them into the maps folder, and commented out the pieces in main.py that save the (failed) downloads, now I got an android theme from the desktop theme :) Still would be interesting why the script tris to download something from somewhere else than the urls in the source.

Also, the attheme does NOT contain the image, and I get a warning:

Converting 'Luna' Warning: failed to convert background

lemmy04 avatar Apr 04 '17 17:04 lemmy04

@lemmy04 Had the same problem (about the background), checked the code and saw that it always expects the background filename to be "background.png" or "background.jpg". In my theme it was different, so just renamed it to what it expects, and problem was gone.

gipnokote avatar Jun 19 '17 13:06 gipnokote