install wafo python3 linux

223 views
Skip to first unread message

Renaud Laborbe

unread,
Feb 26, 2014, 10:34:14 AM2/26/14
to wa...@googlegroups.com
Hello,

I am trying to install the python version of wafo for python3.
Not so easy...

I manage to go through the installation process. However I can not oimport wafo once I am in a python console.

Here is the error I got :

/usr/local/lib/python3.3/dist-packages/wafo-0.1.2-py3.3.egg/wafo/stats/_distn_infrastructure.py in <module>()
     36 import numpy.random as mtrand
     37
---> 38 from ._constants import _EPS, _XMAX
     39 from .estimation import FitDistribution
     40 import collections

ImportError: No module named 'wafo.stats._constants'


And as a matter of fact, there is no _contants file in pywafo-read-only/pywafo/src/wafo directory.

I've just downloaded the source from the svn repos.

Thank you for your help

PS: My company will be pleased to financially support the any development that can facilitate the installation process. Just get in touch with me

David Verelst

unread,
Feb 27, 2014, 5:36:52 AM2/27/14
to wa...@googlegroups.com
Hi,

What I have seen in the code so far does not suggest that pywafo is ready for Python3 at this moment. You should try to install pywafo with Python2

Are you trying to install pywafo on Linux? There are still a few minor issues that require manual intervention before you can successfully install pywafo on Linux. These have been discussed before in this thread: https://groups.google.com/forum/#!topic/wafo/gu55Up8m4nI. One aspect comes to mind is that you need to run the script build_all.py in the root directory to compile the C and Fortran modules. As you can see, the current installation process on Linux needs some more work.

Per, are you or others in Lund interested in improving Linux installation support? If not, I wouldn't mind looking into this issue further.
I am not sure how much work supporting Python3 would be, but I think it will be a more extensive task compared to improved Linux installation support. Per, do you have any plans regarding Python3 support in the pipeline?

Best regards,
David



--
Du mottar denne meldingen fordi du abonnerer på Google-gruppen «wafo».
For å melde seg av denne gruppen og slutte å motta e-poster fra den, send en e-post til wafo+uns...@googlegroups.com.
Hvis du vil legge inn en melding i denne gruppen, kan du sende e-post til wa...@googlegroups.com.
Besøk denne gruppen på http://groups.google.com/group/wafo.
Du finner flere alternativer på https://groups.google.com/groups/opt_out.

David Verelst

unread,
Feb 27, 2014, 5:50:21 AM2/27/14
to wa...@googlegroups.com
Ignore comments regarding Python3, seems at least most of the print statements are PY3 compatible.

Renaud Laborbe

unread,
Feb 27, 2014, 5:54:51 AM2/27/14
to wa...@googlegroups.com
davidovitch,

Thank you for your help. 
The  link you've send was one of my previous post !
In fact, we are using pywafo for some time and we like it a lot.

I have been able to install it yesterday night. 
Here are the steps :
  • download revions 190 of the svn depot ( I 've got the previous error message with the last one, _constants.py seems to be missing)
  • convert to python3 using 2to3 utility
  • remove several files not compatibles (MS*.py, chapter*.py...)
  • compile everything using build_all.py (using gfortran)
  • check scipy version (upgrade if necessary using pip3 install scipy --upgrade)
  • python3 setup.py build
  • sudo python3 setup.py install
Seems quite simple now but it took me some hours. Any development that could make this task easier are of interested.

Hope I could help

David Verelst

unread,
Feb 27, 2014, 6:02:37 AM2/27/14
to wa...@googlegroups.com
Hi Renaud,

Apologies, I missed that the post I linked to was initiated by you...
Thanks for outlining the steps you took for installing on Linux with PY3. I also have an interest in improving Linux installation support, but I also want to hear what Per's and Lund's plans are on this department. I'll keep you posted if anything moves on my end.

Best regards,
David

pab

unread,
Mar 13, 2014, 10:17:31 AM3/13/14
to wa...@googlegroups.com
Hi, 

I am sorry. That is my fault. I think it should be up and running now. I have not had much time to work on this lately. There have not been much development either on pywafo or wafo for matlab lately. I am working on windows so I am only able to check that it works for that platform from time to time.

My plan for the future of pywafo is to clean it up and remove some unused/less used code. I don't have any immediate plans for updating pywafo to python 3, but that day will eventually come. I am also thinking of moving the repo to github and use git instead of svn. If somebody wants to do some development on the code I appreciate that.

Best regards Per A 

pab

unread,
Mar 13, 2014, 10:20:45 AM3/13/14
to wa...@googlegroups.com
Hi,

As I said above I have very limited time to do development on pywafo and python 3 suppurt is not my no 1 priority. Of course It is interesting to have python 3 support for pywafo.  So if you like please look in to it. I appreciate any help in that direction.

All the best Per A.

Renaud Laborbe

unread,
May 15, 2014, 5:24:21 AM5/15/14
to wa...@googlegroups.com
Hello,

Time is money !
My company will be pleased to financially support the development needed to easily install pywafo with python3 on Ubuntu 14.04.
I am spending to much time on this task.
Anyone interested ?

Renaud
Reply all
Reply to author
Forward
0 new messages