Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2085

Cant Import avro.schema from pip install python 3.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 1.8.2
    • None
    • python
    • None

    Description

      I tried importing avro.schema, and I receive the error posted below but I made a pull request that solves that issue. https://github.com/apache/avro/pull/253

      (gavro) [gavro] python                                                                                                    22:11:37 
      Python 3.6.2 (default, Jul 20 2017, 03:52:27) 
      [GCC 7.1.1 20170630] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import avro
      >>> import avro.schema
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/home/archangel/VENV/gavro/lib/python3.6/site-packages/avro/schema.py", line 340
          except Exception, e:
                          ^
      SyntaxError: invalid syntax
      >>> 
      (gavro) [gavro] pip freeze | ack avro                                                                                     22:12:01 
      avro==1.8.2
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jorge A. Jorge Perez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: