Bugs item #3153014, was opened at 2011-01-08 04:43
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3153014&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: installation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Robert Lerche (rlerche)
Assigned to: Nobody/Anonymous (nobody)
Summary: still can\'t build pywin32-214 from source (alas!)
Initial Comment:
I downloaded mapilib.i from http://pywin32.cvs.sourceforge.net/viewvc/pywin32/pywin32/com/win32comext/mapi/src/
I deleted and then unzipped pywin32-214.zip, copied mapilib.i and retried \"python setup.py install\". It gets much further but now fails at:
E:\\Microsoft Visual Studio 9.0\\VC\\BIN\\nmake.exe /nologo /f makefile_pythonwin SUB_DIR_O=c:\\pywin32-214\\build\\temp.win32-2.7\\Release\\scintilla SUB_DIR_BIN=c:\\pywin32-214\\build\\temp.win32-2.7\\Release\\scintilla DIR_PYTHON=c:\\p\\python-2.7
c:\\p\\python-2.7\\tools\\scripts\\h2py.py Include\\scintilla.h
# Generated by h2py from stdin
c:\\p\\python-2.7\\tools\\scripts\\h2py.py Include\\scilexer.h
# Generated by h2py from stdin
type scintilla.py > ..\\pywin\\scintilla\\scintillacon.py
The system cannot find the file specified.
NMAKE : fatal error U1077: \'type\' : return code \'0x1\'
Stop.
error: command \'nmake.exe\' failed with exit status 2
I attach the build log and a system info dump. I noticed a bunch of warnings: \"WINVER not defined. Defaulting to 0x0600 (Windows Vista)\". In fact this is Windows/XP SP3 in a VMWare virtual machine.
Thanks in advance.
Hmmm... "uploaded files must be no larger than 256K". I'm deleting the beginning to comply.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2011-01-09 11:31
Message:
new setup.py uses tempfile module.
Checking in setup.py;
new revision: 1.117; previous revision: 1.116
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 13:25
Message:
(I mean "C:/DOCUME~1/..." of course. *sigh*)
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 13:18
Message:
Oh, looking more closely I see I *do* have TEMP and it's set to
"C:/Documents and Settings/...". Maybe the forward slash is the problem?
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2011-01-08 13:06
Message:
setup.py should probably just use the tempfile module to locate the temp
dir more reliably...
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2011-01-08 13:06
Message:
setup.py should probably just use the tempfile module to locate the temp
dir more reliably...
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 13:04
Message:
Well, "set" says I don't have a TEMP, just TMP and TMPDIR. (see below)
I'm trying to keep this a vanilla system, but of course I can't avoid
having a lot of stuff installed (MinGW, MSYS, Visual Studio, the Windows
SDK, emacs).
I will send you mail following up. Thanks for your help.
====
c:\pywin32-214>set
set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Robert Lerche\Application Data
CLIENTNAME=Console
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=RAL-LAPTOP-XPSP
COMSPEC=C:\WINDOWS\system32\cmd.exe
DevEnvDir=E:\Microsoft Visual Studio 9.0\Common7\IDE
EMACS=t
EMACSDATA=c:/emacs-22.3/etc
EMACSDOC=c:/emacs-22.3/etc
EMACSLOADPATH=c:/emacs-22.3/site-lisp;c:/emacs-22.3/../site-lisp;c:/emacs-22.3/lisp;c:/emacs-22.3/leim
EMACSPATH=c:/emacs-22.3/bin
EMACS_DIR=c:/emacs-22.3
EM_PARENT_PROCESS_ID=720
FP_NO_HOST_CHECK=NO
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727
HOME=c:/Documents and Settings/Robert Lerche/Application Data
HOMEDRIVE=C:
HOMEPATH=\
INCLUDE=E:\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;E:\Microsoft
Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\include;
INSIDE_EMACS=22.3.1,comint
LANG=ENU
LIB=E:\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;E:\Microsoft Visual
Studio 9.0\VC\LIB;C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;E:\Microsoft
Visual Studio 9.0\VC\ATLMFC\LIB;E:\Microsoft Visual Studio 9.0\VC\LIB;
LOGONSERVER=\\RAL-LAPTOP-XPSP
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATH=E:\Microsoft Visual Studio 9.0\Common7\IDE;E:\Microsoft Visual Studio
9.0\VC\BIN;E:\Microsoft Visual Studio
9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;E:\Microsoft
Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\bin;c:\p\python-2.7\pcbuild;c:\p\tcltk\bin;c:\Perl\site\bin;c:\Perl\bin;c:\msys\bin;c:\mingw\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program
Files\Microsoft SQL Server\90\Tools\binn\;c:\Program
Files\SlikSvn\bin\;c:\program files\nasm;c:\p\p-modules\swigwin-2.0.0
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 8, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1708
PROGRAMFILES=C:\Program Files
PROMPT=$P$G
PWD=c:/pywin32-214
SESSIONNAME=Console
SHELL=c:/emacs-22.3/bin/cmdproxy.exe
SHLVL=2
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=C:/DOCUME~1/ROBERT~1/LOCALS~1/Temp
TERM=emacs
TERMCAP=emacs:co#80:tc=unknown:
TMP=C:/DOCUME~1/ROBERT~1/LOCALS~1/Temp
TMPDIR=C:/DOCUME~1/ROBERT~1/LOCALS~1/Temp
USERDOMAIN=RAL-LAPTOP-XPSP
USERNAME=Robert Lerche
USERPROFILE=C:\Documents and Settings\Robert Lerche
VCINSTALLDIR=E:\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=E:\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=E:\Microsoft Visual Studio 9.0
WINDIR=C:\WINDOWS
WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A\
_=C;c:\msys\WINDOWS\system32\cmd.exe
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2011-01-08 10:56
Message:
strange - setup.py uses os.path.join(os.environ['temp'],
"pywin32.version.txt") to refer to that file - if it possible you had an
invalid TEMP var set?
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 07:51
Message:
OK, I think I've found another real bug. As a workaround I manually
created a DOCUME~1\... directory under pywin32-214 and copied
pywin32.version.txt there and that made the install run to completion.
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 07:15
Message:
One last error, and I think this might be real. Install runs almost to
completion but then can't find pywin32.version.txt. Something seems to be
missing a "\", I'm not sure what.
byte-compiling
c:\p\python-2.7\Lib\site-packages\win32comext\shell\knownfolders.
py to knownfolders.pyc
byte-compiling
c:\p\python-2.7\Lib\site-packages\win32comext\shell\shellcon.py t
o shellcon.pyc
byte-compiling
c:\p\python-2.7\Lib\site-packages\win32comext\shell\__init__.py t
o __init__.pyc
byte-compiling
c:\p\python-2.7\Lib\site-packages\win32comext\taskscheduler\__ini
t__.py to __init__.pyc
running install_scripts
copying build\scripts-2.7\pywin32_postinstall.py ->
c:\p\python-2.7\Scripts
running install_data
Installing data files to c:\p\python-2.7\Lib\site-packages\
error: can't copy 'C:DOCUME~1\ROBERT~1\LOCALS~1\Temp\pywin32.version.txt':
doesn
't exist or not a regular file
C:\pywin32-214>type C:DOCUME~1\ROBERT~1\LOCALS~1\Temp\pywin32.version.txt
type C:DOCUME~1\ROBERT~1\LOCALS~1\Temp\pywin32.version.txt
The system cannot find the path specified.
[ but ... add a "\" and ...]
C:\pywin32-214>type
C:\DOCUME~1\ROBERT~1\LOCALS~1\Temp\pywin32.version.txt
[ ====================^ ]
type C:\DOCUME~1\ROBERT~1\LOCALS~1\Temp\pywin32.version.txt
214
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 06:04
Message:
Aha again! Some web searching turned up this:
Command line arguments in Windows : Python
http://objectmix.com/python/355959-command-line-arguments-windows.html
My file association for ".py" doesn't include a %* so arguments are not
passed to a script! I don't know how this happened. This is what I get
for building everything from source. :-)
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 05:42
Message:
OK, it seems like h2py.py is not seeing the filename argument. I don't
understand why as yet.
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 05:15
Message:
oops ... nope, it seems to be unable to find "scintilla.py".
----------------------------------------------------------------------
Comment By: Robert Lerche (rlerche)
Date: 2011-01-08 04:59
Message:
Aha! There's a bug in
c:/pywin32-214/pythonwin/Scintilla/makefile_pythonwin: line 49 has 4 spaces
instead of a tab before the "type" command (nmake is like Unix make,
requires a tab).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3153014&group_id=78018
|