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

cx_Freeze: Python error in main script #391

Closed
robsonsobral opened this issue Aug 21, 2017 · 19 comments
Closed

cx_Freeze: Python error in main script #391

robsonsobral opened this issue Aug 21, 2017 · 19 comments

Comments

@robsonsobral
Copy link
Contributor

Running on Windows 10 and installed using Chocolatey.

2017-08-20 18_51_09-cx_freeze_ python error in main script

@kozec
Copy link
Owner

kozec commented Aug 21, 2017

Does same thing happens when you install without Chocolatey?

(also, sorry, but I have no idea what's written after "DLL load failed:" :)

@robsonsobral
Copy link
Contributor Author

I gonna test after I get back home, @kozec .

After DLL load failed is written "It wasn't possible to find the specified module".

Thank you for your patience.

@tonirug
Copy link

tonirug commented Aug 22, 2017

Hi,
same problem here with standard install. Same problem also after downgrading from v0.9.2.5 to v0.9.2.4.
The problem happens only when syncthing-gtk is automatically launched at windows startup.
No problem when launching it manually.
OS is Windows 10 with all updates installed.
Best

@kozec
Copy link
Owner

kozec commented Aug 22, 2017

The problem happens only when syncthing-gtk is automatically launched at windows startup.
No problem when launching it manually.

Ok, now this is important part. That's same as #385, issue that I still have no idea how can be even possible. @robsonsobral is it same on your side?

@robsonsobral
Copy link
Contributor Author

I couldn't reinstall yet, I'm sorry, but, as happened with @tonirug , the error only occurs when launching with windows startup.

@acolomb
Copy link
Contributor

acolomb commented Aug 23, 2017

I can confirm this happens on my Windows 7 machine at work, also only during windows startup. Syncthing-Gtk 0.9.2.5 from Chocolatey.

@kozec
Copy link
Owner

kozec commented Aug 23, 2017

Can anyone of you confirm if registry value HKEY_CURRENT_USER\\Software\\SyncthingGTK\\InstallPath points to correct directory on your machine?

@acolomb
Copy link
Contributor

acolomb commented Aug 23, 2017

Yes it does, but only exists under HKEY_CURRENT_USER, not under HKEY_LOCAL_MACHINE. Could it be that the former is not yet initialized completely during login?

@tonirug
Copy link

tonirug commented Aug 23, 2017

In W10 appears under Computer\HKEY_CURRENT_USER\Software\SyncthingGTK\InstallPath and the path is correct

@ghost
Copy link

ghost commented Aug 30, 2017

I have the exact same issue. On W7 and W10 machines. Automatic start fails. Manual works just fine.

@masgo
Copy link

masgo commented Sep 12, 2017

Here is the English version of the error.

I am using Windows 10 Version 1703.

Maybe it is already obvious, but there is no C:\Python27 folder on my machine.

syncthing-gtk

@yaomtc
Copy link

yaomtc commented Sep 13, 2017

Having the same issue, again only on Windows startup - here's the text version of the error:

Traceback (most recent call last):
 File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run 
 File "scripts/syncthing-gtk-exe.py", line 3, in <module>
ImportError: DLL load failed: The specified module could not be found.

I noticed I was missing Python 2.7 (don't know if I had it installed previously and removed it?) so I installed it, making sure it went in the PATH, but that didn't make a difference.

@kozec
Copy link
Owner

kozec commented Sep 16, 2017

Soo... I probably got it. Can anyone of you on Win10 try this build?

SyncthingGTK-v0.9.2.5-2-g8864664-win32-full-installer.zip

@robsonsobral
Copy link
Contributor Author

It worked, @kozec !

@seiferflo
Copy link

Thanks @kozec, it's working with this new build !

@hugalafutro
Copy link

Thanks for the update it now works as expected when autostarting.

@yaomtc
Copy link

yaomtc commented Oct 4, 2017

It also works again for me. Must be fixed now. Thanks a lot!

@kozec
Copy link
Owner

kozec commented Oct 4, 2017

Thanks for all confirmation, this is now fixed in latest release.

@kozec kozec closed this as completed Oct 4, 2017
@acolomb
Copy link
Contributor

acolomb commented Dec 13, 2017

After upgrading to v0.9.2.7 from Chocolatey, this error still occurred for me at system boot. Even starting manually afterwards did not work: ImportError: cannot import name Configuration. Starting with syncthing-gtk-console.exe from a terminal kind of worked, but the connection to the daemon could not be established, although it was definitely reachable from a browser.

All these troubles went away after an uninstall - install cycle with Chocolatey. Hope this helps anybody still having similar troubles.

Repository owner locked and limited conversation to collaborators Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants