Hi Edward.So that helped, but just showed another problem:---------------------------------------------C:\Python27\github\relax_disp>sconsscons: Reading SConscript files ...scons: done reading SConscript files.scons: Building targets ...link /nologo /dll /out:target_functions\relax_fit.pyd /implib:target_functions\relax_fit.lib /LIBPATH:C:\Python27\libs target_functions\c_chi2.obj target_functions\exponential.obj target_functions\relax_fit.objCreating library target_functions\relax_fit.lib and object target_functions\relax_fit.exprelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyFloat_FromDouble referenced in function _funcrelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyFloat_AsDouble referenced in function _setuprelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyList_New referenced in function _back_calc_Irelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyList_SetItemreferenced in function _back_calc_Irelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyArg_ParseTuple referenced in function _funcrelax_fit.obj : error LNK2019: unresolved external symbol __imp__PyArg_ParseTupleAndKeywords referenced in function _setuprelax_fit.obj : error LNK2019: unresolved external symbol __imp__Py_InitModule4referenced in function _initrelax_fitrelax_fit.obj : error LNK2019: unresolved external symbol __imp__PySequence_GetItem referenced in function _setuprelax_fit.obj : error LNK2019: unresolved external symbol __imp___Py_NoneStructreferenced in function _setuptarget_functions\relax_fit.pyd : fatal error LNK1120: 9 unresolved externalsscons: *** [target_functions\relax_fit.pyd] Error 1120scons: building terminated because of errors.C:\Python27\github\relax_disp>-----------------------------------------------------------Searching for the problem, seems that "many" run into the same problem.But I don't know how to fix it?Do you?
Troels Emtekær Linnet2013/5/8 Edward d'Auvergne <edward@xxxxxxxxxxxxx>Hi,
This "'cl' is not recognized as an internal or external command" error
is quite common. For example one solution for older SCons and MSVC is
given at http://www.nmr-relax.com/windows_devel.html#MSVS_scons_issues.
If you have 64-bit windows, then you have probably been bitten by an
SCons bug that I reported a long time ago and that the SCons
developers stubbornly refuse to fix:
http://scons.tigris.org/issues/show_bug.cgi?id=2849
It is a one line fix which you can see in the second comment. Just
change those lines in your installed SCons code and it should run. If
these two suggestions do not work, then we need to look for another
solution.
Regards,
Edward
On 7 May 2013 20:22, Troels Emtekær Linnet <tlinnet@xxxxxxxxx> wrote:
> Hi Edward.
>
> I use pyscripter and Ipython for coding, but def. not vim.
> I am aware of Python PEP style guide, and the indention thing.
> Trying to remember to comply to the rules of style. :-)
>
> I would need to program at home, since I cannot spend effort when I am the
> lab.
>
> Still having troubles with scons. Tried following this:
> http://www.nmr-relax.com/windows_devel.html
> I installed scons 2.3 for windows
> And Visual Studio Express 2012
>
> I don't understand this:
> 'cl' is not recognized as an internal or external command, operable program
> or batch file.
> I can call cl from command line, so...
>
> Have you seen this before?
>
> -----------------------------------------
> C:\Python27\github\relax_disp>"C:\Program Files (x86)\Microsoft Visual
> Studio 11
> .0\VC\vcvarsall"
>
> C:\Python27\github\relax_disp>scons
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
>
> ###########################
> # Compiling the C modules #
> ###########################
>
> Building the relaxation curve fitting module
> 'target_functions\\relax_fit.pyd'
>
> cl /Fotarget_functions\c_chi2.obj /c target_functions\c_chi2.c /nologo
> /I"C:\Pyt
> hon27\Scripts\..\include"
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> scons: *** [target_functions\c_chi2.obj] Error 1
> scons: building terminated because of errors.
>
> C:\Python27\github\relax_disp>cl
> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> usage: cl [ option... ] filename... [ /link linkoption... ]
>
>
>
> Troels Emtekær Linnet
>
>
> 2013/5/7 Edward d'Auvergne <edward@xxxxxxxxxxxxx>
>>
>> Hi Troels,
>>
>> I just noticed that you have a footer at the end of your messages. It
>> might be better to turn this off for mailing list messages - it's best
>> that your work number and address is not archived permanently all over
>> the internet.
>>
>> Regards,
>>
>> Edward
>>
>>
>>
>>
>> On 7 May 2013 14:18, Troels Emtekær Linnet <tlinnet@xxxxxxxxx> wrote:
>> > Hi Edward.
>> >
>> > Thanks for the lengthy explanation, and I hope that I can honor your
>> > effort
>> > in explaining. :-)
>> >
>> > I would be interested to get these things to work in relax, which we
>> > most
>> > often use in our lab:
>> > - off-resonance T1rho
>> > - CPMG
>> > -- Fast (Meiboom)
>> > -- slow/intermediate (Richard-Carver)
>> > -- very slow (Tollinger/K