473,507 Members | 2,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing Python in a path that contains a blank

I am trying to install Python from sources in my home directory on a
Mac cluster (running MacOS X 10.4.8). The path to my home directory
contains a blank, and since the installation procedure insists on
getting an absolute path for the prefix, I cannot avoid installing to
a path whose name contains a blank. Python does not seem to be
prepared for this, as it uses only the part before the blank,
resulting in numerous error messages.

Does anyone know a workaround?

Thanks,
Konrad.

May 21 '07 #1
6 1225
Konrad Hinsen schrieb:
I am trying to install Python from sources in my home directory on a
Mac cluster (running MacOS X 10.4.8). The path to my home directory
contains a blank, and since the installation procedure insists on
getting an absolute path for the prefix, I cannot avoid installing to a
path whose name contains a blank. Python does not seem to be prepared
for this, as it uses only the part before the blank, resulting in
numerous error messages.

Does anyone know a workaround?

Thanks,
Konrad.
You could give /foo/bar\ baz/ham or "/foo/bar baz/ham" (either escaping
the blanks or wrapping the path in quotation marks) a try. I can't
verify it either, just guess from other terminals' behaviour.

HTH,
Stargaming
May 21 '07 #2
On 21/05/2007 11:30 PM, Konrad Hinsen wrote:
I am trying to install Python from sources in my home directory on a Mac
cluster (running MacOS X 10.4.8). The path to my home directory contains
a blank, and since the installation procedure insists on getting an
absolute path for the prefix, I cannot avoid installing to a path whose
name contains a blank. Python does not seem to be prepared for this, as
it uses only the part before the blank, resulting in numerous error
messages.

Does anyone know a workaround?
On Windows, the workaround for pesky paths (i.e. containing blanks or
just inconveniently long) is the subst command:

command-prompt>subst X: "C:\Documents and Settings"

Thereafter X:\foo can be used wherever "C:\Documents and Settings\foo"
would otherwise be required.

Is there not a similar trick on MacOS X?

HTH,
John
May 21 '07 #3
On 5/21/07, John Machin <sj******@lexicon.netwrote:
Is there not a similar trick on MacOS X?
It's called a symlink:

ln -s /Users/gdonald /foo

--
Greg Donald
http://destiney.com/
May 21 '07 #4
On 21.05.2007, at 21:11, Stargaming wrote:
You could give /foo/bar\ baz/ham or "/foo/bar baz/ham" (either
escaping
the blanks or wrapping the path in quotation marks) a try. I can't
verify it either, just guess from other terminals' behaviour.
I tried both already, but neither one works. If I use a backslash, it
doesn't end up in the Makefile, and if I use quotes, I get lots of
error messages that I don't really want to analyze.

Thanks for your reply anyway!

Konrad.

May 22 '07 #5
On 22.05.2007, at 00:34, Greg Donald wrote:
On 5/21/07, John Machin <sj******@lexicon.netwrote:
>Is there not a similar trick on MacOS X?

It's called a symlink:

ln -s /Users/gdonald /foo
Right, but since I have no write permissions anywhere except in my
home directory (whose path already has the blank), links won't help me.

Konrad.

May 22 '07 #6
On 2007-05-22, Konrad Hinsen <ko***********@laposte.netwrote:
On 21.05.2007, at 21:11, Stargaming wrote:
>You could give /foo/bar\ baz/ham or "/foo/bar baz/ham" (either
escaping
the blanks or wrapping the path in quotation marks) a try. I can't
verify it either, just guess from other terminals' behaviour.

I tried both already, but neither one works. If I use a
backslash, it doesn't end up in the Makefile, and if I use
quotes, I get lots of error messages that I don't really want
to analyze.
Try adding *more* backslashes. Sometimes, it's the only way. ;)

--
Neil Cerutti
There are two ways to argue with a woman, and neither of them work. --Carlos
Boozer
May 22 '07 #7

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

Similar topics

1
2266
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
4
5355
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
2
1666
by: Greg Lindstrom | last post by:
I've been running python for years and have never had trouble installing until today. I am trying to install Python 2.3.5 from python.org on my windows 2000 box. I uninstalled everything from the...
3
3371
by: Belyh G.P. | last post by:
While I try to install python arise an error: I type ./configure .... .... checking for g++ ... no checking for gcc ... gcc checking for C++ compiler default output file name ... configure:...
8
1292
by: John Salerno | last post by:
Hi all. Just curious, before I do it myself, about the best way to install 2.5 if it's the only version I want to use. Should I uninstall 2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if...
5
2113
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
2
1902
by: Fuzzyman | last post by:
A very odd error with Python 2.5 (both 2.5.1 and 2.5.2 from the official msi installers and running on Vista under Parallels on the Mac). 'import site' fails due to a string in sys.path that...
8
1574
by: jmDesktop | last post by:
I have been to the main python site, but am still confused. I have been using .net, so it may be obvious how to do this to everyone else. I am aware there are various frameworks (Django, Pylons,...
0
1091
by: Gabriel Genellina | last post by:
En Thu, 10 Jul 2008 14:02:29 -0300, Bhagwat Kolde <bbkolde@gmail.com> escribi�: If it is a single Python module, you can put it anywhere in the Python path. A good place may be the...
0
7223
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,...
0
7372
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...
1
7030
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...
0
7482
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...
0
5623
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,...
1
5041
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...
0
1540
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.