-
Notifications
You must be signed in to change notification settings - Fork 9
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
fails to install on windows #5
Comments
Hmmm... I searched a little bit: |
Yeah, and various other variations on that theme, none of which helped, although remarkably I don't seem to have broken my system yet. Perhaps I should give up and setup a linux virtual machine. |
The odd thing and what I suspect is the key to this mess, is that I can import gtk from the python prompt with no problems. |
It seems to be the import of enchant, if I comment that out of init.py then the setup install runs and I fail at runtime with: Traceback (most recent call last): |
putting the enchant import after the gtk import has the same effect as commenting it out, specifically the languages import error above, here's the enchant version if that helps any C:\code\blog>python
|
If you are using the newest version, there was an API change. |
Yeah, that got me past the pygtkspellcheck specific problems, now I'm just bashing up against not having gi.repository which has broken all of my code. I'm not clear why I don't have that or even if I'm supposed to have it, do you know anything about gi.repository on windows? |
There is no GObject-Introspection for windows yet. You have to backport your application to PyGTK. |
awesome, that's going to be a touch tedious, thanks for the help, I'll let you know how it goes |
I fixed the import issue, now you only have to backport your application - good luck |
I have the backport done and everything seems to be working fine, including the spell checking. Having done my backport I'm curious about a couple of things in yours.
Under gobject I don't use the new function in places like this, I just call the default constructor, so I don't need the if statement at all, is this required for a gobject 2/3 difference? or is it redundant?
Why is the gtk.WINDOW_TOPLEVEL constant not used here instead of the explicit 0? |
btw, thanks for your help and for creating the spellchecker in the first place |
I think code says more than thousand words:
(the new method is like the original C method - http://developer.gnome.org/gtk3/stable/ - sometimes it works without new and sometimes not, so I decided to use new everytime) There is no gtk.WINDOW_TOPLEVEL constant over gi.repository.
But I think I could use gtk.WindowType.TOPLEVEL instead (or do you mean this by gtk.WINDOW_TOPLEVEL). |
I understand that reasoning, I took the opposite approach of only using new
I may have confused things here, this was not about sharing code between On Fri, Jun 15, 2012 at 6:06 PM, koehlma <
|
Trying to install this on a win7 machine I get the following stack:
$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 20, in
from gtkspellcheck import version
File "c:\code\pygtkspellcheck\src\gtkspellcheck__init__.py", line 37, in
import gtk
File "c:\python27\lib\site-packages\gtk-2.0\gtk__init__.py", line 30, in
import gobject as gobject
File "c:\python27\lib\site-packages\gtk-2.0\gobject__init_.py", line 26, in
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds,
File "c:\python27\lib\site-packages\gtk-2.0\glib__init__.py", line 22, in
from glib._glib import *
ImportError: DLL load failed: The specified procedure could not be found.
here's some version info
$ python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
Any suggestions about what might be going wrong?
The text was updated successfully, but these errors were encountered: