-
Notifications
You must be signed in to change notification settings - Fork 105
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 launch 0.5.0, Win 10 #10
Comments
Can you run the Gtk graphics test? It's in the Tartube folder in the windows Start Menu. |
Sure thing. This is the result. C:\Tartube\msys64\home\user\tartube>......\mingw64\bin\python3.exe hello_world.py ** (python3.exe:7076): WARNING **: 15:11:15.536: Failed to load shared library 'libgdk-3-0.dll' referenced by the typelib: 'libgdk-3-0.dll': The specified procedure could not be found. C:\Tartube\msys64\home\user\tartube>PAUSE |
Hmmm. The method I've been using to create the Windows installer is the one described in https://bitbucket.org/sirdeniel/deploy-python-gtk3-apps-for-windows/ It looks like this isn't reliable enough, especially not for Windows 10 users, so perhaps I will have to find some completely different installation method. |
If you need me to test something out, just let me know. |
The installer for v0.6.0 has been redesigned. Please test it, and tell me if it works. |
Unfortunately no luck. This time there was no popup error, but the console error is as follows: C:\Tartube\msys64\home\user\tartube>......\mingw64\bin\python3.exe tartube ** (python3.exe:10464): WARNING **: 19:08:46.772: Failed to load shared library 'libgdk-3-0.dll' referenced by the typelib: 'libgdk-3-0.dll': The specified procedure could not be found. C:\Tartube\msys64\home\user\tartube>PAUSE |
Have you installed anything else on your system that uses Gtk? |
I just performed a system wide search for the gtk libraries, just to be sure. Nothing there apart from the tartube installation. |
Ok, so it's not a clash between different versions of Gtk. Perhaps you can try this: Find the tartube_64bit.bat file. It should be in C:\Tartube\msys64\home\user\tartube\ Change the first line to this: ......\mingw64\bin\python3.7.exe tartube Then try to start Tartube as normal |
No luck. "......." doesn't work in Windows, so I tried with the absolute path as well. It still results in the libgdk error. |
Oh dear, git swallowed my backslashes. The only change was python3.exe to python3.7.exe Do you feel like trying a manual installation? It would take about 10-15 minutes (but most of that time is waiting, not typing). The steps are:
|
So far so good. It works from inside the msys environment, which I honestly suspected it would. Progress. |
Great! Now let's try it without the terminal window. Go into the folder C:\msys2\home\YOURNAME\tartube\nsis There are four windows .BAT files there. Copy all of them into the folder above, i.e. C:\msys2\home\YOURNAME\tartube Then, try running C:\msys2\home\YOURNAME\tartube\tartube_64bit.bat (just double-click on the file to run it) You can also try running C:\msys2\home\YOURNAME\tartube\hello_world_64bit.bat |
We're back to this: C:\msys64\home\slart\tartube>......\mingw64\bin\python3.exe tartube ** (python3.exe:10832): WARNING **: 13:06:01.849: Failed to load shared library 'libgdk-3-0.dll' referenced by the typelib: 'libgdk-3-0.dll': The specified procedure could not be found. C:\msys64\home\slart\tartube>PAUSE |
Ok, that rules out a problem with the installer. Let's try running tartube from within the msys2 environement, but without opening the terminal window. In the Tartube directory, create a bash script: C:\msys2\home\YOURNAME\tartube\startme.sh (Obviously I don't need to point out that MS Windows will create a file called startme.sh.txt if you're not using a proper text editor) Open the script in your text editor, and add these three lines: #!/bin/bash Save the script. Now open a windows terminal (in the start menu, type 'cmd'), and in the terminal window, type the following command. It is ONE-LINE COMMAND, not two separate commands! c:\msys64\usr\bin\mintty.exe -h always /bin/env MSYSTEM=MINGW64 /bin/bash -lc /home/YOURNAME/tartube/startme.sh |
No worries about the editor. I've been using emacs for ages :) I created the bash script and ran it with the mintty command, and it executes just fine, so that works fine. |
I have to explain things in easy steps, in case other people are reading and trying the same thing :) This weekend I will create another windows installer that includes the bash shell, rather than a Windows .bat file. |
I create a new installer, v0.7.0. I am still trying to work out, what to include and what to exclude, so I hope the installer works (but I can't guarantee it) |
hi, I just tried the 0.7 installer for Win10 64bits, and it doesn't work. |
The startup command needs to be tweaked ... or the tartube folder will have to be moved msys starts the user in c:\users\username .. that's the home folder, so... ......\usr\bin\mintty.exe -w hide /bin/env MSYSTEM=MINGW64 /bin/bash -lc /home/user/tartube/tartube_mswin.sh ...won't work. I'm not sure if bash will handle c:/, so it might just be easier to have the install script put the /home/user/tartube folder structure into the c:\users<username> folder using the %USERPROFILE% windows variable. ref: https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables |
palexGit, what is the error message you see, when you run Start Menu > Tartube > Test gtk graphics ? |
Axcore, here's the result of gtk test : `/etc/post-install/01-devices.post: line 56: chmod: command not found ` |
palexGit, It looks like this is is the source of your problems: /etc/post-install/05-home-dir.post: line 224: mkdir: command not found Can you please try the TEST-1 installer, and tell me the error messages (if any) from both the Gtk graphics test, and Tartube itself. |
Axocore > Here is te the return of gtk Grafiks test and tartube itself. It's still doesn't work Gtk Graphics test Copying skeleton files. They will never be overwritten nor automatically updated. /etc/post-install/05-home-dir.post: line 233: /usr/bin/find: No such file or directory Tartube Itself |
slartie,
I'm not sure that's right. I tried this test, do you get different results?
C:\msys64
mkdir wibble
I also tried the Tartube installer, installing it to C:\Tartube (as you did). Nothing is installed in C:\Users\YOURNAME; the home directory used by msys2 appears to be C:\msys64\home\YOURNAME If we need to tweak the startup command to use absolute paths, I can make the Tartube installer create the .BAT file itself. To use the absolute path, we only need to remove the colon, following the example in https://stackoverflow.com/questions/47438779/executing-a-script-in-msys2-mingw In other words, the installer could write a .BAT file containing ......\usr\bin\mintty.exe -h always /bin/env MSYSTEM=MINGW64 /bin/bash -lc /c/Tartube/msys6/home/user/tartube/tartube_mswin.sh |
palexGit, I can't repoduce your errors, so I am working my eyes closed here :) Try TEST2 and, if that doesn't work, TEST3 https://sourceforge.net/projects/tartube/files/v0.7.0%20TESTING%20ONLY/ |
OK They will never be overwritten nor automatically updated. /etc/post-install/05-home-dir.post: line 236: /usr/bin/install: No such file or directory Tartube For Installer TEST 3 They will never be overwritten nor automatically updated. './.bashrc' -> '/home/palex/.bashrc' Tartube Test 3 is better but there's a problem with directories creation. Maybe i can see the script and test on my PC without installing anything ? |
The installation script for MS Windows is in the /nsis folder, i.e. https://github.com/axcore/tartube/blob/master/nsis/tartube_install_64bit.nsi The script describes the whole procedure, but it's out of date. This is what I am doing now:
From there, you can create your own MS Windows installer, if you really want to
The installer is about 600MB. Obviously that is too big, so I am trying to remove unnecessary things. Unfortunately it is very difficult to know what is necessary, and what is not. And that is why you are seeing errors that I can't see. |
Thanks, Before using nsis, i think i'll try to create tartube.exe with pyinstaller for example. if all work well, i'll look for nsis. |
You can try, but pyinstaller is known not to work with PyGObject (unless it has been updated recently) By the way, I have another plan. You are seeing errors messages that I can't see. Therefore I need to borrow another WIndows 10 computer, then I can work out what the problem is. |
When I get back to my system, I'll try clearing everything out and starting over and report back. |
Fixed in v1.2.0 |
Notes:
I used the 64bit installer
I'm using Windows 10
Both of the dll files mentioned in the error report are present in the folder.
Popup dialog error output:
Titlebar: python3.exe - Entry Point Not Found
Content: The procedure entry point inflateValidate could not be located in the dynamic link library C:\Tartube\msys64\mingw64\bin\libpng16-16.dll
Console output:
C:\Tartube\msys64\home\user\tartube>......\mingw64\bin\python3.exe tartube.py
** (python3.exe:9052): WARNING **: 23:01:32.700: Failed to load shared library 'libgdk-3-0.dll' referenced by the typelib: 'libgdk-3-0.dll': The specified procedure could not be found.
Traceback (most recent call last):
File "tartube.py", line 32, in
from lib import mainapp
File "C:\Tartube\msys64\home\user\tartube\lib\mainapp.py", line 26, in
from gi.repository import Gtk, GObject, GdkPixbuf
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in load_backward_compatible
File "C:\Tartube\msys64\mingw64\lib\python3.7\site-packages\gi\importer.py", line 145, in load_module
importlib.import_module('gi.repository.' + dep.split("-")[0])
File "C:\Tartube\msys64\mingw64\lib\python3.7\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in load_unlocked
File "", line 638, in load_backward_compatible
File "C:\Tartube\msys64\mingw64\lib\python3.7\site-packages\gi\importer.py", line 146, in load_module
dynamic_module = load_overrides(introspection_module)
File "C:\Tartube\msys64\mingw64\lib\python3.7\site-packages\gi\overrides_init.py", line 118, in load_overrides
override_mod = importlib.import_module(override_package_name)
File "C:\Tartube\msys64\mingw64\lib\python3.7\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Tartube\msys64\mingw64\lib\python3.7\site-packages\gi\overrides\Gdk.py", line 83, in
Color = override(Color)
File "C:\Tartube\msys64\mingw64\lib\python3.7\site-packages\gi\overrides_init.py", line 195, in override
assert g_type != TYPE_NONE
AssertionError
C:\Tartube\msys64\home\user\tartube>PAUSE
Press any key to continue . . .
The text was updated successfully, but these errors were encountered: