Dear Derek and CCP4bb community,

Sorry for not posting the solution. The issue have got solved with the help
from Felix, Ronan and Jens.

Adding # in front of *locale.setlocale(locale.LC_NUMERIC, "") *(near the
top), in 
"/Applications/ccp4-7.0/share/mrbump/include/output/MRBUMP_printTable.py"
worked for me.


many thanks

Nishant



On Wed, Oct 25, 2017 at 1:23 PM, Derek Logan <derek.lo...@biochemistry.lu.se
> wrote:

> Dear Nishant,
>
> Did you ever get an answer to your question? I came across it while
> looking through old e-mails. This has happened to me on every Mac I have
> run MrBUMP on in recent years (always in Sweden). You need to go to
>
> /Applications/ccp4-7.0/Frameworks/Python.framework/
> Versions/2.7/lib/python2.7/locale.py
>
> and comment out lines 576-579, i.e.
>
> #    if locale and type(locale) is not type(""):
> #        # convert to string
> #        locale = normalize(_build_localename(locale))
> #    return _setlocale(category, locale)
>
>  I don't know if this is the most elegant solution, but it works and it
> doesn't seem to break anything else.
>
> /Derek
>
> On 5 Sep 2017, at 13:17, Nishant Varshney <nik...@gmail.com> wrote:
>
> Dear Crystallographer,
>
> I will be grateful if you help me with what may be a simple problem. While
> trying MrBUMP with my mtz file , I am currently getting the following
> error. Similar error I am getting while trying AMPLE as well.
>
> "CCP4I VERSION CCP4Interface 7.0.044
> #CCP4I SCRIPT LOG mrbump
> #CCP4I DATE 01 Sep 2017  15:58:19
> #CCP4I USER apple
> #CCP4I PROJECT Josephin
> #CCP4I JOB_ID 45
> #CCP4I SCRATCH /tmp/apple
> #CCP4I HOSTNAME Apples-iMac.local
> #CCP4I PID 933
>
> http_proxy not specified in environemnt
> ************************************************************
> ***************
> * Information from CCP4Interface script
> ************************************************************
> ***************
> The program run with command: /Applications/ccp4-7.0/bin/mrbump HKLIN
> /Users/apple/Documents/Nishant/Josephin_data/ccp4/XDS_ASCII_scaled1.mtz
> SEQIN /Users/apple/Documents/Nishant/Josephin_data/Phenix/Q15040.fasta
> HKLOUT /Users/apple/Documents/Nishant/Josephin_data/ccp4/
> XDS_ASCII_scaled1_mrbump_soln1.mtz XYZOUT /Users/apple/Documents/
> Nishant/Josephin_data/ccp4/XDS_ASCII_scaled1_mrbump_soln1.pdb KEYIN
> /tmp/apple/Josephin_45_1_com.tmp
> has failed with error message
> Traceback (most recent call last):
>   File "/Applications/ccp4-7.0/Frameworks/Python.framework/
> Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
>     "__main__", fname, loader, pkg_name)
>   File "/Applications/ccp4-7.0/Frameworks/Python.framework/
> Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
>     exec code in run_globals
>   File "/Applications/ccp4-7.0/lib/py2/mrbump/__main__.py", line 85, in
> <module>
>     import MRBUMP_master
>   File 
> "/Applications/ccp4-7.0/share/mrbump/include/initialisation/MRBUMP_master.py",
> line 17, in <module>
>     import Matches
>   File "/Applications/ccp4-7.0/share/mrbump/include/structures/Matches.py",
> line 29, in <module>
>     import Write_MR_results
>   File 
> "/Applications/ccp4-7.0/share/mrbump/include/output/Write_MR_results.py",
> line 20, in <module>
>     import printTable
>   File "/Applications/ccp4-7.0/share/mrbump/include/output/printTable.py",
> line 5, in <module>
>     locale.setlocale(locale.LC_NUMERIC, "")
>   File "/Applications/ccp4-7.0/Frameworks/Python.framework/
> Versions/2.7/lib/python2.7/locale.py", line 579, in setlocale
>     return _setlocale(category, locale)
> locale.Error: unsupported locale setting
> ************************************************************
> ***************
>
>
> #CCP4I TERMINATION STATUS 0 "Traceback (most recent call last):   File
> "/Applications/ccp4-7.0/Frameworks/Python.framework/
> Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
>   "__main__", fname, loader, pkg_name)   File "/Applications/ccp4-7.0/
> Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line
> 72, in _run_code     exec code in run_globals   File
> "/Applications/ccp4-7.0/lib/py2/mrbump/__main__.py", line 85, in <module>
>     import MRBUMP_master   File "/Applications/ccp4-7.0/share/
> mrbump/include/initialisation/MRBUMP_master.py", line 17, in <module>
> import Matches    File "/Applications/ccp4-7.0/share/
> mrbump/include/structures/Matches.py", line 29, in <module>     import
> Write_MR_results   File "/Applications/ccp4-7.0/share/
> mrbump/include/output/Write_MR_results.py", line 20, in <module>
> import printTable   File "/Applications/ccp4-7.0/share/
> mrbump/include/output/printTable.py", line 5, in <module>
> locale.setlocale(locale.LC_NUMERIC, "")   File "/Applications/ccp4-7.0/
> Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line
> 579, in setlocale     return _setlocale(category, locale) locale.Error:
> unsupported locale setting"
> #CCP4I TERMINATION TIME 01 Sep 2017  15:58:20
> #CCP4I TERMINATION OUTPUT_FILES   /Users/apple/Documents/
> Nishant/Josephin_data/ccp4/search_45
> #CCP4I MESSAGE Task failed
>
>
> Looking forward for your help
>
> Regards
> Nishant
>
> --
> Dr. Nishant Kumar Varshney,
> Research Associate,
> C/O Dr. Sameena Khan,
> Drug Discovery Research Center,
> Translational Health Science and Technology Institute (THSTI)
> NCR Biotech Science Cluster,
> 3rd Milestone, Faridabad – Gurgaon Expressway,
> Faridabad – 121001 (HARYANA), India
> Ph: +91- 0129-2876477 <+91%20129%20287%206477>
> Mob: 8390564690
> <45_mrbump.log>
>
>
>


-- 
Dr. Nishant Kumar Varshney,
Research Associate,
C/O Dr. Sameena Khan,
Drug Discovery Research Center,
Translational Health Science and Technology Institute (THSTI)
NCR Biotech Science Cluster,
3rd Milestone, Faridabad – Gurgaon Expressway,
Faridabad – 121001 (HARYANA), India
Ph: +91- 0129-2876477
Mob: 8390564690

Reply via email to