SDV-Summary icon indicating copy to clipboard operation
SDV-Summary copied to clipboard

Uploader 2.0: ImportError: DLL load failed (Windows)

Open vaindil opened this issue 7 years ago • 18 comments

Just installed the 2.0 uploader and it doesn't open, it crashes with the error below. I'm on Windows 10. Happy to help debug however I can.

capture

vaindil avatar Feb 04 '18 18:02 vaindil

If you ran the previous version, did it run okay?

On Sun, 4 Feb 2018, 18:13 Steven Hall, [email protected] wrote:

Just installed the 2.0 uploader and it doesn't open, it crashes with the error below. I'm on Windows 10. Happy to help debug however I can.

[image: capture] https://user-images.githubusercontent.com/771134/35780674-17644742-09ad-11e8-9416-cf4d5481d59b.PNG

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sketchy502/SDV-Summary/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AD149l10NN_KGhOJPlqfWxRJX8jsOvhWks5tRfNJgaJpZM4R4qVs .

Laukei avatar Feb 04 '18 18:02 Laukei

Yes, the previous version had no issues. I installed this one over top of that, and I saw the uninstaller run as part of that.

vaindil avatar Feb 04 '18 18:02 vaindil

The curse of having no beta testers...

Could you try manually deleting the Program Files (x86)/upload.farm uploader folder and reinstalling to a completely clean directory? During dev I experienced interaction between v1 and v2 causing runtime errors, but I hadn't seen them since I added the uninstall pass to the uploader installer.

On Sun, 4 Feb 2018 at 18:19 Steven Hall [email protected] wrote:

Yes, the previous version had no issues. I installed this one over top of that, and I saw the uninstaller run as part of that.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Sketchy502/SDV-Summary/issues/29#issuecomment-362927398, or mute the thread https://github.com/notifications/unsubscribe-auth/AD149vH04ijEZHeT5nfN-Beesn366lJMks5tRfSTgaJpZM4R4qVs .

Laukei avatar Feb 04 '18 18:02 Laukei

Hmm, actually I'm not convinced that overwriting is the issue. I think it is probably that my machines have whatever DLL is required on their PATH because it's installed as part of my development environment, and it also existed in V1 of the uploader, but I've pruned it in V2. I'll do some more testing.

Laukei avatar Feb 04 '18 18:02 Laukei

Is this possibly the problem? I see python36.dll but no python3.dll in the install directory.

vaindil avatar Feb 04 '18 18:02 vaindil

I've zipped up the full output from freezing the application without trimming any of the unnecessary files. It's [dead link to Dropbox, "uploading to dropbox"] now. When it's done (about 10 minutes) would you mind downloading it and seeing if uploader.exe runs for you? If it does, we can be reasonably sure the issue is a DLL I've trimmed out of the bundle when preparing it - if it doesn't it suggests something isn't being included in the freezing process.

Laukei avatar Feb 04 '18 18:02 Laukei

On a whim from my previous comment, I copied lib/PyQt5/python3.dll to the root of the install location, left everything else as-is, and it worked. Looks like it's just python3.dll that's missing.

capture

vaindil avatar Feb 04 '18 19:02 vaindil

Weird, python3.dll isn't in the root directory at any previous point (neither in v1 nor the output from cx_Freeze)... how strange. Good work finding the fix though! I'll update the installer. Thanks!

Laukei avatar Feb 04 '18 19:02 Laukei

Just completely uninstalled, deleted the folder, and reinstalled, and it does work now. Thanks a ton!

vaindil avatar Feb 04 '18 19:02 vaindil

I uninstalled, deleted the folder, and reinstalled and it's still not working for me. The python dlls are in the folder, but I still get the error.

image

image

jmauerhan avatar Mar 04 '18 16:03 jmauerhan

Apologies, I've got a bad case of flu at the minute and it's making me more useless than normal!

If you install from the zip at https://upload.farm/static/uploader/uploader_v2.0_setup_win32.zip does the uploader start correctly?

Laukei avatar Mar 04 '18 17:03 Laukei

@Laukei nope, same result.

Is version 1 still available anywhere?

ETA: I hope you feel better soon!

jmauerhan avatar Mar 05 '18 13:03 jmauerhan

Changing the 2.0 to 1.0 in the URL I linked should give you the old version 1.0. The v1 installer doesn't automatically uninstall previous versions like v2 does so be sure to uninstall v2 or delete the install folder before installing v1 or I believe it causes trouble.

I'll reopen this issue when I'm up and about, might look at solving it by using pyinstaller instead of cx_freeze. Sorry v2 of the uploader hasn't worked for you! Are you happy to help me with testing future fixes?

Rob

On Mon, 5 Mar 2018, 13:46 Jessica Mauerhan, [email protected] wrote:

@Laukei https://github.com/laukei nope, same result.

Is version 1 still available anywhere?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Sketchy502/SDV-Summary/issues/29#issuecomment-370423030, or mute the thread https://github.com/notifications/unsubscribe-auth/AD149iKjF62TnBH2W_uNt59idIVKhBakks5tbUFtgaJpZM4R4qVs .

Laukei avatar Mar 05 '18 14:03 Laukei

I will definitely be happy to help in any way I can!

jmauerhan avatar Mar 05 '18 15:03 jmauerhan

Hi @jmauerhan, finally managed to get a VM running!

How do you run the uploader when you get the error? I found that if I run it by searching on the Win10 search bar for "uploader" and clicking the result then it gives an error, but the same error doesn't occur if I go to the install folder and manually run the .exe - is this the same for you?

Rob

Laukei avatar Mar 09 '18 14:03 Laukei

Hey, it actually started working again, without any changes on my end. I'm perplexed.

Does the uploader require some files which maybe don't get included in the actual download?

Edit: and sorry to answer your question, I use the search to type "farm" and it launches from there. That wasn't working, and now is. ¯\_(ツ)_/¯

jmauerhan avatar Mar 13 '18 18:03 jmauerhan

Hey @jmauerhan, glad to hear it fixed itself! I'm going to leave this open in case other people experience it, let me know if it comes back!

Laukei avatar Mar 19 '18 22:03 Laukei

I get the same error when I boot up my computer. It doesn't stop me from using the program at all though. It started happening to me after first-time installation with no overwriting.

AbroadKew avatar Sep 16 '18 12:09 AbroadKew