Python 3 support

Bug #1006053 reported by Hetsch
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
inotifyx
Confirmed
High
Forest Bond

Bug Description

Hi,

first, thanks for this nice bindings!
Do you think it might be possible and relatively easy to get python3 support for this bindings?
I'm currently playing with the code of setup.py, setuptools.py and __init__.py to modify all str/unicode/byte
changes in python3.

python setup.py install get's executed sucessfully, but if after importing inotifyx it horrible fails...

>>> import inotifyx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "inotifyx/__init__.py", line 39, in <module>
    from inotifyx import binding
ImportError: cannot import name binding

I'm no expert in creating bindings, so maybe it's just a quick change for you. Would be highly appreciated!

Thank you so far!

Changed in inotifyx:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Andrew Fullford (ub1akf15) wrote :

I'm using inotifyx for Linux installations of taskforce (https://pypi.python.org/pypi/taskforce/). At the moment I'm converting taskforce to be compatible with Python 3 so Python 3 support in inotifyx would be good. taskforce operates in a polling mode on Linux if inotifyx is not available, so all is not lost without it.

Revision history for this message
Brian Russell (brussell) wrote :

python3 support part 1

Revision history for this message
Brian Russell (brussell) wrote :

python 3 support part 2

Revision history for this message
okaresz (okaresz) wrote :

Thanks for the patches, working for me! :)

Revision history for this message
remiego (remiego) wrote :

I'm not a unix/linux person, can someone provide the command line for the application of the patch? I've had a look and tried the -pX command to strip away the path I'm running from but think I'm mis-interpreting the original diff patch in the patch file (a/ b/)?

Sorry for being thick.

Changed in inotifyx:
assignee: nobody → Forest Bond (forest-bond)
importance: Low → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.