Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带python3.4和石墨网的Django_Python_Django_Python 2.7_Python 3.x_Graphite - Fatal编程技术网

带python3.4和石墨网的Django

带python3.4和石墨网的Django,python,django,python-2.7,python-3.x,graphite,Python,Django,Python 2.7,Python 3.x,Graphite,我正在使用Ubuntu14.04中的虚拟环境Python3.4,我有一个Django Web应用程序运行时没有任何问题。我希望能够监控请求/流量等,但是当我尝试安装Graphite Web(通过在venv中运行pip install Graphite Web)时,我得到以下信息: Collecting graphite-web Using cached graphite-web-0.9.13.tar.gz Traceback (most recent call last):

我正在使用Ubuntu14.04中的虚拟环境Python3.4,我有一个Django Web应用程序运行时没有任何问题。我希望能够监控请求/流量等,但是当我尝试安装Graphite Web(通过在venv中运行pip install Graphite Web)时,我得到以下信息:

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
收集石墨网
使用缓存的graphite-web-0.9.13.tar.gz
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“/tmp/pip-build-koiz44ft/graphite-web/setup.py”,第63行,在
data\u files=webapp\u content.items()+存储目录+配置文件+示例,
TypeError:不支持+:“dict_items”和“list”的操作数类型
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“/tmp/pip-build-koiz44ft/graphite-web/setup.py”,第63行,在
data\u files=webapp\u content.items()+存储目录+配置文件+示例,
TypeError:不支持+:“dict_items”和“list”的操作数类型
----------------------------------------
命令“python setup.py egg_info”在/tmp/pip-build-koiz44ft/graphite web中失败,错误代码为1
看起来这是由于python版本的原因,因为如果我退出venv(停用)并尝试使用sudo apt get install graphite web进行安装,它将以python 2.7中显示的方式进行安装


现在我的问题是,有没有一种方法可以让这些东西一起工作(即使它们需要不同版本的python)?

看起来graphite web目前不支持python 3(请参阅脚本)。您必须使用Python 2.7运行它。

所有操作都使用Python 2.7?不幸的是,我必须使用3.4。然后您必须放弃graphite web作为依赖项,或者自己更新它以与Python 3兼容。对不起,你好,阿拉斯代尔,谢谢你的回复。你能给我指出正确的方向吗,因为我不知道如何将它们一起运行(正如我提到的,我在3.4版本的venv上运行django)。你可以用Python2.7创建一个新的venv,并在其中安装django和graphite web。在您或其他人向graphite web添加Python 3支持之前,您没有任何其他选择。