简体   繁体   中英

Django with python3.4 and Graphite-web

I'm using the virtual environment Python3.4 in Ubuntu 14.04 and I have a Django webapp running without any issues. I want to be able to monitor the requests / traffic etc, however when I try to install the Graphite-Web (by running pip install graphite-web inside the venv) I'm getting the following:

Collecting graphite-web
  Using cached graphite-web-0.9.13.tar.gz
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-koiz44ft/graphite-web/setup.py", line 63, in <module>
        data_files=webapp_content.items() + storage_dirs + conf_files + examples,
    TypeError: unsupported operand type(s) for +: 'dict_items' and 'list'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 20, in <module>

      File "/tmp/pip-build-koiz44ft/graphite-web/setup.py", line 63, in <module>

        data_files=webapp_content.items() + storage_dirs + conf_files + examples,

    TypeError: unsupported operand type(s) for +: 'dict_items' and 'list'

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-koiz44ft/graphite-web

It looks like this is due to the python version, because if I exit the venv (deactivate) and try to install using sudo apt-get install graphite-web, it installs however it shows up under python 2.7.

Now my question is, is there a way that I can get these things to work together (even though they require different versions of python)?

It looks like graphite-web doesn't currently have Python 3 support (see the check-dependencies script). You'll have to run it with Python 2.7.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM