Unable to launch in OSX.

瀏覽次數:96 次
跳到第一則未讀訊息

Dan

未讀,
2009年5月19日 晚上7:05:152009/5/19
收件者:git-cola
I'm getting the following error when I select a Git repo on launch:

-----
git-cola Error
An unexpected error has occurred during execution of the main script

OSError: [Errno 2] No such file or directory
-----

Console reports the following error:

-----
5/19/09 4:03:51 PM com.apple.launchd[76]
([0x0-0xbc0bc].org.pythonmac.unspecified.git-cola[1977]) Exited with
exit code: 255
5/19/09 4:04:42 PM git-cola[2673] git-cola Error
5/19/09 4:04:42 PM git-cola[2673] git-cola Error
An unexpected error has occurred during execution of the main script

OSError: [Errno 2] No such file or directory

5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] Traceback (most recent call last):
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/
__boot__.py", line 143, in <module>
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] _run('git-cola.py')
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/
__boot__.py", line 140, in _run
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] execfile(path, globals(), globals())
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/git-
cola.py", line 54, in <module>
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673]
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] cola.main.main()
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/main.py", line 134, in main
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] valid = model.use_worktree(gitdir)
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/models/main.py", line 181, in use_worktree
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] self.__init_config_data()
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/models/main.py", line 218, in __init_config_data
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] local_dict = self.config_dict(local=True)
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/models/main.py", line 678, in config_dict
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] config_lines = self.git.config(**kwargs).splitlines()
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/git.py", line 48, in <lambda>
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] return lambda *args, **kwargs: self._call_process(name,
*args, **kwargs)
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/git.py", line 196, in _call_process
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] return self.execute(call, **_kwargs)
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] File "/Applications/git-cola.app/Contents/Resources/share/git-
cola/lib/cola/git.py", line 115, in execute
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] raise e
5/19/09 4:04:42 PM [0x0-0xbe0be].org.pythonmac.unspecified.git-cola
[2673] OSError: [Errno 2] No such file or directory
5/19/09 4:04:44 PM com.apple.launchd[76]
([0x0-0xbe0be].org.pythonmac.unspecified.git-cola[2673]) Exited with
exit code: 255
-----

Halp?

David Aguilar

未讀,
2009年5月19日 晚上11:34:172009/5/19
收件者:Dan、git-cola
On Tue, May 19, 2009 at 04:05:15PM -0700, Dan wrote:
>
> I'm getting the following error when I select a Git repo on launch:
>
> -----
> git-cola Error
> An unexpected error has occurred during execution of the main script
>
> OSError: [Errno 2] No such file or directory


git isn't in your $PATH.
When I tested it, I had git installed as /usr/bin/git.


Assuming that git is in your $PATH on the command-line then
you can get away with running either of these:

open /Applications/git-cola.app

or
/Applications/git-cola.app/Contents/MacOS/git-cola

You can even go as far as adding
/Applications/git-cola.app/Contents/MacOS

to your $PATH so that running 'git cola' does what you
expect it to do.

The advantage of not using the 'open' command is that it'll
pickup your current working directory, which is probably what
you want since you probably already did 'cd /my/git/project'
before running cola.


I've tested on PPC+Tiger as well as Intel+Leopard.

Let me know if that works for you.


I think there are ways to tweak some kind of Environment.plist
file to add stuff to the environment.

Where's your git? I know that the OSX git installer (on
google code) installs git to /usr/local/bin/git by default. I
assumed that /usr/local/bin was in everyone's $PATH, but I
might be mistaken.
--

David


Dan

未讀,
2009年5月20日 凌晨3:56:102009/5/20
收件者:git-cola
I think that you're right; my error has to do with the path. I tried
adding the paths you mentioned but to no avail. I discovered upon
deeper investigation that I had installed a macport PYQT over a
standalone install PYQT. Oops. I've removed the port and the
standalone entirely and am now reinstalling via Macport. Let's see if
this works!

David Aguilar

未讀,
2009年5月20日 清晨5:51:282009/5/20
收件者:Dan、git-cola
On Wed, May 20, 2009 at 12:56:10AM -0700, Dan wrote:
>
> I think that you're right; my error has to do with the path. I tried
> adding the paths you mentioned but to no avail. I discovered upon
> deeper investigation that I had installed a macport PYQT over a
> standalone install PYQT. Oops. I've removed the port and the
> standalone entirely and am now reinstalling via Macport. Let's see if
> this works!


git-cola.app includes the PyQt + Qt libraries so there's no
need to install them unless you want to build it from source
yourself (or develop git-cola, in which case running cola from
the source tree is the way to go).


One weird thing about Tiger:

In order to actually run git-cola.app I had to uninstall
macports:

$ cd /opt && sudo mv local local.bak

otherwise it fails at startup.
I can then run the .app.

In order to develop/build the .app I have to then go back
and restore macports:

$ cd /opt && sudo mv local.bak local

I don't need that workaround on Leopard.
The tiger machine I have is ppc so ymmv.

Good luck,
-David
--

David


Dan

未讀,
2009年5月20日 下午6:45:322009/5/20
收件者:git-cola
Git-cola still won't launch, reporting the same error. Interestingly,
when I try to build the application from source, I get this:

-----
ResNet-16-137:cola-1.3.7.60 Dan$ make
python setup.py build && rm -rf build
sh: pyuic4: command not found
PYQT version 4.3 or newer required. Found nothing
make: *** [all] Error 1
-----

Calling for Git gives:

-----
ResNet-16-137:~ Dan$ git --version
git version 1.6.3
-----

And calling port gives:

-----
ResNet-16-137:~ Dan$ port installed
The following ports are currently installed:
apr @1.3.3_1 (active)
apr-util @1.3.4_1 (active)
autoconf @2.63_0 (active)
automake @1.10.2_0 (active)
bzip2 @1.0.5_2 (active)
curl @7.19.4_0 (active)
cyrus-sasl2 @2.1.22_0+kerberos (active)
db46 @4.6.21_5 (active)
dbus @1.2.12_5 (active)
expat @2.0.1_0 (active)
fontconfig @2.6.0_2+macosx (active)
freetype @2.3.9_0+macosx (active)
gdbm @1.8.3_1 (active)
gettext @0.17_4 (active)
git-core @1.6.3_0+doc (active)
gperf @3.0.4_0 (active)
help2man @1.36.4_1 (active)
jpeg @6b_3 (active)
lcms @1.18a_0 (active)
libiconv @1.12_2 (active)
libmng @1.0.10_0 (active)
libpng @1.2.35_0 (active)
libtool @2.2.6a_0 (active)
m4 @1.4.13_0 (active)
mysql5 @5.0.81_0+server (active)
ncurses @5.7_0 (active)
ncursesw @5.7_0 (active)
neon @0.28.4_0 (active)
openssl @0.9.8k_0 (active)
p5-error @0.17015_0 (active)
p5-locale-gettext @1.05_0 (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
pkgconfig @0.23_1 (active)
popt @1.15_0 (active)
python26 @2.6.2_2 (active)
python_select @0.2.1_0+darwin_9 (active)
qt4-mac-devel @4.5.0_1 (active)
rb-mysql @2.7.5_1 (active)
rb-rubygems @1.3.1_0 (active)
rb-termios @0.9.4_0 (active)
readline @6.0.000_1 (active)
rsync @3.0.5_0 (active)
ruby @1.8.7-p160_1+thread_hooks (active)
serf @0.3.0_0 (active)
sqlite3 @3.6.13_0 (active)
subversion @1.6.1_0+tools (active)
tcl @8.5.6_0 (active)
tiff @3.8.2_3+macosx (active)
tk @8.5.6_1 (active)
Xft2 @2.1.13_1 (active)
xorg-bigreqsproto @1.0.2_0 (active)
xorg-inputproto @1.5.0_0 (active)
xorg-kbproto @1.0.3_0 (active)
xorg-libX11 @1.2.1_0 (active)
xorg-libXau @1.0.4_0 (active)
xorg-libXdmcp @1.0.2_0 (active)
xorg-libXext @1.0.5_1 (active)
xorg-libXScrnSaver @1.1.3_0 (active)
xorg-renderproto @0.9.3_0 (active)
xorg-scrnsaverproto @1.1.0_0 (active)
xorg-xcmiscproto @1.1.2_0 (active)
xorg-xextproto @7.0.5_0 (active)
xorg-xf86bigfontproto @1.1.2_0 (active)
xorg-xproto @7.0.15_0 (active)
xorg-xtrans @1.2.3_0 (active)
xrender @0.9.4_5 (active)
zlib @1.2.3_2 (active)
-----

Any ideas? Thanks for your help!

David Aguilar

未讀,
2009年5月21日 凌晨12:59:552009/5/21
收件者:Dan、git-cola
On Wed, May 20, 2009 at 03:45:32PM -0700, Dan wrote:
>
> Git-cola still won't launch, reporting the same error. Interestingly,
> when I try to build the application from source, I get this:
>
> -----
> ResNet-16-137:cola-1.3.7.60 Dan$ make
> python setup.py build && rm -rf build
> sh: pyuic4: command not found
> PYQT version 4.3 or newer required. Found nothing
> make: *** [all] Error 1


Add
/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin
to your $PATH.

We should mention that in the darwin/README.

pyuic4 isn't installed in /opt/local/bin on macports, which is a
little weird, no?

I believe there's an open issue against macports to fix that
problem but it hasn't been addressed yet.


The next time I visit my friend w/ an intel tiger machine I'll
give it a try there. My laptop is an intel leopard and the
tiger machine I have access to is ppc, so testing the other
permutations is always not-so-easy for me.


Once you add pyuic4 to your path then building from source is
definitely the way to go (it's easier and doesn't require all
the .app stuff).

$ make
$ cd /path/to/my/git/repo
$ /path/to/cola/bin/git-cola

Thanks for helping out since the os x .app stuff is brand new.
--
David
回覆所有人
回覆作者
轉寄
0 則新訊息