Thanks for your message. You may be right, this might be a
version issue.
I am using diffpy-cmi package, with Python 3.7 (anaconda env). Please let me know if the SAS module has been implemented in Python 3 or if there is an alternative.
Chhers,
Nicolas
--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/9c6ff586-9544-477e-9f8b-5e1f9546df32n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/82d25a4b-316d-0166-e0c4-4180e29fe338%40gmail.com.
Dear Simon,
Thanks for you help. I did not modify the code from the example
(except the path to C60.stru file)
Here is the full answer from Python
Fichier
"/home-local/ratel-ra/Documents/Python_code/Diffpy/Diffpy_examples/npsaspdf.py",
ligne 185, dans <module>
recipe = makeRecipe(ciffile, grdata, iqdata)
Fichier
"/home-local/ratel-ra/Documents/Python_code/Diffpy/Diffpy_examples/npsaspdf.py",
ligne 71, dans <module>
sasparser.parseFile(iqdata)
Fichier
"/home-local/ratel-ra/anaconda3_c/envs/py37/lib/python3.7/site-packages/diffpy.srfit-3.0.0-py3.7.egg/diffpy/srfit/sas/sasparser.py",
ligne 86, dans parseFile
Loader = sasimport('sas.dataloader.loader').Loader
Fichier
"/home-local/ratel-ra/anaconda3_c/envs/py37/lib/python3.7/site-packages/diffpy.srfit-3.0.0-py3.7.egg/diffpy/srfit/sas/sasimport.py",
ligne 64, dans sasimport
exec('import %s as mobj' % modname)
Fichier "<string>", ligne 1, dans <module>
builtins.ModuleNotFoundError: No module named 'sas.dataloader'
Thanks again,
Regards,
Nicolas
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/CANugsUEGhCjjYEcy5137O6KVp1h_MZ9JCQC9_jcQmzoPCRJxbA%40mail.gmail.com.
ok thanks. I'll have a try and create a python2.7 environment.
I'll keep you informed (i 'll do that tomorrow).
Nicolas
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/704ed506-645e-4dd3-ac35-261cfa72b154n%40googlegroups.com.
Hi Mikkel,
I have attempted creating a python 2.7 environment with the
suitable diffpy version. However, i get an error message regarding
pyobjcryst module, which is unfortunately not available for python
2.7 (still while running the npsas.py example in diffpy
documentation).
Thanks in advance,
Nicolas
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/704ed506-645e-4dd3-ac35-261cfa72b154n%40googlegroups.com.