gs-pypi icon indicating copy to clipboard operation
gs-pypi copied to clipboard

Resolving dependencies

Open dniku opened this issue 9 years ago • 2 comments

Attempting to import telegram with python-telegram-bot installed via gs-pypi fails with:

  File "/usr/lib64/python3.4/site-packages/telegram/__init__.py", line 46, in <module>
    from .emoji import Emoji
  File "/usr/lib64/python3.4/site-packages/telegram/emoji.py", line 24, in <module>
    from future.utils import bytes_to_native_str as n
ImportError: No module named 'future'

However, pip is able to resolve the dependency:

$ pip install --user python-telegram-bot
Collecting python-telegram-bot
  Downloading python_telegram_bot-3.2.0-py2.py3-none-any.whl (66kB)
    100% |████████████████████████████████| 69kB 402kB/s 
Collecting future (from python-telegram-bot)
  Downloading future-0.15.2.tar.gz (1.6MB)
    100% |████████████████████████████████| 1.6MB 201kB/s 
Building wheels for collected packages: future
  Running setup.py bdist_wheel for future
  Stored in directory: /home/pastafarianist/.cache/pip/wheels/d9/04/36/6bd807b5148e7c929d8f0991cc943a81f3287030a1b352e3fc
Successfully built future
Installing collected packages: future, python-telegram-bot
Successfully installed future-0.15.2 python-telegram-bot-3.2.0

UPD: sorry, I missed

Note, that at the moment gs-pypi doesn't support dependencies for pypi packages, so you need to add to this list package itself and all its dependencies.

I guess I should rename the issue.

dniku avatar Feb 20 '16 20:02 dniku

Seems to me gs-pypi should be extended with a command that generates the list that you can add to /etc/g-sorcery/g-sorcery.cfg yourself.

weedy avatar Dec 20 '17 19:12 weedy

Well, I moved to Arch over a year ago.

dniku avatar Jan 18 '18 23:01 dniku