Re: PyYAML bug in python 3.4.3
Scott Kitterman <[email protected]> Wed, 30 Sep 2015 16:36:52 -0400
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
On September 30, 2015 10:27:39 AM EDT, Leandro Poblet <[email protected]> wrote: >Hello, > >I'm using PyYAML 3.11 with python 3.4.3 in an apache 2.4.7 in Ubuntu >Trusty >x86_64. The problem is whenever I run the application I get the >following >error: > >[Wed Sep 30 14:14:39.691075 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] Traceback (most recent call last): >[Wed Sep 30 14:14:39.691231 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] File "/var/www/carrito/application.wsgi", >line 7, >in <module> >[Wed Sep 30 14:14:39.692073 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] from config import app as application >[Wed Sep 30 14:14:39.692244 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] File "/var/www/carrito/config/__init__.py", >line >2, in <module> >[Wed Sep 30 14:14:39.692993 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] import os, yaml, datetime, locale >[Wed Sep 30 14:14:39.693231 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] File >"/opt/envs/carrito/lib/python3.4/site-packages/yaml/__init__.py", line >284 >[Wed Sep 30 14:14:39.693473 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] class >YAMLObject(metaclass=YAMLObjectMetaclass): >[Wed Sep 30 14:14:39.693673 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] ^ >[Wed Sep 30 14:14:39.693824 2015] [:error] [pid 15073:tid >140084342036224] >[remote 10.0.2.2:45301] SyntaxError: invalid syntax > >I have another app that runs with python 3.4.0 that does not have this >problem, is it a PyYAML specific problem? Or maybe something in my >setup? There are known incompatibilities in the python3.4.3 update. I think there's an update for it in trusty-proposed you might try. If not or if it doesn't help, I'd file an Ubuntu bug. Scott K ------------------------------------------------------------------------------