You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kibble.apache.org by GitBox <gi...@apache.org> on 2020/10/06 21:00:24 UTC

[GitHub] [kibble] turbaszek opened a new issue #38: Installation steps don't work

turbaszek opened a new issue #38:
URL: https://github.com/apache/kibble/issues/38


   It seems that I'm unable to install the Apache Kibble from sources:
   ```
   ➜ pip install -e setup/.
   Obtaining file:///Users/tomaszurbaszek/kibble/setup
       ERROR: Command errored out with exit status 2:
        command: /Users/tomaszurbaszek/.virtualenvs/kibble/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/tomaszurbaszek/kibble/setup/setup.py'"'"'; __file__='"'"'/Users/tomaszurbaszek/kibble/setup/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/_j/9tm1bndd0x909p5l34tsg4mw0000gn/T/pip-pip-egg-info-n31j6zo4
            cwd: /Users/tomaszurbaszek/kibble/setup/
       Complete output (5 lines):
       /Users/tomaszurbaszek/kibble/setup/setup.py:36: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
         myyaml = yaml.load(open("kibble.yaml.sample"))
       usage: setup.py [-h] [-e HOSTNAME] [-p PORT] [-d DBNAME] [-s SHARDS]
                       [-r REPLICAS] [-m MAILHOST] [-a] [-k]
       setup.py: error: unrecognized arguments: egg_info --egg-base /private/var/folders/_j/9tm1bndd0x909p5l34tsg4mw0000gn/T/pip-pip-egg-info-n31j6zo4
       ----------------------------------------
   ERROR: Command errored out with exit status 2: python setup.py egg_info Check the logs for full command output.
   
   ➜ cd setup
   
   ➜ pip install setup.py
   ERROR: Could not find a version that satisfies the requirement setup.py (from versions: none)
   ERROR: No matching distribution found for setup.py
   ```
   
   I'm happy to improve it but at first, I would like to make sure that it's a real problem and not me. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [kibble] turbaszek commented on issue #38: Installation steps don't work

Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #38:
URL: https://github.com/apache/kibble/issues/38#issuecomment-704745827


   Oh, sorry my bad... the `python setup.py` works as described. 
   
   However, this is rather uncommon to use `setup.py` in this way. The main purpose of this script should be to allow users to install the package using setuptools as described here:
   https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py
   
   So I would like to propose to refactor this a little bit to avoid confusion with already known ways of installing and using python projects. WDYT @Humbedooh ?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [kibble] Humbedooh commented on issue #38: Installation steps don't work

Posted by GitBox <gi...@apache.org>.
Humbedooh commented on issue #38:
URL: https://github.com/apache/kibble/issues/38#issuecomment-704770805


   That assumes that this is a python package, which it is not :) It's a simple WSGI web site.
   I don't mind working towards a making it a proper pip package, but I think we'd need to discuss the overall structure and code if so.
   The base code has been largely untouched for 3 years, perhaps it's time to build a kibble backend v2 and discuss how we want it to work. I could think of many improvements such as using type hints (bonus points for annotated types from 3.9) to define APIs etc, maybe use asyncio and aiohttp for the server...


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [kibble] Humbedooh commented on issue #38: Installation steps don't work

Posted by GitBox <gi...@apache.org>.
Humbedooh commented on issue #38:
URL: https://github.com/apache/kibble/issues/38#issuecomment-704720618


   What installation instructions are you following? The official documentation does not mention using `pip install` for setup.py.
   It specifically mentions this example:
   
   - git clone https://github.com/apache/kibble.git /var/www/kibble
   - cd /var/www/kibble/setup
   - pip3 install -r requirements.txt
   - python3 setup.py


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [kibble] turbaszek commented on issue #38: Installation steps don't work

Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #38:
URL: https://github.com/apache/kibble/issues/38#issuecomment-704803395


   Thanks @Humbedooh! Once I'm more familiar with the whole codebase I will be happy to help with bringing some improvements to Apache Kibble 👍 
   
   In the meantime I'm closing this issue as it seems to be solved. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [kibble] turbaszek closed issue #38: Installation steps don't work

Posted by GitBox <gi...@apache.org>.
turbaszek closed issue #38:
URL: https://github.com/apache/kibble/issues/38


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org