osx-snow-leopard

“No module named _scproxy” on OSX

别说谁变了你拦得住时间么 提交于 2019-12-04 07:24:13
I'm on OSX 10.6 with pre-installed python 2.6 and would like to install python packages via easy_install or setup.py (in a downloaded package). In my case I'm trying to install MySQLdb. In both cases I get a stack trace which ends like so: ... File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 21, in <module> from setuptools.package_index import PackageIndex, parse_bdist_wininst File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/package_index.py", line 2, in <module> import sys, os

Force a Mac OS X 32/64-bit universal binary to run 32-bit on an old OS version only?

ⅰ亾dé卋堺 提交于 2019-12-04 07:13:25
I want to ship a single 32/64-bit universal binary of my desktop Mac OS X Cocoa app. I don't want to ship two versions. I want it to run as a 64-bit process on Snow Leopard. However, if the app is launched on Leopard, I want to always force it to run as a 32-bit process. NOTE: I know that in the Finder 'Get Info' window you can click the 'Open in 32-bit mode' checkbox to achieve this. That's nice, but what I really want is a way to automatically, always force this behavior on Leopard only . On Snow Leopard the app should run 64-bit unless the user wants to change the setting mentioned above.

How to Install rpy2 on Mac OS X

依然范特西╮ 提交于 2019-12-04 06:47:48
I am trying, so far unsuccessfully, at installing the rpy2 for python on my Mac OSX. I have tried Macports and DarwinPorts but have had no luck with import rpy2 within the python shell environment. I don't know much about programming in Mac and I am a wiz at installing modules on a Windoze based system, but for the life of me cannot do a simple port on my Mac at home. What I am after, if someone would be so kind, are "dumbed down" instructions for a successful install of rpy2 for Mac OSX Snow Leopard. Hopefully someone here has done this successfully and can outline the process they took? At

Xcode 4.5 with iOS 6 on Snow Leopard

旧街凉风 提交于 2019-12-04 03:54:20
问题 I am looking to get started on iOS 6 development. I had developed on iOS 4 way back and I have Xcode 4.2 running on my machine right now. I also have some projects on there from previous iOS versions. I would like to download the latest developer version Xcode 4.5 + iOS 6 and start developing on my system however, I dont want to lose the previous projects that I have written. I would like to be able to compile them and run them in the simulator. I have the following questions: Can I install

Running iPhone 5 Simulator on Snow Leopard

点点圈 提交于 2019-12-04 01:36:59
I am running the iOS6 SDK on my mac running Xcode 4.2 on Snow Leopard using steps from this Stack Overflow post. I'm now trying to get the iPhone 4" screen to work. I have been able to get iOS 6 to show up in the iOS simulator under the Hardware > Version menu. When I try to load an iOS 6 device, I get the error: "The simulated application quit" - "Click Relaunch to try again". It then gives me an option to switch to a different SDK. If I choose iOS6, it again crashes. If I choose iOS 5, it loads correctly. I also don't have an iPhone 4" screen option under the Hardware > Device menu. I have

locale.getlocale() problems on OSX

对着背影说爱祢 提交于 2019-12-03 21:42:13
I need to get the system locale to do a number of things, ultimately I want to translate my app using gettext. I am going to distribute it on both Linux and OSX, but I ran into problems on OSX Snow Leopard: $ python Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(locale.LC_ALL, '') 'sv_SE.UTF-8' >>> locale.getlocale() ('sv_SE', 'UTF8') $ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright",

Adding version infomation to an OSX command line application

孤人 提交于 2019-12-03 21:33:36
On Windows I'd simply add an RC file with the right data. Do I need to assemble a bundle as usual with an info.plist/version.plist or is there a better, standard , way of doing things? This is for Snow Leopard and later if that is relevant. Thx++ JWWalker It is possible to embed an Info.plist file in an executable as a special Mach-o section. See for example this question . If you have a command line application, then it's just a single file and not a traditional OSX app package (with a Contents folder and a MacOS + Resources folder underneath). If you're not willing to do a full blown

Writing a Snow Leopard Service for Finder.app

烂漫一生 提交于 2019-12-03 18:55:04
问题 I am currently looking into solving the problem with the inability to quickly create new files in the Finder. I will open source what I write because I think the Mac community needs this solved. On Windows, you can right-click, create new text file. OS X, you should be able to do this with a service which would work like this: Right-Click > Services > Create New Text File Writing a Finder Service in Snow Leopard is theoretically the way to accomplish this, although I haven't been able to find

Macports mysql5 setup under Snow Leopard

人走茶凉 提交于 2019-12-03 18:35:52
问题 I've managed to get my install all screwed up as I'm a newbie and messing up is what I'm good at. 1) Can anyone reference a credible set of setup instructions for this stuff? 2) Can I just uninstall and start from scratch (passwords and all) through macports? I tried and a bunch of mysql directories stuck around after the unistall, WTF!? 3) Where does mysqld.sock need to reside and what file settings do I need to apply to get it playing nice with php5 and apache2 ? Does it live in /tmp or in

Xcode 3.2 in Snow Leopard hangs running unit tests

不羁岁月 提交于 2019-12-03 16:57:42
So I have some unit tests that pass in Xcode 3.1 / Leopard. These use SenTestingKit in an iPhone app project and are built/run in a separate "Test" target. I just upgraded to Xcode 3.2 on Snow Leopard and the tests seem to run (I get logs in Console.app and see them passing), but Xcode beachballs and must be force quit'd after they are run. Console.app displays the following error from Xcode, which appears even if no test cases are included in the Test target: Xcode[1734] -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x20104db60 Xcode[1734]