{"action":"created","issue":{"url":"https://api.github.com/repos/wafo-project/pywafo/issues/16","labels_url":"https://api.github.com/repos/wafo-project/pywafo/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/wafo-project/pywafo/issues/16/comments","events_url":"https://api.github.com/repos/wafo-project/pywafo/issues/16/events","html_url":"https://github.com/wafo-project/pywafo/issues/16","id":126137119,"number":16,"title":"Issues with Rind not being loaded","user":{"login":"eelcovv","id":2842784,"avatar_url":"https://avatars.githubusercontent.com/u/2842784?v=3","gravatar_id":"","url":"https://api.github.com/users/eelcovv","html_url":"https://github.com/eelcovv","followers_url":"https://api.github.com/users/eelcovv/followers","following_url":"https://api.github.com/users/eelcovv/following{/other_user}","gists_url":"https://api.github.com/users/eelcovv/gists{/gist_id}","starred_url":"https://api.github.com/users/eelcovv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eelcovv/subscriptions","organizations_url":"https://api.github.com/users/eelcovv/orgs","repos_url":"https://api.github.com/users/eelcovv/repos","events_url":"https://api.github.com/users/eelcovv/events{/privacy}","received_events_url":"https://api.github.com/users/eelcovv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T09:45:18Z","updated_at":"2016-01-14T15:53:34Z","closed_at":null,"body":"Hello, \r\nI have installed pywafo and tried to run the tutorials but I am running into some issues. From chapter 1 I have here given the smallest example to raise the error I have installed the pywafo project from this repository, but also tried the anaconda version which gives the same error\r\n\r\nThe example is:\r\n\r\n```python\r\nimport wafo.spectrum.models as wsm\r\nimport wafo.objects as wo\r\n\r\ntry:\r\n    from win32api import LoadResource\r\nexcept ImportError:\r\n    pass\r\n\r\nS = wsm.Torsethaugen(Hm0=6, Tp=8)\r\nS1 = S.tospecdata()\r\n\r\ndtyex = S1.to_t_pdf(pdef='Tt', paramt=(0, 10, 51), nit=3)\r\n```\r\nRunning this code raises the issue \r\n\r\n```\r\n File \"C:/Data/Eelco/Python Scripts/PyCharm/pywafo_examples/tutorial_scripts/bug_example.py\", line 14, in <module>\r\n    dtyex = S1.to_t_pdf(pdef='Tt', paramt=(0, 10, 51), nit=3)\r\n  File \"C:\\Apps\\Anaconda\\Anaconda2\\lib\\site-packages\\wafo-0.1.2-py2.7.egg\\wafo\\spectrum\\core.py\", line 1369, in to_t_pdf\r\n    rind = Rind(**opts)\r\nTypeError: 'NoneType' object is not callable\r\n```\r\n\r\nIt appears that Rind is loaded in wafo.gauss, however, this is not done correctly and therefore remains None\r\n\r\nTherefore, as a work around I try to force to load wafo.gauss.Rind again before I call the to_t_pdf as\r\n```\r\n from wafo.gaussian import Rind \r\n```\r\n\r\nNow Rind seems to be loaded, but I get the following error\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:/Data/Eelco/Python Scripts/PyCharm/pywafo_examples/tutorial_scripts/bug_example.py\", line 14, in <module>\r\n    from wafo.gaussian import Rind\r\n  File \"C:\\Apps\\Anaconda\\Anaconda2\\lib\\site-packages\\wafo-0.1.2-py2.7.egg\\wafo\\gaussian.py\", line 7, in <module>\r\n    from wafo import mvn\r\nImportError: DLL load failed: %1 is not a valid Win32 application.\r\n```\r\n\r\nI am not sure if this error is related to the first problem. Anyhow. Any idea how I could fix this? \r\n\r\nMany thanks\r\n\r\nRegards\r\nEelco\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wafo-project/pywafo/issues/comments/171680484","html_url":"https://github.com/wafo-project/pywafo/issues/16#issuecomment-171680484","issue_url":"https://api.github.com/repos/wafo-project/pywafo/issues/16","id":171680484,"user":{"login":"davidovitch","id":2007257,"avatar_url":"https://avatars.githubusercontent.com/u/2007257?v=3","gravatar_id":"","url":"https://api.github.com/users/davidovitch","html_url":"https://github.com/davidovitch","followers_url":"https://api.github.com/users/davidovitch/followers","following_url":"https://api.github.com/users/davidovitch/following{/other_user}","gists_url":"https://api.github.com/users/davidovitch/gists{/gist_id}","starred_url":"https://api.github.com/users/davidovitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidovitch/subscriptions","organizations_url":"https://api.github.com/users/davidovitch/orgs","repos_url":"https://api.github.com/users/davidovitch/repos","events_url":"https://api.github.com/users/davidovitch/events{/privacy}","received_events_url":"https://api.github.com/users/davidovitch/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T15:53:34Z","updated_at":"2016-01-14T15:53:34Z","body":"Thanks for reporting this. I hope this problem will be fixed when the [pipinstall](https://github.com/wafo-project/pywafo/tree/pipinstall) branch is merged with master. It is further discussed in issue #14."}}