- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试安装 django-toolbelt
根据 heroku django 安装说明在我的虚拟环境中,但我不断收到以下错误。
这是全新安装的 Ubuntu 14.04 - 所以我不确定是什么问题。我尝试摆弄我的 ubuntu 安装以添加我可能缺少的任何依赖项,但似乎没有任何效果。任何帮助将不胜感激!
(venv)khalid@khalid-laptop:~/Desktop/Projects/heroku-test$ pip install django-toolbelt
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/home/khalid/Desktop/Projects/heroku-test/venv/bin/pip", line 9, in <module>
load_entry_point('pip==1.1', 'console_scripts', 'pip')()
File "/home/khalid/Desktop/Projects/heroku-test/venv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/khalid/Desktop/Projects/heroku-test/venv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/home/khalid/Desktop/Projects/heroku-test/venv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/khalid/Desktop/Projects/heroku-test/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 10, in <module>
from pip.backwardcompat import walk_packages, console_to_str
File "/home/khalid/Desktop/Projects/heroku-test/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/backwardcompat.py", line 18, in <module>
import md5 as md5_module
File "/usr/lib/python2.7/md5.py", line 10, in <module>
from hashlib import md5
ImportError: cannot import name md5
最佳答案
在敲了几下头之后,我最终删除了我的virtualenv
。文件夹,重新安装 python-virtualenv
并使用 --no-site-packages
创建一个新的标志,我能够安装django-toolbelt
成功地。
关于python - 安装 django-toolbelt 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24844121/
在过去一天左右的时间里,Heroku Toolbelt 的 Ubuntu 存储库报告了以下内容: Failed to fetch http://toolbelt.heroku.com/ubuntu/.
我卸载了 heroku gem 并安装了 Heroku Toolbelt,但在使用 RVM 时遇到了问题。 heroku version 命令在除我当前项目文件夹之外的任何地方都有效。 在我的项目文件
我卸载了 heroku gem 并安装了 Heroku Toolbelt,但在使用 RVM 时遇到了问题。 heroku version 命令在除我当前项目文件夹之外的任何地方都有效。 在我的项目文件
我的Heroku Toolbelt卡住了更新。 当我在控制台中运行heroku时,它说 Heroku Toolbelt当前正在更新。 我尝试卸载并重新安装,但仍然是同样的问题。 我还尝试使用revo卸
我正在尝试部署我正在开发的陨石项目。我搞砸了几次,但目前我不断得到: heroku config:add BUILDPACK_URL=https://github.com/oortcloud/hero
我正在尝试部署我正在处理的陨石项目。我搞砸了几次,但目前我一直在: heroku config:add BUILDPACK_URL=https://github.com/oortcloud/herok
我是 Ruby 和 Rails 项目的绝对新手,如果这是一个愚蠢的问题,我很抱歉。 我已经使用 wget -qO- https://toolbelt.heroku.com/install-ubuntu
我正在尝试安装 django-toolbelt根据 heroku django 安装说明在我的虚拟环境中,但我不断收到以下错误。 这是全新安装的 Ubuntu 14.04 - 所以我不确定是什么问题。
我正在尝试将我的第一个 rails 应用程序部署到 heroku,不幸的是我在运行 heroku create 时遇到错误命令: @ C:\railsprojects\sample_app> hero
我在heroku上有多个app/git远程,我想知道是否可以配置一个默认应用程序,这样,每当我忘记指定应用程序时(--app ),工具带会使用它。 最佳答案 您可以将存储库的 Git 配置中的 her
我正在尝试让 Heroku toolbelt 正常工作,但这完全是一场噩梦。安装成功运行,但是当我运行 heroku update 时,我得到: $ heroku update
有没有办法单独下载和安装 heroku toolbelt 组件,或者至少没有捆绑的 git? Heroku Toolbelt 捆绑了 git。上次我下载并安装它时,它覆盖了我现有的 git 安装。 H
烦人的是我的 Heroku 工具带总是在我发出 Heroku 命令时尝试更新。如果它确实更新了,这不会那么糟糕,但无论我给目标文件夹或 CMD 什么权限,我都会收到 Access is Denied错
我下载了最新的 Windows 工具带;然而,当我尝试从 DOS 启动任何 heroku 命令时,我得到: c:/Program Files/Heroku/lib/heroku/updater.rb:
我手动试过clearing and setting the buildpack对于我的 Rails 应用程序到 heroku/rails。我已经验证了我有一个 Gemfile,但我仍然得到这个错误
我正在尝试在通过代理连接到互联网的 Ubuntu 机器上安装 Heroku Toolbelt。我对 Ubuntu 及其设置还很陌生,但我成功地连接到了互联网。 Internet 似乎工作正常,仅通过
在 Windows 上使用 Heroku 工具带时是否可以获取 Rails 控制台命令行历史记录? heroku run console 这不适用于使用版本 2.33.1 的 Windows 7。 最
我正在尝试执行教程的 heroku 设置部分 http://ruby.railstutorial.org/ .但是在 https://toolbelt.heroku.com/ ,我注意到 Fedora
我正在学习 Rails,我正在尝试让 heroku 启动并运行。但是,当我安装 heroku toolbelt 时,会产生一些错误。如果我尝试运行任何 Rails 命令,我会得到类似这样的信息: C:
我正在尝试从 :wget -O- https://toolbelt.heroku.com/install-ubuntu.sh 在 Kali sana 中安装 heroku 工具带| sh 和我不断收到
我是一名优秀的程序员,十分优秀!