Ticket #173 (new defect)

Opened 3 weeks ago

Last modified 3 weeks ago

"ogr_sp.py" contains incorrect syntax for Python3

Reported by: jmckenna Owned by:
Priority: major Milestone:
Component: zoo-server Version:
Keywords: Cc: venka, jmckenna@…

Description

  • in \zoo-services\ogr\base-vect-ops-py\cgi-env\
  • Python OGR services will break with Python3
  • attaching updated "ogr_sp.py" file for Python3 users
    • replaces "libxml2" with "lxml"
    • "except Exception as e" instead of "except Exception,e"

Attachments (1)

ogr_sp.patch (5.9 KB) - added by jmckenna 3 weeks ago.
full patch with proper encoding

Download all attachments as: .zip

Change History

Changed 3 weeks ago by jmckenna

full patch with proper encoding

  Changed 3 weeks ago by jmckenna

  • cc jmckenna@… added
  • updated patch to also:
    • use correct print() syntax changes in Python3
    • handle dict.keys() changes in Python3

follow-up: ↓ 3   Changed 3 weeks ago by djay

Sorry for lack of communication and to not have think about this python3 update but I guess it is very similar to what has been done by our GSoC student during the testing phase and which is available here

in reply to: ↑ 2   Changed 3 weeks ago by djay

Replying to djay:

Sorry for lack of communication and to not have think about this python3 update but I guess it is very similar to what has been done by our GSoC student during the testing phase and which is available here

This is actually wrong. Only the modifications make the Python service working on windows.

Note: See TracTickets for help on using tickets.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png