python&Mac上的Django:非法的硬件说明 [英] Python & Django on a Mac: Illegal hardware instruction

查看:39
本文介绍了python&Mac上的Django:非法的硬件说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题:我在Mac上安装了Python和Django.当我运行"django-admin.py startproject test1"时,出现此错误:

Here is my issue: I installed Python and Django on my mac. When I run "django-admin.py startproject test1" I get this error:

1 11436非法硬件指令django-admin.py startprojecttest1(数字总是不同的)

1 11436 illegal hardware instruction django-admin.py startproject test1 (the number is always different)

我已经测试了多个Django版本,并且只有在1.4和更高版本中才发生这种情况... 1.3可以正常工作.

I've tested with multiple Django versions, and this only happens with version 1.4 and higher...1.3 works fine.

在过去的一周里,我一直在疯狂地搜索网络,并且找不到关于Django的任何有关此问题的信息,因此我认为问题不在于Django本身,而是其他.这仅在我的Mac在家中,在我使用Ubuntu的情况下正常工作.

I've been searching the web like crazy for the past week, and couldn't find anything regarding this issue with django so I assume the problem is not Django itself but something else. This is only on my mac at home, at work where I user Ubuntu works fine.

我试图重新安装整个系统,而这是我目前已安装的唯一东西:-命令行工具-自酿-Python和点子(含自制)-Git(带自制)-zsh(.oh-my-zsh shell)

I tried to reinstall my entire system and this are the only things I have installed right now: - Command line tools - Homebrew - Python & pip (w/ Homebrew) - Git (w/ Homebrew) - zsh (.oh-my-zsh shell)

我设置了virtualenv并安装了django 1.5.1-仍然出现相同的问题.

I set up my virtualenv and install django 1.5.1 -- the same issue still appears.

由于无法找到解决我的问题的方法,所以我现在没有选择,我希望有人对此错误有所了解.

I'm out of options for now since nothing I found resolves my problem, I'm hoping someone has some knowledge about this error.

感谢所有帮助,谢谢.

这是python崩溃日志:

This is the python crash log:

进程:Python [2597]路径:/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python标识符:Python版本:2.7.4(2.7.4)代码类型:
X86-64(本机)父进程:zsh [2245]用户ID:501

Process: Python [2597] Path: /usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.4 (2.7.4) Code Type:
X86-64 (Native) Parent Process: zsh [2245] User ID: 501

日期/时间:2013-05-05 20:53:19.899 +0200操作系统版本:Mac OSX 10.8.3(12D78)报告版本:10

Date/Time: 2013-05-05 20:53:19.899 +0200 OS Version: Mac OS X 10.8.3 (12D78) Report Version: 10

自上次报告以来的间隔:自上次报告以来发生16409秒崩溃报告:自上次报告以来,每应用程序崩溃2次:1次匿名UUID:D859C141-544F-3473-1A13-F984DB2F8CBE

Interval Since Last Report: 16409 sec Crashes Since Last Report: 2 Per-App Crashes Since Last Report: 1 Anonymous UUID: D859C141-544F-3473-1A13-F984DB2F8CBE

崩溃的线程:0调度队列:com.apple.main-thread

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

异常类型:EXC_BAD_INSTRUCTION(SIGILL)异常代码:0x0000000000000001、0x0000000000000000

Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000

推荐答案

那种问题闻起来像体系结构混乱.您可能会尝试从32位解释器执行64位库,反之亦然…当您使用自制程序时,您将非常注意所使用的解释器,路径是什么,等等……也许您应该跟踪程序才能知道更确切地说是失败的地方,因此您可以查明实​​际上是什么失败.django失败的可能性很小,但是django使用的东西更多.要有人帮助您,您需要更深入地挖掘您的失败点,并提供有关超越 django的失败之处的更多背景信息.

that kind of problem smells like architecture mess. You may try to execute a 64bit library from a 32bit interpreter or vice versa… As you're using homebrew, you shall be really careful of which interpreter you're using, what is your path etc… Maybe you shall trace your program to know more exactly where it fails, so you can pinpoint what is actually failing. It is very unlikely django that fails, but more something that django uses. For someone to help you, you need to dig more closely to your failing point, and give more context about what is failing beyond django.

这篇关于python&Mac上的Django:非法的硬件说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆