Welcome Guest. Please Login or Register  


You are here: Index > Glade Forum > Installation > Topic : Installing Glade on Windows

1


Threaded Mode | Print  

 Installing Glade on Windows (35 Replies, Read 6246 times)
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
First download from:

https://www.peardrop.co.uk/glade/glade4_win32.zip (32 bit windows)
https://www.peardrop.co.uk/glade/glade4_win64.zip (64 bit windows)

Unzip the file to a directory on your PC, then follow the instructions in the README.txt file.


Edited by Keith : October 14, 2011, 1:39 pm
IP: --   

Installing Glade on Windows
mdill
Group: Member
Post Group: Newbie
Posts: 9
Status:
Has anyone else had an issue with being unable to un-zip the 4.1.7 version ?
I get a file is invalid message from windows.

Thanks Mike D.

Edited by mdill : January 19, 2010, 11:20 pm
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Works fine for me. Maybe your download was corrupted?
IP: --   

Installing Glade on Windows
mdill
Group: Member
Post Group: Newbie
Posts: 9
Status:
Thanks, My Explorer must have had a corrupt cached version, downloaded a few times with the same problem, cleared Explorer history and it downloaded without issue.
  User error :)

Thanks Mike D. 
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
i am having issue with import of ui module. Glade is showing the following message whenever i am opening it.
>>
# WARNING: Failed to import ui module - please check your PYTHONPATH!
# WARNING: PYTHONPATH is currently : D:\glade4_win32
>>
I tried setting the environment variable PYTHONPATH to %GLADE_HOME% as told in the README.txt file but still the above message is coming up.
Glade version is 4.2.7 compiled on May 25 2012.

How can i fix it??


Edited by anandkrishpv : June 7, 2012, 5:00 pm
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Few things:

1) I assume you installed Glade at D:\glade4_win32 and set the environment variable %GLADE_HOME% to this dir, and %PYTHONPATH% so the same dir.

2) Do you have write permission to this directory? Is there the ui.py file in this directory, and is it readable?

3) Check that you are not running one version of Glade and pointing PYTHONPATH at another version of the ui.py file. This will also give the error you see.

Also I'd recommend downloading the latest 4.3.1 build, as there were a few issues with 4.2.7/4.3.0.

regards

Keith


Edited by Keith : June 7, 2012, 5:24 pm
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
-->Point (1) was right. I did exactly the same thing.

-->Full control was set to the drive in which installed glade and ui.py is present in this directory which is in readable format.

-->Deleted all other versions of glade present.

Still the error is coming in windows.
By the way i switched to glade 4.3.1 as suggested. The same problem  is present in this version also.
Am i doing something wrong in setting the environment variables??

Regards,
Anand


Edited by anandkrishpv : June 8, 2012, 6:13 am
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Hard to say without further info. Make sure you delete any .pyc files from the installation, in case they are from a previous version. Or try installing in a different directory.
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
Tried installing in different directory also without any luck. Still the same error showing up.

One more thing is that whenever i am closing Glade application "Microsoft Visual C++ Runtime Library " window is popping up showing "Runtime error".

IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Ah, I have located the problem. The win32 version was missing the file 'types.py' (it is present in the win64 version). Without that, or a valid Python installation on your PC with 'types.py' in your PYTHONPATH, import ui failed.

I have fixed the distribution win32 version and uploaded it to the website.
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
Yes. That was it i guess.

But have a new problem now. Software is crashing after around 10 seconds. I need not do anything for the app to crash.
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Log files? Crash dumps?

I find it hard to fix some bugs as i'm not telepathic! ;)
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
hehe.. ;)..

No files are getting created after crash i guess.
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Well, with the latest build on a vanilla Windows 7 32 bit laptop, I get no crash. You did install the VC++ runtime DLLs? Although I wouln't expect it to even load without them.
IP: --   

Installing Glade on Windows
anandkrishpv
Group: Member
Post Group: Newbie
Posts: 6
Status:
i ran the file vcredist_x86 before starting installation although i had VC++ installed in my system. This should install VC++ runtime DLLs right??
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Well if you have VC++, run it, start Glade and attach the debugger to the process. Then send me the stack trace when it crashes.
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
One important point - if you have problems getting glade to run on Windows, check if you have python27.dll installed in either of

C:\windows\system32
C:\windows\sysWOW64

If you're running a 64 bit version of Windows, the one in system32 should be the 64 bit one (this may not seem intuitive but then this is is Microsoft...) and the one in sysWOW64 should be the 32 bit dll.

Better still just use the ones in the default installations and start Glade from that directory.

If you're not sure, try using Dependency Walker (http://www.dependencywalker.com/) which will show you just which DLL's your executable is using and whether there are any conflicts.

IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hi All

I am totally unable to run Glade on both Windows7 and WindowsXP.

Inspecting the *.exe with DependencyWalker I found that are a lot of missing DLLs.
I guess it is caused by missing dependencies.
Obviously the log file is empty.

Please, give me some hints.

Below the list of missing DLLs:
API-MS-WIN-CORE-COM-L1-1-0.DLL
API-MS-WIN-CORE-DEBUG-L1-1-1.DLL
API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-1.DLL
API-MS-WIN-CORE-HEAP-L1-2-0.DLL
API-MS-WIN-CORE-INTERLOCKED-L1-2-0.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L1-1-1.DLL
API-MS-WIN-CORE-MEMORY-L1-1-1.DLL
API-MS-WIN-CORE-PROCESSTHREADS-L1-1-1.DLL
API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL
API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL
API-MS-WIN-CORE-SYNCH-L1-2-0.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-0.DLL
API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL


IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
A quick google of 'API-MS-WIN-CORE-COM-L1-1-0.DLL' would indicate that you are missing some Windows DLLs. You might want to run Windows Update to check you have all the latest files.
IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
Trust me, both my Windows are highly updated.
I've done the same searches on Google.
If I am posting it is because I am not able to solve the problem by myself.

Is there any software that is "strongly recommended" to install before trying launching Glade?

(I can't stand the empty log file!)

Thank you so much...

IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Normally you just have to install the runtime libraries, the Microsoft installer for these is provided in the distribution.

The DLLs you mention are not those however, they are core Windows API DLLs.

Are you running the 32 or 64 bit version?
IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
They are both 32bit systems.

I am interested in solving the issue on Windows7 seen that it is newer PC.


IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Glade is built on a PC running Windows 7 - so I'll take a look and see if I have those DLLs on my machine. Will probably not be able to until later today though.
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
OK, taking a look at the glade.exe built on my machine running Windows 7 (64 bit) with dependency walker, I also get a lot of missing DLLs (API-MS-WIN-*). There is some info on these DLLs here: http://www.nirsoft.net/articles/windows_7_kernel_architecture_ch anges.html

However, Glade runs just fine without them, as neither it nor the Qt libs call any functions from these DLLs. Dependency Walker doesn't know this alas, so it 'thinks' that it is a problem that they are missing.

I think these 'missing DLL' issues are a red herring, and your problem is that described in post #16 in this thread - i.e. you've got an incorrect python27.dll somewhere on your machine and are not using the python27.dll shipped in the installation directory. Look at which python27.dll you are picking up in dependency walker, and from where. If it's not from your Glade installation directory, then it's probably not the one you want...


IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
I am sorry but it's not working yet.
Python27.dll is the correct one.

Sorry for let you lose time.

I am attaching the dwi file from dependencywalker if it can help.

I will try with a Linux distro.

Thank you.

IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Couple of things that might help debug your windows problem:

1) If there is a missing DLL *that is required*, the program won't start and Windows will pop up a dialog telling you this. So that enables you to tell whether there are any missign DLL's.

2) When Glade starts, the first thing it does after setting up the logfile is to initialise Python using Py_Initialize. If Python fails to initialise, it will exit with no warning.

3) After that, the app window should show itself and messages will start to be written to the logfile. Do you see the app window, even briefly?

4) It may be worth trying to run from a cmd.exe shell to see if you get any output to the console.

5) When you say 'Python27.dll is the correct one' do you mean dependency walker is showing if finding the one in your installation directory?

6) Are you doing anything other than unzipping the downloaded file, and clicking on the Glade icon? I have not heard of this problem from other users, so it must be something peculiar to your setup.

IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
1) No popup dialogs

2) When Glade starts, the first thing it does after setting up the logfile is to initialise Python using Py_Initialize. If Python fails to initialise, it will exit with no warning. Unable to understand this step.

3) I can't see the app at all.

4) Even from cmd.exe I can't see any log/output err

5) Yes, dependencywalker shows me that the python27.dll file is pointing to the one in the installation directory

6) I unzipped the package and double-clicked on glade. No results. At the second try, I installed the vcredist_x86.exe and double-clicked on glade. Non results again. At the third chance, I read the README file and setup the environment variables. No success again.

[/quote]
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
Hmm, can you start Windows Event Viewer and expand Windows Logs->Application? Then see if there are any events for Glade, if so click on them and they should show some details about the issue.

Also can you confirm you have no C:\Windows\System32\python27.dll or C:\Windows\sysWOW64\python27.dll?
IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
Ok! Glade starts! And it is very amazing...

The problem is that I was using the python27.dll provided with glade installation.
I just copied the file FROM C:\Windows\System32\python27.dll TO D:\<pathToGlade>.

Glade starts! I will let you notice in case of issues.

P.S.: I have a 32bit Windows7
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
And what do you see in the logfile - something like:

# Python version 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] for win32

?
IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
This is the line I get in the log file

# Python version 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] for win32

Thank you so much for your effort supporting me.
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
That looks fine. It's not the version I ship by default (have not updated to 2.7.4 yet) but it will work. I guess you must have previously installed Python on your system at some stage, or maybe some other app that installs a python dll.
IP: --   

Installing Glade on Windows
filebravo
Group: Member
Post Group: Newbie
Posts: 8
Status:
Yes, I have different version of Python already installed on my machines.

IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
I've updated the Windows versions of Glade to Python 2.7.4. The DLL's supplied in the distribution have been meticulously checked that they are correct i.e. the 32 bit Glade is supplied with a 32 bit python27.dll and the 64 bit Glade is supplied with a 64 bit DLL.

If you install Python on windows from www.python.org, be aware that their Windows installer is broken, at least if you're running Windows 7 with a 64 bit cpu:

1. If you install the x86 (32 bit) version it puts a 32 bit python27.dll into C:\windows\system32 (wrong!) and C:\windows\syswow64 (correct)

2. If you try and install the x64 (64 bit) version to a seperate location, it does not change any existing DLLs from step 1, and even if you delete the DLLs it does not install the 64 bit DLL in C:\windows\system32.

3. If you uninstall python from your system, delete any python27.dll files, and then install the x64 version of Python it seems to get it right. But then installing the 32 bit version does not install any 32 bit DLLs, aargh!
IP: --   

Installing Glade on Windows
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
BTW you *must* have a Python installation on your Windows machine in order for Python to find necessary library files. As above you can download Python 2.7.4 from www.python.org.

Your PYTHONPATH environment variable on Windows should look something like this:

C:\Python27-x86\Lib;C:\Python27-x86\libs;C:\Python27-x86\DLLs;%GLADE_HOME%
IP: --   

Dell Backup & Recovery software causes Windows cr
Keith
Group: Moderator
Post Group: Super Member
Posts: 868
Status:
On Windows (64 bit), PCs with Dell's Backup and Recovery software causes a crash on Qt5 applications (such as Glade).

See http://en.community.dell.com/support-forums/software-os/f/3526/t /19634253 for more details.

The only solution is to uninstall the Dell Backup and Recovery software until Dell can fix the problem.

IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 26, 2019, 6:23 pm.

  Powered By AEF 1.0.9 © 2007-2011 Electron Inc.Queries: 12  |  Page Created In:0.048