473,830 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building python-svn from source

First of all, I apologize if this would be more appropriate for python-
dev, but I don't normally subscribe to that list, and felt it would also
be of general use, so....

I'm having problems building the latest Python 2.6 and 3.0 from
subversion, and I'm not sure how to resolve the problem. In each case,
configure executes without problem, but, when I execute 'make', I get
this error (the same one for both 2.6 and 3.0):

../Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
Must specify exactly one output file
make: *** [Include/Python-ast.h] Error 1

Am I doing something wrong? If not, how do I work around this error?

Thanks!

--
code.py: A blog about life, the universe, and Python

http://pythonista.wordpress.com
** Posted from http://www.teranews.com **
Aug 12 '08 #1
2 1648
./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
Must specify exactly one output file
make: *** [Include/Python-ast.h] Error 1

Am I doing something wrong? If not, how do I work around this error?
For some reason, the getopt module in your host's python cannot process
the command line options to asdl_c.py correctly.

What Python version do you have installed in PATH?

In any case, just touch Include/Python-ast.h and Python/Python-ast.c
before building, to work around this issue.

Regards,
Martin
Aug 12 '08 #2
On Tue, 12 Aug 2008 07:04:41 +0200, Martin v. Löwis wrote:

For some reason, the getopt module in your host's python cannot process
the command line options to asdl_c.py correctly.

What Python version do you have installed in PATH?
Martin,

Thank you so much! In fact, I did have a python executable on my PATH in
~/bin that was screwing things up. After I moved it (thus leaving the
system default python as the only python executable on my PATH), the
build process went smoothly (except for not being able to find a few
libraries for some C extensions, but I think I can fix that).

I now have working python2.6 and python3.0 executables to play with,
thanks to you. :-)
--
code.py: A blog about life, the universe, and Python

http://pythonista.wordpress.com
** Posted from http://www.teranews.com **
Aug 12 '08 #3

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

Similar topics

4
2429
by: Andreou Giannis | last post by:
Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install afterwards, complains about not building with msvs v.6, since my Python distribution is built with it.
0
1675
by: Rob Dijkshoorn | last post by:
Hi All, I have some problems building the python modules, most notably Tkinter, on AIX 5.1. Can anyone be of any assistance? Thanks, Rob This is what the compiler spits out:
0
1398
by: Jeff Epler | last post by:
I tried building the documentation with "make pdf", and got a long list of warnings on "lib" (hbox, vbox, and reference warnings), ending with a TeX error: LaTeX Warning: Reference `module-cookielib' on page 512 undefined on input line 73. ) (/usr/src/cvs-src/python/dist/src/Doc/lib/libxmlrpclib.tex Overfull \vbox (118.57pt too high) has occurred while \output is active Overfull \hbox (66.62143pt too wide) in paragraph at lines 56--69
0
577
by: Michael Ströder | last post by:
HI! I'm trying to build Python2.4 on a rather old Debian machine. I only have a shell account there. That's why I'm very limited in my actions. Building _socket fails (see below) although I tried to use configure --disable-ipv6 Any clue?
7
2425
by: Erik Johnson | last post by:
I am trying to upgrade my Python installation. After downloading sources and building Python 2.3.4, I am unable to use the command history editing feature in the interactive interpreter (where the up-arrow would previously give you the last command line to edit, it now just prints "^[[A".) This is a feature I use often, and it kinda nullifies that warm fuzzy feeling you get when things are otherwise working as expected. Python 2.2.2 was...
3
1821
by: Gal Diskin | last post by:
Following a discussion with an associate at work about various ways to build strings from variables in python, I'd like to hear your opinions and preferred methods. The methods we discussed are: 1. some_string = "cd %s ; %s %d %s %s" % ( working_dir, ssh_cmd, some_count, some_param1, some_param2) 2. import string template = string.Template("cd $dir ; $cmd $count $param1 $param2") some_string = template.substitute(dict(dir=working_dir,
20
2659
by: Thorsten Kampe | last post by:
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor PyQT are actually what I want (because the lack of GUI builders and they don't really look good on Windows and Linux). Komodo itself is an excellent example of a - at least Python driven -
4
2539
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal error LNK1141: failure during build of exports file error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"' failed with exit status 1141.What shoud I
15
3233
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer their time to create Linux RPMs. The main thing I need are people willing to test the binaries to make sure the extension is stable. This would require installing the binary and probably downloading the source too to get the developer's test
0
1813
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi/src
0
9778
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
10768
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
10475
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
10520
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
10196
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
5614
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4408
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3070
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.