473,664 Members | 3,028 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 1235
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:\Documen ts and Settings"

Thereafter X:\foo can be used wherever "C:\Documen ts 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******@lexic on.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******@lexic on.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.netwrot e:
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
2283
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 the installer itself seems to be buggy -- in my case, no combination of mod_python 3.0.4, 3.1.2b and python 2.2.3, 2.3.3 ever came to completion. rather, the installer would exit -- after an initial declaration of having successfully found python...
4
5374
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 called reportlab.pth in the pythod dir. The only line in this file is supposed to be the path to the reportlib dir. Then I'm instructed to open the ... ok I'll close and reopen ... the python cmd line interpreter and type import reportlab
2
1675
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 previous Python, downloaded and ran the exe and everything appeared to run correctly (even got the "Python installed correctly" screen). Reboot. When I open a dos window and type "python" I am told it doesn't know that that is! The file...
3
3381
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: error: C++ compiler cannot create executables
8
1300
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 I install 2.5, does that mean I need to reinstall all the extensions I had for 2.4 again, or does 2.5 detect them somehow? Thanks, John
5
2121
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 version. There are close to 30 engineers using this same tools configuration, and it has been working fine for a long time. For now, we all have to live with the limitations and or bugs in 2.3.4. I'm running Windows XP, SP2, on a AMD 1.79Ghz MP 2200+.
2
1914
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 contains a huge number of null bytes. The error is actually in ntpath - I adjusted it to print the paths it is working with and a string on encountering the bad path.
8
1577
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, etc.), but I would like to know how to create web pages without these. If I have mod_python or fastcgi on apache, where do I start? I don't have clue where to begin to create a web page from scratch in python. I am sure I will want to access...
0
1104
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 site-packages subdirectory. Execute this line to see the list of directories that are currently searched for modules: python -c "import sys; print '\n'.join(sys.path)"
0
8437
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
8348
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,...
1
8549
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
7375
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...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4185
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...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
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
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.