python33.lib missing for build_ext in venv environment

Robin Becker robin at reportlab.com
Mon Oct 14 11:17:26 EDT 2013


I'm trying to port reportlab extensions to Python 3.3. On windows I get a 
missing library error when trying to build/install the trial reportlab in a 
virtual environment eg

> C:\code\hg-repos\reportlab>\python33\python -m venv tpy33
> C:\code\hg-repos\reportlab>tpy33\Scripts\activate
> (tpy33) C:\code\hg-repos\reportlab>rm -r build
>
> (tpy33) C:\code\hg-repos\reportlab>python setup.py build_ext
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
..........
> creating build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel
> C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\python33\include -
> IC:\python33\include /TcC:\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.c /Fobuild\temp.win32-3.3\Release\co
> de\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.obj
> _rl_accel.c
> creating build\lib.win32-3.3
> creating build\lib.win32-3.3\reportlab
> creating build\lib.win32-3.3\reportlab\lib
> C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\code\hg-repos\rep
> ortlab\tpy33\libs /LIBPATH:C:\python33 /LIBPATH:C:\code\hg-repos\reportlab\tpy33\PCbuild /EXPORT:PyInit__rl_accel build\
> temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.obj /OUT:build\lib.win32-3.3\reportlab\l
> ib\_rl_accel.pyd /IMPLIB:build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.lib /MANI
> FESTFILE:build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.pyd.manifest
> LINK : fatal error LNK1104: cannot open file 'python33.lib'
> error: command '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe"' failed with exit status 1104
>
> (tpy33) C:\code\hg-repos\reportlab>



this doesn't happen if I run the installed Python-3.3 directly eg

> (tpy33) C:\code\hg-repos\reportlab>tpy33\Scripts\deactivate.bat
> C:\code\hg-repos\reportlab>c:\python33\python setup.py build_ext
> ################################################
............
> Standard T1 font curves already downloaded
> running build_ext
> building 'reportlab.lib._rl_accel' extension
> C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\python33\include -
> Ic:\python33\include /TcC:\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.c /Fobuild\temp.win32-3.3\Release\co
> de\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.obj
> _rl_accel.c
> C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\python33\libs /LI
> BPATH:c:\python33\PCbuild /EXPORT:PyInit__rl_accel build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl
> _accel\_rl_accel.obj /OUT:build\lib.win32-3.3\reportlab\lib\_rl_accel.pyd /IMPLIB:build\temp.win32-3.3\Release\code\hg-r
> epos\reportlab\src\rl_addons\rl_accel\_rl_accel.lib /MANIFESTFILE:build\temp.win32-3.3\Release\code\hg-repos\reportlab\s
> rc\rl_addons\rl_accel\_rl_accel.pyd.manifest
>    Creating library build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.lib and object
>  build\temp.win32-3.3\Release\code\hg-repos\reportlab\src\rl_addons\rl_accel\_rl_accel.exp

is this a bug or some misconfiguration; should I be using virtualenv?
-- 
Robin Becker




More information about the Python-list mailing list