lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FW: MacOS python/GUI issues


From: Han-Wen Nienhuys
Subject: Re: FW: MacOS python/GUI issues
Date: Sun, 19 Oct 2008 22:54:28 -0200

> '/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.
pyc' does not exist

this could either be a permission issue (the .py exists, but the .pyc
canĀ“t be written), or some kind of packaging error for setuptools. Is
there some sort of demo that you can use to verify that it works in
general?



On Sun, Oct 19, 2008 at 8:43 PM, Carl D. Sorensen <address@hidden> wrote:
> After this test, I realized that VERSION was a file in the LilyPond
> distribution, so I copied all of the downloaded files into my LilyPond build
> directory.
>
> This time I got a different error:
>
> sorensen2:lilypond-working Carl$ python setup.py py2app --iconfile
> lilypond.icnsrunning py2app
> *** filtering dependencies ***
> 408 total
> 401 filtered
> 1 orphaned
> 7 remaining
> *** create binaries ***
> *** byte compile python files ***
> skipping byte-compilation of
> /Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/bootstrap/bo
> ot_app.py to boot_app.pyc
> skipping byte-compilation of
> /Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/bootstrap/ch
> dir_resource.py to chdir_resource.pyc
> skipping byte-compilation of
> /Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/bootstrap/di
> sable_linecache.py to disable_linecache.pyc
> Traceback (most recent call last):
>  File
> "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.p
> y", line 548, in _run
>    self.run_normal()
>  File
> "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.p
> y", line 619, in run_normal
>    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
>  File
> "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.p
> y", line 683, in create_binaries
>    dry_run=self.dry_run)
>  File
> "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/util.py",
> line 204, in byte_compile
>    if force or newer(mod.filename, cfile):
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/dist
> utils/dep_util.py", line 22, in newer
>    raise DistutilsFileError, "file '%s' does not exist" % source
> DistutilsFileError: file
> '/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.
> pyc' does not exist
>>
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils
> /dep_util.py(22)newer()
> -> raise DistutilsFileError, "file '%s' does not exist" % source
>
>
> I'll be happy to do whatever you suggest I should do to try to resolve this.
>
> Carl
>
>
> ------ Forwarded Message
> From: Carl Sorensen <address@hidden>
> Date: Sat, 18 Oct 2008 13:51:54 -0600
> To: <address@hidden>
> Cc: Lily-Devel List <address@hidden>
> Conversation: MacOS python/GUI issues
> Subject: Re: MacOS python/GUI issues
>
>
>
>
> On 10/3/08 4:18 PM, "Han-Wen Nienhuys" <address@hidden> wrote:
>
>> You need to have a python (2.4 or newer) installation that includes py2app,
>>
>> http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
>>
>
> Installed, but I'm not sure how to check that it installed correctly.  I was
> able to do the first step of the py2app tutorial, and successfully created
> setup.py.  But I don't have a tutorial app to build.
>
> I copied convert-ly.py to my MyApplication.py in my test directory, and it
> looks like py2app is running.
>
>> when you have that, you should check out the lilypad installer at
>>
>> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=shortlog;h=refs/heads/mac
>> os-lilypad
>
> OK, so when I did this I ended up with a .tar.gz.  When I extracted it, I
> got a lilypond directory, with names that looked right to me.
>
>> where the .icns is from
>>
>> http://cvs.savannah.gnu.org/viewcvs/*checkout*/installers/macos/lilypond.icns?
>> root=lilypond
>
> I downloaded lilypond.icns, and placed it in the lilypond directory created
> from the .tar.gz file above.
>>
>> then it should work if you do
>>
>>  python setup.py py2app --iconfile lilypond.icns
>
> When I tried this, I got the following error message:
>
> Traceback (most recent call last):
>  File "setup.py", line 17, in <module>
>    CFBundleShortVersionString = open ('VERSION').read (),
> IOError: [Errno 2] No such file or directory: 'VERSION'
>
>
>
> Any thoughts on what I need to do next?
>
> Carl
>
> ------ End of Forwarded Message
>
>



-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]