Print

Print


A bit of a pain but that sounds sensible.

Wayne

> On 5 Nov 2016, at 21:51, Göbl, Christoph <[log in to unmask]> wrote:
> 
> Hi Wayne,
> 
> I just recently updated to the normal ubuntu 16.04 LTS 32-bit version (on an arguably out-dated Toshiba laptop).
> 
> I had a brief look into the installation file - I guess the quicker solution for now is a downgrade to Ubuntu 15 or 14?
> 
> Thanks a lot again,
> Christoph
> 
> 
> 
> From: CcpNmr software mailing list <[log in to unmask]> on behalf of Wayne Boucher <[log in to unmask]>
> Sent: Saturday, November 5, 2016 10:46 PM
> To: [log in to unmask]
> Subject: Re: python syntax error
>  
> That is unusual, so somehow your Linux computer does not like our 32/64-bit Linux computers' code.  Usually if there’s a problem, it’s because there is a library incompatibility but this looks more fundamental.  So likely the way forward is to try and compile the source code (assuming you have a compiler).  If you download the source code version then there are some instructions with that (hopefully not too far out-of-date).  If your system Python has Tcl/Tk already (start up Python and type “import Tkinter” to determien this) then likely that should work (rather than having to compile those as well), the one caveat being that we need the Python and Tcl/Tk header files in order to compile the CCPN C code.
> 
> Wayne
> 
>> On 5 Nov 2016, at 21:45, Göbl, Christoph <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>> 
>> Hi Gary,
>> 
>> thanks a lot for your suggestion, this is what I get, for both the 32 and 64 bit ccpnmr version,
>> 
>> ./python: Exec format error. Binary file not executable.
>> 
>> Thanks again,
>> Christoph
>> 
>> 
>> 
>> From: CcpNmr software mailing list <[log in to unmask] <mailto:[log in to unmask]>> on behalf of Gary Thompson <[log in to unmask] <mailto:[log in to unmask]>>
>> Sent: Saturday, November 5, 2016 10:35 PM
>> To: [log in to unmask] <mailto:[log in to unmask]>
>> Subject: Re: python syntax error
>>  
>> Hi christoph
>> 
>> Could it be a 32 bit vs 64 bit binary issue? Is the version of python you downloaded 32 bit? What do you get if you execute: file home/christoph/nmr/software/ccpnmr/python2.7/bin/python2.7
>> 
>> Regards gary
>> 
>> Gary Thompson & Sarah Blenkin
>> Yorkshire UK
>> 
>> 
>> 01924 895408
>> [log in to unmask] <mailto:[log in to unmask]> 
>> 
>> On 5 Nov 2016, at 21:27, Göbl, Christoph <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>> 
>>> Thanks a lot,
>>> 
>>> for the hint with the shebang.
>>> 
>>> I am getting this error message when changing to bash,
>>> 
>>> analysis2.4: line 8: /home/christoph/nmr/software/ccpnmr/python2.7/bin/python2.7: cannot execute binary file: Exec format error
>>> 
>>> sounds like an compiler issue?
>>> 
>>> Thanks a lot again,
>>> Christoph
>>> 
>>> From: CcpNmr software mailing list <[log in to unmask] <mailto:[log in to unmask]>> on behalf of Wayne Boucher <[log in to unmask] <mailto:[log in to unmask]>>
>>> Sent: Saturday, November 5, 2016 7:22 PM
>>> To: [log in to unmask] <mailto:[log in to unmask]>
>>> Subject: Re: python syntax error
>>>  
>>> Hello,
>>> 
>>> The error messages in the pythons are worrying because they are binary, not text, so that’s an odd message.  But from googling it sounds like Ubuntu has an unusual /bin/sh so you might want to replace the first line in the bin/analysis2.4 script to use bash instead of sh.  And similarly in the Analysis 3 script bin/assign.  They both include their own python (as you can see from those error messages).
>>> 
>>> Wayne
>>> 
>>>> On 5 Nov 2016, at 17:58, Göbl, Christoph <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>>>> 
>>>> Dear Developers,
>>>> 
>>>> sorry to bother you with this but I can't get analysis (2.4.2) or (3) to run on my laptop, which is equipped with Ubuntu 16.04 LTS on a 32 bit machine. I have Python 2.7.12 installed.
>>>> 
>>>> The errors seem very basic shell issues and I wonder why I can't find them on the JISC-list.
>>>> 
>>>> When I execute analysis2.4 (32 bit), I get this message:
>>>> 
>>>> 
>>>> /home/christoph/nmr/software/ccpnmr/bin/analysis2.4: 9: /home/christoph/nmr/software/ccpnmr/bin/analysis2.4: Syntax error: Unterminated quoted string
>>>> 
>>>> inspection of 'analysis2.4' shows that a bracket is missing, after including it I get,
>>>> 
>>>> /home/christoph/nmr/software/ccpnmr/python2.7/bin/python2.7: 2: /home/christoph/nmr/software/ccpnmr/python2.7/bin/python2.7: Syntax error: "(" unexpected
>>>> 
>>>> 
>>>> 
>>>> When I want to execute analysis3, I also receive
>>>> 
>>>> /home/christoph/nmr/software/ccpnmr3/ccpnmr3.0.b1/miniconda/bin/python: 1: /home/christoph/nmr/software/ccpnmr3/ccpnmr3.0.b1/miniconda/bin/python: Syntax error: "(" unexpected
>>>> 
>>>> 
>>>> Do I need to set any environment variables for python?
>>>> 
>>>> Thanks a lot and best regards,
>>>> Christoph
>>>> 
>>> 
>> 
> 
>