python33.lib missing for build_ext in venv environment

R

Robin Becker

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?
 
M

Marco Buttu

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

This is my configuration file:

$ cat myvenv/pyvenv.cfg
home = /usr/local/bin
include-system-site-packages = false
version = 3.4.0

In this case (default), the site-package directory is not included in
the PYTHONPATH. If you want to include it, set:

include-system-site-packages = true
 
R

Robin Becker

This is my configuration file:

$ cat myvenv/pyvenv.cfg
home = /usr/local/bin
include-system-site-packages = false
version = 3.4.0

In this case (default), the site-package directory is not included in the
PYTHONPATH. If you want to include it, set:

include-system-site-packages = true
this has nothing to do with site-packages so far as I can tell. It seems that
even if you have a compiler you need to copy the python-3.3\Libs folder into the
environment so that distutils can set up the load command properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top