[Lemon-user] pyLemon

Leopold Kuttner leo.kuttner at gmail.com
Mon May 25 22:41:03 CEST 2015


Hi,

I was trying to get pyLemon to run without success. The pyLemon you can
download via https://lemon.cs.elte.hu/trac/lemon has a faulty setup.py, it
wants to include a "emon.lib", which obviously should be "lemon.lib".

I'm on win7 64bits, Python 2.7.9 x64, Lemon 1.3.1

Then when fixing this (and going through all the hassle with Visual C++ for
Python 2.7, setting the include and lib paths in vcvarsall.bat etc...) and
running "python setup.py install" the install seems to work, but then I get
multiple variations of Linker errors, specifically: LNK4197, LNK2019,
LNK2001 which lead to fatal error LNK1120.
I put the full error log into the attachement (do attachements work here?).

So now I would like to know if anyone of you uses pyLemon and if you had
problems installing it.
If so, can you comment? If not do you know of any good Python
alternatives/equivalents to Lemon for C++?

Regards,

Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20150525/b9b76f7c/attachment.html>
-------------- next part --------------
C:\Users\p0ldy\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python27\libs /L
IBPATH:C:\Python27\PCbuild\amd64 lemon.lib /EXPORT:initlemon build\temp.win-amd6
4-2.7\Release\lemonmodule.obj build\temp.win-amd64-2.7\Release\listgraph.obj bui
ld\temp.win-amd64-2.7\Release\utils.obj /OUT:build\lib.win-amd64-2.7\lemon.pyd /
IMPLIB:build\temp.win-amd64-2.7\Release\lemon.lib /MANIFESTFILE:build\temp.win-a
md64-2.7\Release\lemon.pyd.manifest
lemonmodule.obj : warning LNK4197: export 'initlemon' specified multiple times;
using first specification
   Creating library build\temp.win-amd64-2.7\Release\lemon.lib and object build\
temp.win-amd64-2.7\Release\lemon.exp
lemonmodule.obj : error LNK2019: unresolved external symbol "public: __cdecl lem
on::bits::WinLock::WinLock(void)" (??0WinLock at bits@lemon@@QEAA at XZ) referenced in
 function "public: __cdecl lemon::bits::Lock::Lock(void)" (??0Lock at bits@lemon@@Q
EAA at XZ)
listgraph.obj : error LNK2001: unresolved external symbol "public: __cdecl lemon
::bits::WinLock::WinLock(void)" (??0WinLock at bits@lemon@@QEAA at XZ)
lemonmodule.obj : error LNK2019: unresolved external symbol "public: __cdecl lem
on::bits::WinLock::~WinLock(void)" (??1WinLock at bits@lemon@@QEAA at XZ) referenced i
n function "public: __cdecl lemon::bits::Lock::~Lock(void)" (??1Lock at bits@lemon@
@QEAA at XZ)
listgraph.obj : error LNK2001: unresolved external symbol "public: __cdecl lemon
::bits::WinLock::~WinLock(void)" (??1WinLock at bits@lemon@@QEAA at XZ)
lemonmodule.obj : error LNK2019: unresolved external symbol "public: void __cdec
l lemon::bits::WinLock::unlock(void)" (?unlock at WinLock@bits at lemon@@QEAAXXZ) refe
renced in function "protected: void __cdecl lemon::AlterationNotifier<class lemo
n::DigraphExtender<class lemon::ListDigraphBase>,class lemon::ListDigraphBase::N
ode>::attach(class lemon::AlterationNotifier<class lemon::DigraphExtender<class
lemon::ListDigraphBase>,class lemon::ListDigraphBase::Node>::ObserverBase &)" (?
attach@?$AlterationNotifier at V?$DigraphExtender at VListDigraphBase@lemon@@@lemon@@V
Node at ListDigraphBase@2@@lemon@@IEAAXAEAVObserverBase at 12@@Z)
lemonmodule.obj : error LNK2019: unresolved external symbol "public: void __cdec
l lemon::bits::WinLock::lock(void)" (?lock at WinLock@bits at lemon@@QEAAXXZ) referenc
ed in function "protected: void __cdecl lemon::AlterationNotifier<class lemon::D
igraphExtender<class lemon::ListDigraphBase>,class lemon::ListDigraphBase::Node>
::attach(class lemon::AlterationNotifier<class lemon::DigraphExtender<class lemo
n::ListDigraphBase>,class lemon::ListDigraphBase::Node>::ObserverBase &)" (?atta
ch@?$AlterationNotifier at V?$DigraphExtender at VListDigraphBase@lemon@@@lemon@@VNode
@ListDigraphBase at 2@@lemon@@IEAAXAEAVObserverBase at 12@@Z)
build\lib.win-amd64-2.7\lemon.pyd : fatal error LNK1120: 4 unresolved externals
error: command 'C:\\Users\\p0ldy\\AppData\\Local\\Programs\\Common\\Microsoft\\V
isual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 112
0


More information about the Lemon-user mailing list