Skip to content

Compatibility with GAE #334

@gaiar

Description

@gaiar

Steps to reproduce

  1. Upgrade to latest pip version
  2. Upload and run application to GAE with sample code
  3. Get errors

Seems that latest update broke some kind of compatibility with Google App Engine, as it doesn't support threading and so on.

Configuration

Operating System:
Google App Engine

version: 1
runtime: python27
api_version: 1
threadsafe: yes

Version of Python:

2.7

$ python -V

Version of python-telegram-bot:

Latest from pip.

$ python -c 'import telegram; print(telegram.__version__)'

python_telegram_bot-4.3.1-py2.py3-none-any.whl

Logs

Insert logs here (if necessary)

mws-114:xxx-1333 user$ pip install -U python-telegram-bot -t lib Collecting python-telegram-bot Using cached python_telegram_bot-4.3.1-py2.py3-none-any.whl Collecting urllib3>=1.10 (from python-telegram-bot) Using cached urllib3-1.16-py2.py3-none-any.whl Collecting certifi (from python-telegram-bot) Using cached certifi-2016.2.28-py2.py3-none-any.whl Collecting future>=0.15.2 (from python-telegram-bot) Installing collected packages: urllib3, certifi, future, python-telegram-bot Successfully installed certifi future-0.15.2 python-telegram-bot-4.1 urllib3

2a02:8109:a4bf:ebc4:950b:8c3f:2d5a:b4e2 - - [03/Jul/2016:04:32:37 -0700] "GET /favicon.ico HTTP/1.1" 500 0 "http://example.ru/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 3:1467545557.211349 : Traceback (most recent call last): : File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle : handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) : File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler : handler, path, err = LoadObject(self._handler) : File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject : obj = __import__(path[0]) : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/main.py", line 4, in <module> : from telegram.ext import Updater, CommandHandler, MessageHandler, Filters : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/telegram/ext/__init__.py", line 21, in <module> : from .dispatcher import Dispatcher : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/telegram/ext/dispatcher.py", line 27, in <module> : from future.builtins import range : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/builtins/__init__.py", line 10, in <module> : from future.builtins.iterators import (filter, map, zip) : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/builtins/iterators.py", line 43, in <module> : from future.types import newrange as range : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/types/__init__.py", line 243, in <module> : from .newrange import newrange : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/types/newrange.py", line 25, in <module> : from future.backports.misc import count # with step parameter on Py2.6 : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/backports/__init__.py", line 17, in <module> : from .misc import (ceil, : File "/base/data/home/apps/e~xxx-1333/1.393941255070644276/lib/future/backports/misc.py", line 900, in <module> : from subprocess import check_output : ImportError: cannot import name check_output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy