Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arabelle opened this issue Jan 15, 2018 · 1 comment
Open

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

arabelle opened this issue Jan 15, 2018 · 1 comment

Comments

@arabelle
Copy link

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
Copy link

malkevych commented Apr 12, 2018

try import is as
from lib import lib as lib_inst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants