sdds for python3.5

Moderators: cyao, soliday

PCaminal
Posts: 15
Joined: 02 Nov 2017, 12:26

sdds for python3.5

Post by PCaminal » 24 Nov 2017, 04:48

Hi all,
I am using python to make data analysis and also for plotting it, and using Ubuntu16.04. The most extended version, if I am not wrong, is Python3.
Is there any sdds extensions for Python3? If not, are you planning to upgrade it?

Thanks a lot in advance!
Cheers,
Pau Gonzalez Caminal

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sdds for python3.5

Post by soliday » 27 Nov 2017, 10:28

I have been building SDDSPython with the default version of Python for each version of Linux. However, I can post a version for Ubuntu16.04 Python3 later today.

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sdds for python3.5

Post by soliday » 27 Nov 2017, 16:06

It is ready to go http://ops.aps.anl.gov/downloads/SDDSPy ... x86_64.rpm
Unfortunately there has been an issue with outside access to our web site all day today. I have been told that IT is working on it.

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sdds for python3.5

Post by soliday » 28 Nov 2017, 09:43

I changed the download links until outside access to the new web server is fixed.
You can download this now at http://wwwaps.anl.gov/asd/oag/downloads ... x86_64.rpm

PCaminal
Posts: 15
Joined: 02 Nov 2017, 12:26

Re: sdds for python3.5

Post by PCaminal » 29 Nov 2017, 06:55

Hi Soliday,
cool, thanks! I already installed it. However when I import the module sdds into python3, I get the following error:
In [1]: import sdds
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-d3a2141189aa> in <module>()
----> 1 import sdds

/usr/lib/python3/dist-packages/sdds.py in <module>()
----> 1 import sddsdata, sys, time
2
3 class SDDS:
4 """This class implements SDDS datasets."""
5

ImportError: No module named 'sddsdata'
Could it be that by default the sddsdata is installed in some folder, in which python doesn't look for?
Cheers,
Pau

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sdds for python3.5

Post by soliday » 29 Nov 2017, 12:13

The python2 expects the module shared library name to be sddsdatamodule.so while python3 expects it to be sddsdata.so. I have rebuilt the rpm file. Uninstall the one you have and then redownload the link above and install the updated version.

PCaminal
Posts: 15
Joined: 02 Nov 2017, 12:26

Re: sdds for python3.5

Post by PCaminal » 30 Nov 2017, 13:56

Awesome, now it works perfectly! =)
Thanks a lot Soliday!

yuehao
Posts: 40
Joined: 25 Oct 2011, 14:50

Re: sdds for python3.5

Post by yuehao » 02 Feb 2018, 22:22

Hi, Soliday

Could you please also post the python 3 library for mac?

Thank you very much.
Yue

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sdds for python3.5

Post by soliday » 05 Feb 2018, 12:31

https://ops.aps.anl.gov/downloads/darwi ... 3.6.tar.gz
This needs to be unpacked into /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ for Python3.6 from MacPorts or the site-packages directory of the version of Python3.6 that you are using.

yuehao
Posts: 40
Joined: 25 Oct 2011, 14:50

Re: sdds for python3.5

Post by yuehao » 05 Feb 2018, 13:01

Thank you very much.

Post Reply