Created attachment 363625 [details]
python-nltk in Fedora is 0.9.2, released in March 2008; current (non-beta) nltk is 0.9.9, released May 2009.
I'm attaching the updated spec file and will attach updated patches momentarily.
Created attachment 363626 [details]
Created attachment 363627 [details]
Patch to avoid a RuntimeError when importing gtk (via nltk.app) during build
Thanks, I'll look over them and forward any relevant patch upstream.
Regarding those permission fixes -- since many more of them cropped up, I took a look and noticed that most of them are not even supposed to be scripts in the first place.
E-mailed upstream about it:
Since we don't really need to issue an update soon (this is not important enough to break freeze, and we can't issue an F-11 update without updating F-12 too), I'll wait for a response from upstream before deciding what to do with the permissions, and issue a Rawhide build then.
Sure, that's reasonable.
Note that the 'import gtk' RuntimeError fix is due to a Fedora-specific patch in pygtk2 - see http://cvs.fedoraproject.org/viewvc/devel/pygtk2/pygtk-nodisplay-exception.patch?view=markup - so upstream may be justified in rejecting that patch.
The Proper Fix, I suppose, would be to avoid importing gtk while running setup.py. Maybe something like:
1) split the metadata in the main nltk namespace (__version__, __url__, etc) into a nltk.metadata module
2) have nltk/__init__.py do "from metadata import *" or similar, to keep them in the main namespace
3) make setup.py do "import nltk.metadata" instead
(GTG had a similar problem - see https://bugs.launchpad.net/gtg/+bug/401254)
Thanks for the quick response.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
*** Bug 566204 has been marked as a duplicate of this bug. ***
Created attachment 412755 [details]
Patch to the spec file to update nltk to 2.0b8
This package seems out-dated for two years.
Can I help maintaining it? My FAS account is 'cheeselee'.
And I will also help updating it to 2.0 in Rawhide.
The shebangs in files in 0.9.9 should be simply removed, since all of them have been removed in upstream development branch.
Hope for a response.
(In reply to comment #2)
> Created an attachment (id=363627) [details]
> Patch to avoid a RuntimeError when importing gtk (via nltk.app) during build
Can you explain what this patch is for? It seems that nltk doesn't use gtk at all.
python-nltk-0.9.9-1.fc12 has been submitted as an update for Fedora 12.
(In reply to comment #11)
> (In reply to comment #2)
> > Created an attachment (id=363627) [details] [details]
> > nltk-0.9.9-avoid-gtk-runtime-error.patch
> > Patch to avoid a RuntimeError when importing gtk (via nltk.app) during build
> Can you explain what this patch is for? It seems that nltk doesn't use gtk at
I found the answer when I was importing nltk in a pure console environment.
python-nltk-0.9.9-2.fc12 has been submitted as an update for Fedora 12.
python-nltk-0.9.9-2.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update python-nltk'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-nltk-0.9.9-2.fc12
python-nltk-0.9.9-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.