[pywin32-bugs] [ pywin32-Bugs-3153014 ] still can\'t build pywin32-214 from source (alas!)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-01-07 23:56:21
|
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: Open Resolution: None 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-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 |