473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

python 2.3.4 installation as framework (Mac OSX): test failed

Hello,
I tried to do a Python 2.3.4 framework installation on my Mac OS X
10.3.5. I configured as described in /Mac/OSX/ReadMe:

../configure --enable-framework

But on make test, one test failed:

test test_macostools failed -- Traceback (most recent call last):
File "/Users/sven/Downloads/Python-2.3.4/Lib/test/test_macostools.py",
line 78, in test_mkalias_relative
macostools.mkalias(test_support.TESTFN, TESTFN2, sys.prefix)
File "/Users/sven/Downloads/Python-2.3.4/Lib/plat-mac/macostools.py",
line 39, in mkalias
relativefsr = File.FSRef(relative)
Error: (-43, 'File not found')

Here is the content of the files mentioned in the error notification:

/Users/sven/Downloads/Python-2.3.4/Lib/test/test_macostools.py:

73 def test_mkalias_relative(self):
74 try:
75 os.unlink(TESTFN2)
76 except:
77 pass
78 macostools.mkalias(test_support.TESTFN, TESTFN2, sys.prefix)
79 fss, _, _ = Carbon.File.ResolveAliasFile(TESTFN2, 0)
80 self.assertEqual(fss.as_pathname(),
os.path.realpath(test_support.TESTFN))
/Users/sven/Downloads/Python-2.3.4/Lib/plat-mac/macostools.py:

27 # Not guaranteed to be correct or stay correct (Apple doesn't tell
you
28 # how to do this), but it seems to work.
29 #
30 def mkalias(src, dst, relative=None):
31 """Create a finder alias"""
32 srcfsr = File.FSRef(src)
33 # The next line will fail under unix-Python if the destination
34 # doesn't exist yet. We should change this code to be
fsref-based.
35 dstdir, dstname = os.path.split(dst)
36 if not dstdir: dstdir = os.curdir
37 dstdirfsr = File.FSRef(dstdir)
38 if relative:
39 relativefsr = File.FSRef(relative)
I have no idea how to fix this. Does the comment "The next line will
fail under unix-Python if the destination doesn't exist yet"? mean that
I have ro create some directory first? Which one?

If I do a ./configure without the --enable-framework option, no tests
fail. Can you help me?

Thanks, Sven
Jul 18 '05 #1
0 1240

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: hokieghal99 | last post by:
While trying to learn more about Python's standard modules, I noticed that there are *a lot* of Mac only modules... more so than Unix and Windows specific modules combined. Is there a reason for...
0
by: Neil Benn | last post by:
Hello, I'm attempting to determine what paths I would need on a win32, Linux, OSX box to run python. This should be a vanilla python with no extra packages (including tk). The paths I have...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
13
by: 7stud | last post by:
test1.py: -------------------- import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s = "red" s.close() --------output:------ $ python test1.py
3
by: menzies | last post by:
Hi, I"m new to this forum, but I have been trying all day to install DBD::mysql onto my Intel MacBook. I've read lots of forums pages and none have gotten me to a successful 'make test' or a...
3
by: =?UTF-8?Q?Ahmad_=E3=8B=A1_Baitalmal?= | last post by:
Hi, I'm having a hard time getting python-mcrypt extension to build. I installed libmcrypt with --prefix=/usr and I checked that the library exists -rwxr-xr-x 1 root wheel 352K Sep 19...
4
by: Arnaud Delobelle | last post by:
Hi fellow python enthusiasts. Having recently acquired a MacBook Pro (Intel Core 2 Duo) which comes with python2.5, I have been installing some modules that I need (PIL, psycopg2, PyXML ...). ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.