Skip to content

Installation error with buildout #360

@spacetekk

Description

@spacetekk

Steps to reproduce

  1. Install python-telegram-bot using buildout

Expected behaviour

setup.py file must not have implicit dependencies from requirements.txt

Actual behaviour

As I see, the setup.py file contains telegram package import on line 5:

import telegram

Correct me if I wrong, but it means that all requirements for this package must be already installed. This import is only used to get correct version on line 21:

version=telegram.__version__,

and when i clone whole repository into src subfolder, remove this import by hardcoding version into setup.py file, everything works like a charm and package installs as develop package without any errors.

Configuration

Arch Linux

Version of Python, python-telegram-bot & dependencies:

python 2.7.12
buildout 2.5.2
python-telegram-bot 5.0.0

Logs

...
File "/tmp/easy_install-XUjpMi/python-telegram-bot-5.0.0/setup.py", line 5, in <module>
File "/tmp/easy_install-XUjpMi/python-telegram-bot-5.0.0/telegram/__init__.py", line 44, in <module>
File "/tmp/easy_install-XUjpMi/python-telegram-bot-5.0.0/telegram/inputfile.py", line 34, in <module>
ImportError: No module named future.moves.urllib.request
An error occurred when trying to install python-telegram-bot 5.0.0. Look above this message for any errors that were output by easy_install.
While:
Installing python-telegram-bot.
Getting distribution for 'python-telegram-bot'.
Error: Couldn't install: python-telegram-bot 5.0.0
make: *** [config/make/admin.mk:36: /home/stas/nightsearch/.make.buildout] Error 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions