Ticket #203 (assigned task)
Python 3 support
| Reported by: | anonymous | Owned by: | barsch |
|---|---|---|---|
| Priority: | major | Component: | ObsPy library |
| Keywords: | Cc: | barsch |
Description (last modified by beyreuth) (diff)
Hi all,
are there any plans for ObsPy Python 3 support.
Attachments
Change History
comment:1 Changed 13 months ago by beyreuth
- Status changed from new to closed
- Resolution set to fixed
- Description modified (diff)
comment:2 Changed 13 months ago by barsch
- Cc barsch added
- Status changed from closed to reopened
- Resolution fixed deleted
- Type changed from support request to task
just a small rant: ofc we won't "migrate" any code - instead we'll use the automated Python 2 to 3 code translation library lib2to3 within the setup.py as all other Python 3 enabled packages mentioned above - otherwise we end up maintaining multiple trunks for Python 2 and 3.
Generally we should not meet any unsolvable issue for any Python version >=2.6.x - I'm not sure about Python 2.5.x as there is no print() function available.
I'll try to exploit this whole issue in the near future and report back here.
comment:5 Changed 8 days ago by anonymous
Attached patch gets obspy successfully loading on python3. It might break obspy on windows (though still good with python2/linux)
One might also need to execute theese commands:
cd obspy.taup 2to3 setup.py -w cd .. cd obspy.wav sed -i -e'12,15d' setup.cfg cd ..


Yes, we we will migrate ObsPy to Python 3 as soon as our major dependencies are migrated. Already migrated major dependencies:
Missing major dependencies
Any comments are welcome.