acode / lib-python

Autocode standard library Python bindings
MIT License
33 stars 6 forks source link

AttributeError: 'list' object has no attribute 'push' #3

Open arabelle opened 6 years ago

arabelle commented 6 years ago

I am trying to import the lib package in my python application and it seems to run into a problem where the package has a bug (as shown below)

ERROR:tornado.application:Uncaught exception POST /image?
...
Traceback (most recent call last):
...
  File "/usr/local/lib/python2.7/dist-packages/lib/__init__.py", line 136, in __call__
    body = self.__py2body__(args, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/lib/__init__.py", line 204, in __py2body__
    a.push(value)
AttributeError: 'list' object has no attribute 'push'

All I am doing is from lib import lib.

Is this a known problem? I am running this in a docker container where I run: pip install lib on it.

malkevych commented 6 years ago

try import is as from lib import lib as lib_inst