Modify

Ticket #203 (assigned task)

Opened 13 months ago

Last modified 8 days ago

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

obspy.patch Download (3.8 KB) - added by anonymous 8 days ago.

Change History

comment:1 Changed 13 months ago by beyreuth

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

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

  • numpy
  • scipy
  • lxml

Missing major dependencies

  • matplotlib

Any comments are welcome.

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:3 Changed 13 months ago by barsch

  • Owner set to barsch
  • Status changed from reopened to new

comment:4 Changed 13 months ago by barsch

  • Status changed from new to assigned

Changed 8 days ago by anonymous

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 ..
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from barsch. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.