473,765 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_re lative
macostools.mkal ias(test_suppor t.TESTFN, TESTFN2, sys.prefix)
File "/Users/sven/Downloads/Python-2.3.4/Lib/plat-mac/macostools.py",
line 39, in mkalias
relativefsr = File.FSRef(rela tive)
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_re lative(self):
74 try:
75 os.unlink(TESTF N2)
76 except:
77 pass
78 macostools.mkal ias(test_suppor t.TESTFN, TESTFN2, sys.prefix)
79 fss, _, _ = Carbon.File.Res olveAliasFile(T ESTFN2, 0)
80 self.assertEqua l(fss.as_pathna me(),
os.path.realpat h(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(d st)
36 if not dstdir: dstdir = os.curdir
37 dstdirfsr = File.FSRef(dstd ir)
38 if relative:
39 relativefsr = File.FSRef(rela tive)
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 1253

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

Similar topics

8
2141
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 this? I am familiar with the Windows extensions by Mr. Hammond and wonder if they'll ever become apart of the official Python distribution. It looks as if something similar already exists for Macs with all these Mac only modules. Why is this? ...
0
1491
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 beneath are what I think I need, excluding the lib\site-packages entry. The questions that I have are two fold: 1. Is this correct does anyone know if there is something I've missed out? 2. Does python _need_ the...
0
361
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 ( +7) / 227 closed ( +7) / 451 total (+14) New / Reopened Patches ______________________
13
6515
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
8831
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 successful 'sudo make install.' Before every attempt I even do a sudo make distclean to make sure I haven't gotten things mucked up from a prior attempt. OS: Mac OS X 10.4.10 MySQL: v5.0.41 for Mac OSX-i686 DBI: v1.58 (installed fine using CPAN)...
3
8769
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 16:53 /usr/lib/libmcrypt. 4.4.8.dylib* lrwxr-xr-x 1 root wheel 21B Sep 19 16:53 /usr/lib/libmcrypt. 4.dylib@ -libmcrypt.4.4.8.dylib lrwxr-xr-x 1 root wheel 21B Sep 19 16:53 /usr/lib/
4
3142
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 ...). The problem is that compiles all the binaries to universal files for i386 and ppc32, but not x86_64 or ppc64. It does not appear to be a problem when running scripts from the shell (as python seems to run as a 32 bits problems), but it is a...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.