[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] Problem detecting python
From:       "Christian O'Reilly" <christian.oreilly () gmail ! com>
Date:       2009-10-01 20:56:36
Message-ID: 89d1750e0910011356n46065daew23d1cb22bc4f174e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> Notice that the informations obtained from the command '"E:\Program

> > Files\pythonxy\python\python"
> > -c "from sys import *; print
> > 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix
> > =%s\nexecutable=%s' %
> > (version_info[0],version_info[1],platform,prefix,exec_pref
> > ix,executable)" 2>&1'  are correct.
>
> If you run it from the command line ?
>

Yes, from command line.

For example:

E:\PySide_dev\pyside-qt4.5+0.2>"E:/Program Files/pythonxy/python/python.exe"
-c
"from sys import *; print
'version=%d.%d\nplateform=%s\nprefix=%s\nexec_prefixe=
%s\nexecutable=%s' % (version_info[0], version_info[1], platform, prefix,
exec_p
refix, executable)"
version=2.5
plateform=win32
prefix=E:\Program Files\pythonxy\python
exec_prefixe=E:\Program Files\pythonxy\python
executable=E:\Program Files\pythonxy\python\python.exe

However, notice that :

E:\PySide_dev\pyside-qt4.5+0.2>DIR /-C /A:S "E:/Program
Files/pythonxy/python/python.exe"
 Volume in drive E is DATA
 Volume Serial Number is E27E-E56C

 Directory of E:\Program Files\pythonxy\python

File Not Found


This path contains spaces, which is most likely the problem here.
> The quotes are added by the debug output, so I guess the path is not
> quoted correctly.
> Try setting up python manually in user-config.jam with
>
> using python : : "E:/Program Files/pythonxy" ;
>
> Note the quotes and the forward slashes.
>


I tried with

using python : : "E:/Program Files/pythonxy" ;

and then with

using python : : "E:/Program Files/pythonxy/python/python.exe" ;

without any difference. I got as output

notice: Loading user-config configuration file user-config.jam from
C:/Documents
 and Settings/chore/user-config.jam .
notice: [python-cfg] Configuring python...
notice: [python-cfg]   user-specified cmd-or-prefix: "E:/Program
Files/pythonxy/
python/python.exe"
notice: [python-cfg] Checking interpreter command "E:/Program
Files/pythonxy/pyt
hon/python.exe"...
notice: [python-cfg] running command 'DIR /-C /A:S "E:\Program
Files\pythonxy\py
thon\python.exe" 2>&1'
notice: [python-cfg] running command '"E:/Program
Files/pythonxy/python/python.e
xe" -c "from sys import *; print
'version=%d.%d\nplatform=%s\nprefix=%s\nexec_pr
efix=%s\nexecutable=%s' %
(version_info[0],version_info[1],platform,prefix,exec_
prefix,executable)" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.


Christian O'Reilly

[Attachment #5 (text/html)]

<br>&gt; Notice that the informations obtained from the command \
&#39;&quot;E:\Program<br><div class="im"><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">


&gt; Files\pythonxy\python\python&quot;<br>
&gt; -c &quot;from sys import *; print<br>
&gt; &#39;version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix<br>
&gt; =%s\nexecutable=%s&#39; %<br>
&gt; (version_info[0],version_info[1],platform,prefix,exec_pref<br>
&gt; ix,executable)&quot; 2&gt;&amp;1&#39;  are correct.<br>
<br>
If you run it from the command line ?<br></blockquote></div><div><br>Yes, from \
command line. <br><br>For example: \
<br><br>E:\PySide_dev\pyside-qt4.5+0.2&gt;&quot;E:/Program \
Files/pythonxy/python/python.exe&quot; -c<br>&quot;from sys import *; print \
&#39;version=%d.%d\nplateform=%s\nprefix=%s\nexec_prefixe=<div class="im"> <br>
%s\nexecutable=%s&#39; % (version_info[0], version_info[1], platform, prefix, \
exec_p<br>refix, executable)&quot;<br></div>version=2.5<br>plateform=win32<br>prefix=E:\Program \
Files\pythonxy\python<br>exec_prefixe=E:\Program Files\pythonxy\python<br>

executable=E:\Program Files\pythonxy\python\python.exe<br><br>However, notice that \
:<br><br>E:\PySide_dev\pyside-qt4.5+0.2&gt;DIR /-C /A:S &quot;E:/Program \
Files/pythonxy/python/python.exe&quot;<br> Volume in drive E is DATA<br>

 Volume Serial Number is E27E-E56C<br><br> Directory of E:\Program \
Files\pythonxy\python<br><br>File Not Found<br><br><br></div><div \
class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


This path contains spaces, which is most likely the problem here.<br>
The quotes are added by the debug output, so I guess the path is not<br>
quoted correctly.<br>
Try setting up python manually in user-config.jam with<br>
<br>
using python : : &quot;E:/Program Files/pythonxy&quot; ;<br>
<br>
Note the quotes and the forward slashes.<br></blockquote></div><br><br>I tried with \
<br><div class="im"><br>using python : : &quot;E:/Program Files/pythonxy&quot; \
;<br><br></div>and then with<br><br>using python : : &quot;E:/Program \
Files/pythonxy/python/python.<div> exe&quot; ;<br>
<br>without any difference. I got as output<br><br>notice: Loading user-config \
configuration file user-config.jam from C:/Documents<br> and \
Settings/chore/user-config.jam .<br>notice: [python-cfg] Configuring python...<br>

notice: [python-cfg]   user-specified cmd-or-prefix: &quot;E:/Program \
Files/pythonxy/<br>python/python.exe&quot;<br>notice: [python-cfg] Checking \
interpreter command &quot;E:/Program \
Files/pythonxy/pyt<br>hon/python.exe&quot;...<br>

notice: [python-cfg] running command &#39;DIR /-C /A:S &quot;E:\Program \
Files\pythonxy\py<br>thon\python.exe&quot; 2&gt;&amp;1&#39;<br>notice: [python-cfg] \
running command &#39;&quot;E:/Program Files/pythonxy/python/python.e<br>

xe&quot; -c &quot;from sys import *; print \
&#39;version=%d.%d\nplatform=%s\nprefix=%s\nexec_pr<br>efix=%s\nexecutable=%s&#39; % \
(version_info[0],version_info[1],platform,prefix,exec_<br>prefix,executable)&quot; \
2&gt;&amp;1&#39;<br>

notice: [python-cfg] ...does not invoke a working interpreter<br>notice: [python-cfg] \
No working Python interpreter found.<br><br><br>Christian O&#39;Reilly</div>



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic