*OLD-THREAD - SEE NEW* [Unofficial] Deluge 2.0.x installer

Specific support for Deluge on Microsoft Windows OS
Protected
Member
Member
Posts: 10
Joined: Sun Dec 03, 2017 3:55 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby Protected » Sat Nov 02, 2019 8:48 pm

I tried to enable logging in the current available version using the instructions earlier in the thread but I don't think it's generating useful information. The last line before crashing reads "Starting gtk ui.."

I have Deluge v1 on this computer. It was not running while I tried to run Deluge v2. It's in thin client mode.

mhertz
Compulsive Poster
Compulsive Poster
Posts: 1065
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby mhertz » Sat Nov 02, 2019 11:45 pm

Thanks for reporting Protected, and i'm sorry it didn't work right. Currently only the original older installer works from first post and not the one with libtorrent 1.2.2.

I apologise for the screwup once again! :( The libtorrent I build myself and the installer works fine in my testing win10 VM, but after getting this report I fired up another older win10 VM I had lying around and tested the installer there, and indeed it doesn't work, only deluge GUI works but will not load the daemon because of my built libtorrent.

Since it works on the other VM, then it must be because I have Visual studio installed there and the built libtorrent must be linked and needing something from that i'm guessing, so i'll gonna troubleshoot this some more and report back when hopefully finding the issue. I tried installing full latest vc_redist as I used latest visual-studio, but still no-go, but I already included main important files from that in my installer anyways, but worth a shoot.

I also found another issue, where it needs two dll's added for the openssl support and which i'll add when finding the other issue also. I uninstalled openssl specifically and checked it still worked before posting the installer previously, so I thought they where statically linked into libtorrent.pyd, but with dependency walker I could see it was using these files still from system32 windows dir - That is one reason I hate windows as there package management is so annoying and often leaves things behind without knowing it, like here! On second thought, how stupid of me to think the openssl libs where statically linked into libtorrent.pyd, when libtorrent.pyd is a python file... Doh! :)

I check dependency walker for errors, but it's hard because it shows ALOT of issues and I don't really understand it fully, but it shows the same issues on the original deluge.exe and libtorrent.pyd for when using Cas's manual install instructions, so not only an issue of mine, and I believe can be disregarded, except of course the actual error i'm looking for here.

Again, i'm sorry for the inconvenience and hopefully it won't take too long to fix, but i'm not gonna get to it today I think, so we'll see how it goes and how long it takes. So, in meantime revert to older installer from first post, or, to old deluge v1.3.x.
Last edited by mhertz on Sun Nov 03, 2019 4:30 pm, edited 1 time in total.

CLAP_ALIEN_CHEEKS
New User
New User
Posts: 5
Joined: Sat Sep 21, 2019 4:33 pm

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby CLAP_ALIEN_CHEEKS » Sun Nov 03, 2019 3:25 pm

Hi!

I'm running a fresh install of Win 10, so had to install Deluge again.

I tried that installer with the updated libtorrent, but it couldn't start, something about being unable to find the daemon?

Anyway, I gave up on that and went back to the original one. This has installed and is working fine, but I can't get windows to associate .torrent files with deluge correctly.

What seems to be happening, is that to start deluge2, we need to run "C:\Program Files\Deluge2\Scripts\deluge.exe", BUT run it from "C:\Program Files\Deluge2\gvsbuild\release\bin". I can't figure out a way to make this work in Win10.

If I drag the torrent file on to the shortcut, it works fine, but if I try yo associate the .torrent file extension with that shortcut, Windows defaults to trying to start in the "C:\Program Files\Deluge2\Scripts\" folder.

I've been trying to create a batch file to get around this, but I've had no luck. Has anyone a solution?

mhertz
Compulsive Poster
Compulsive Poster
Posts: 1065
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby mhertz » Sun Nov 03, 2019 4:28 pm

Yeah, sorry about the other installer not working as explained previously, and still on the hunt for the cause(profiling deluge.exe in dependency walker currently).

About your issue, then you're right in your findings, and I made a special shortcut to make deluge start, to avoid needing to mess with your PATH environment variable. If your browser supports batcfiles as handlers for torrents/magnets then you could make a first line CD'ing into the gvsbuild\release\bin dir in deluge2 folder and afterwards have it run deluge from its dir with %1 afterwards.

Anyway, the easiest would be to simply add the gvsbuild\release\bin folder(it's full path - I'm writing this on a tablet which is annoying) and then using deluge.exe as handler(full path again) should work. Im reluctant to post a command/batch file to do it, because it can rarely fail, in my testing and reported online, so look up to do it online.

I did think about if I could do something about this, but don't think so, unless messing with your Path as stated, because deluge.exe is a compiled file so I can't mess with it like e.g I did in another of the python files in deluge where I hard-coded needed path to deluged.exe for the connection-manager to again avoid messing with path.

I'll look into it some more afterwards, but will first be later, as my first priority is getting this annoying issue fixed with libtorrent.pyd only working in one win10 VM, but not another.

Sorry again for the inconvinience.

CLAP_ALIEN_CHEEKS
New User
New User
Posts: 5
Joined: Sat Sep 21, 2019 4:33 pm

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby CLAP_ALIEN_CHEEKS » Sun Nov 03, 2019 5:55 pm

I can't get the batch file to work for love nor money, and the biggest issue is that it creates some sort of loop that can end in crashing explorer as 100s of command prompt windows try to open for some reason.

This is what I'm current trying (I may have misunderstood your instructions):


Code: Select all

c:

cd "C:\Program Files\Deluge2\gvsbuild\release\bin"

start  "C:\Program Files\Deluge2\Scripts\deluge.exe" %1


Which results in the 100s of command windows. I did originally have something like:

Code: Select all

start  "C:\Program Files\Deluge2\Scripts\deluge.exe" %~dp0
(not %~dp0, I can't remember the exact command).
As far as I could see, this would have worked, but it wasn't adding the quotes around the filename. When I added the quotes, I got the 100s of command windows again.

Don't apologize, you're very helpful :>

mhertz
Compulsive Poster
Compulsive Poster
Posts: 1065
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby mhertz » Sun Nov 03, 2019 6:43 pm

Thanks mate, and no, you understood fine, and the only thing wrong I think, is that your first codebox is fine except to add double-quotes around %1 and removing the 'start' infront of the deluge.exe command. However, this will probably leave the command-prompt window open untill you close deluge again, so not optimal.

The best imho, is to yourself add an extra entry to your PATH, which is perfectly safe, as long as doing it yourself.

Open start-menu, type "syst" (it should suggest "system variables") and press return.
Select "environment variables".
Doubleclick the value of 'Path' under 'system variables' and add a new entry with:
"C:\Program Files\Deluge2\gvsbuild\release\bin".
Now you can just use as torrent/magnet handler in your browser:
"C:\Program Files\Deluge2\Scripts\deluge.exe".

Good luck! :)

CLAP_ALIEN_CHEEKS
New User
New User
Posts: 5
Joined: Sat Sep 21, 2019 4:33 pm

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby CLAP_ALIEN_CHEEKS » Sun Nov 03, 2019 7:18 pm

Code: Select all

Open start-menu, type "syst" (it should suggest "system variables") and press return.
Select "environment variables".
Doubleclick the value of 'Path' under 'system variables' and add a new entry with:
"C:\Program Files\Deluge2\gvsbuild\release\bin".


Boom, perfect! Thanks so much! : :D

mhertz
Compulsive Poster
Compulsive Poster
Posts: 1065
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby mhertz » Mon Nov 04, 2019 2:11 am

Alternative installer(with libtorrent 1.2.2) fixed and reupped in first post. The issue was the added openssl libs(for fixing https-tracker-announces) where linked against other runtime than what I already included for deluge itself, so included that also.

Alternativelly to full installer, then here's also a zip with 3 files needing unzipped and overwrite content in '%programfiles%\Deluge2\Lib\site-packages': http://s000.tinyupload.com/index.php?fi ... 6650380658

Again, sorry for inconvinience and oversight, but was a tricky error to spot as worked perfectly on my test system, but which then just happened to have the right needed files allready in search-path, so I appreciate the report, Protected :)

Paralel
Member
Member
Posts: 11
Joined: Mon Nov 04, 2019 6:53 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby Paralel » Mon Nov 04, 2019 6:58 am

Which version of OpenSSL is the 1.2.2 libtorrent compatible with? I have x64 1.1.1d OpenSSL installed to my system path, so I wanted to make sure that would work since the DLL files in the ZIP are 1.1.0L release.

mhertz
Compulsive Poster
Compulsive Poster
Posts: 1065
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Postby mhertz » Mon Nov 04, 2019 1:02 pm

Crap, i'm sorry, and thanks for reporting! I have tested so many things and in two different VMs, to make this work right, and so I accedentially took opensll-v1.1.0L libs and included as the file and folder-names where exactly the same.

I have reupped both fixed installer and zip with only libtorrent-1.2.2 with newest openssl-1.1.1d in first post of this thread.

Note, no harm done if using previous version, as the version I mistakenly included are fully secure and fully supported by openssl themselves and includes all newest security fixes.

Libtorrent supports both versions and you can also just delete the two openssl dlls if you want since you already have latest opensll available in your path, as was just meant for people not having said installed already, though leaving them(the updated ones posted now) is fine too(as leaving the old ones where too okay, but just wouldn't be using latest version, but regardless, I don't believe any of the newer features of that version is actually used by libtorrent).

I have checked also that https-tracker-announcing works correct with these new libs also.

Thanks for reporting again Paralel.


Return to “Windows OS”

Who is online

Users browsing this forum: No registered users and 5 guests