#8 Installation on Windows2000

closed
nobody
None
5
2012-10-16
2003-07-22
No

Hi, I tried to install pyx on my win2000 box,

but there was a link error while building t1strip:

[c:\ftp\python\pyx-0.3.1]python setup.py install

running install

running build

running build_py

creating build

creating build\lib.win32-2.2

creating build\lib.win32-2.2\pyx

copying pyx\attrlist.py -> build\lib.win32-2.2\pyx

copying pyx\base.py -> build\lib.win32-2.2\pyx

copying pyx\bbox.py -> build\lib.win32-2.2\pyx

copying pyx\box.py -> build\lib.win32-2.2\pyx

copying pyx\canvas.py -> build\lib.win32-2.2\pyx

copying pyx\color.py -> build\lib.win32-2.2\pyx

copying pyx\data.py -> build\lib.win32-2.2\pyx

copying pyx\epsfile.py -> build\lib.win32-2.2\pyx

copying pyx\graph.py -> build\lib.win32-2.2\pyx

copying pyx\helper.py -> build\lib.win32-2.2\pyx

copying pyx\mathtree.py -> build\lib.win32-2.2\pyx

copying pyx\path.py -> build\lib.win32-2.2\pyx

copying pyx\tex.py -> build\lib.win32-2.2\pyx

copying pyx\text.py -> build\lib.win32-2.2\pyx

copying pyx\trafo.py -> build\lib.win32-2.2\pyx

copying pyx\unit.py -> build\lib.win32-2.2\pyx

copying pyx\version.py -> build\lib.win32-2.2\pyx

copying pyx__init__.py -> build\lib.win32-2.2\pyx

creating build\lib.win32-2.2\pyx\t1strip

copying pyx/t1strip__init__.py -> build\lib.win32-2.
2\pyx/t1strip

creating build\lib.win32-2.2\pyx\pykpathsea

copying pyx/pykpathsea__init__.py -> build\lib.win32-2.
2\pyx/pykpathsea

running build_ext

building 'pyx/t1strip/_t1strip' extension

creating build\temp.win32-2.2

creating build\temp.win32-2.2\Release

C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe /c
/nologo /Ox /MD /W3 /GX -IC:\Python22\include
/Tcpyx/t1strip/t1strip.c /Fobuild\temp.win32-2.
2\Release\t1strip.obj t1strip.c

C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe /c
/nologo /Ox /MD /W3 /GX -IC:\Python22\include
/Tcpyx/t1strip/writet1.c /Fobuild\temp.win32-2.
2\Release\writet1.obj writet1.c

pyx/t1strip/writet1.c(551) : warning C4244: '=' :
conversion from 'float ' to 'int ', possible loss of data

pyx/t1strip/writet1.c(837) : warning C4244: '=' :
conversion from 'float ' to 'short ', possible loss of data

pyx/t1strip/writet1.c(1105) : warning C4244: '=' :
conversion from 'float ' to 'int ', possible loss of data

pyx/t1strip/writet1.c(1472) : warning C4244: '=' :
conversion from 'float ' to 'int ', possible loss of data

pyx/t1strip/writet1.c(1667) : warning C4244: '=' :
conversion from 'float ' to 'int ', possible loss of data

pyx/t1strip/writet1.c(646) : warning C4761: integral size
mismatch in argument;conversion supplied

pyx/t1strip/writet1.c(627) : warning C4761: integral size
mismatch in argument;conversion supplied

pyx/t1strip/writet1.c(536) : warning C4761: integral size
mismatch in argument;conversion supplied

pyx/t1strip/writet1.c(555) : warning C4761: integral size
mismatch in argument;conversion supplied

pyx/t1strip/writet1.c(665) : warning C4761: integral size
mismatch in argument;conversion supplied

C:\Programme\Microsoft Visual Studio\VC98\BIN\link.exe
/DLL /nologo /INCREMENTAL:NO /LIBPATH:C:
\Python22\libs /EXPORT:initpyx/t1strip/_t1strip
build\temp.win32-2.2\Release\t1strip.obj build\temp.
win32-2.2\Release\writet1.obj /OUT:build\lib.win32-2.
2\pyx/t1strip/_t1strip.pyd /IMPLIB:build\temp.win32-2.
2\Release_t1strip.lib

LINK : error LNK2001: unresolved external symbol
initpyx/t1strip/_t1strip build\temp.win32-2.
2\Release_t1strip.lib : fatal error LNK1120: 1 unresolved
externals

LINK : fatal error LNK1141: failure during build of exports
file error: command '"C:\Programme\Microsoft Visual
Studio\VC98\BIN\link.exe"' failed with exit status 1141

Discussion

  • Andre Wobst

    Andre Wobst - 2003-07-22

    Logged In: YES
    user_id=405853

    Could you please try to replace all path-like "/" characters
    in the setup.py file by "\" characters. It looks like a
    wrong external symbol initpyx/t1strip/_t1strip to be
    exported. The right name would be init_t1strip. Please drop
    a note, whether this fixes the problem.

     
  • Jörg Lehmann

    Jörg Lehmann - 2003-07-22

    Logged In: YES
    user_id=390410

    As a followup: We just looked for other examples for
    setup.py files.
    There the first argument of the Extension constructor is
    separated by dots instead of slashes. So, you should try:

    ext_modules = [Extension("pyx.t1strip._t1strip",
    sources=["pyx/t1strip/t1strip.c",
    "pyx/t1strip/writet1.c"]
    ),
    Extension("pyx.pykpathsea._pykpathsea",

    sources=["pyx/pykpathsea/pykpathsea.c"],
    libraries=["kpathsea"])]

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks