Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

python33.lib missing for build_ext in venv environment

33 views
Skip to first unread message

Robin Becker

unread,
Oct 14, 2013, 11:17:26 AM10/14/13
to pytho...@python.org
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

Robin Becker

unread,
Oct 14, 2013, 11:28:26 AM10/14/13
to pytho...@python.org
On 14/10/2013 16:17, Robin Becker wrote:
> 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
.........ns\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>
.........
>
> is this a bug or some misconfiguration; should I be using virtualenv?
seems that venv doesn't copy the standard Libs directory into the virtual
environment; if I do that by hand then I get a proper working virtual
environment. Also seems fairly half baked to change the name bin to Scripts, but
perhaps there's some windows centric reason for that even though the Scripts dir
ends up with a lot of dlls & pyds in it. I suppose that ps1 files are in fact
scripts.
--
Robin Becker

Marco Buttu

unread,
Oct 14, 2013, 12:01:33 PM10/14/13
to
On 10/14/2013 05:17 PM, Robin Becker wrote:

> 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


--
Marco Buttu

Robin Becker

unread,
Oct 14, 2013, 12:35:59 PM10/14/13
to pytho...@python.org, pytho...@python.org
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.
--
Robin Becker

0 new messages