lbm_ldc.py throws OpenGL.arrays.arraydatatype

58 views
Skip to first unread message

Aritra Nath

unread,
Apr 17, 2011, 1:20:30 PM4/17/11
to sailfi...@googlegroups.com
Hi Michal,

Sure enough :

1. When I try to run the example lbm_ldc.py I see this error:
C:\Simulation\sailfish>python C:\Simulation\sailfish\lbm_ldc.py
cuInit
cuDeviceGetCount
cuDeviceGet
cuCtxCreate
cuCtxGetDevice
No handlers could be found for logger "OpenGL.arrays.arraydatatype"
Using the "cuda" backend.
[0000.10] Initializing visualization engine.
Traceback (most recent call last):
  File "C:\Simulation\sailfish\lbm_ldc.py", line 72, in <module>
    sim.run()
  File "sailfish\lbm.py", line 912, in run
    self._init_vis()
  File "sailfish\lbm.py", line 359, in _init_vis
    if self.grid.dim in engines[self.options.vis].dims:
KeyError: 'pygame'
cuCtxPopCurrent

I am not sure if the problem is with PyopenGL because it is the one that is compiled with Python2.6 and that is wht each package has been compiled with.

Regards,
Aritra


On Sun, Apr 17, 2011 at 6:54 AM, Michal Januszewski <mic...@gmail.com> wrote:
Hi,

AFAIR, there have been reports of successful Sailfish installations on
Windows.  This will however almost certainly be _more_ difficult than
a Ubuntu installation, so my advice would be to try to spend some more
time on getting CUDA working on Ubuntu.

Michal

On Sat, Apr 16, 2011 at 16:21, Aritra Nath <nath....@gmail.com> wrote:
> Hello Everyone,
>
> I need to use Sailfish for a project. I have been struggling to get
> CUDA 4.0 installed correctly in UBUNTU 10.10. I believe it is easier
> to do so on windows. Just wanted to know if Sailfish can be installed
> and run in Windows.
>
> Windows 7
>
> Regards,
> Aritra



--
Michal Januszewski
http://people.gentoo.org/spock

Michal Januszewski

unread,
Apr 17, 2011, 1:23:20 PM4/17/11
to sailfi...@googlegroups.com
Hi,

I looks like the problem is actually with the 'pygame' module. You
might be able to run the simulation in batch mode (--batch) without
any on-line visualization.

Michal

Aritra Nath

unread,
Apr 17, 2011, 2:45:07 PM4/17/11
to sailfi...@googlegroups.com
Hi Michal,

I see what you say. I added a print statement between line 358 and 359 in the lbm.py see in bold the message :

Using the "cuda" backend.
[0000.08] Initializing visualization engine.
Aritra {'mayavi': <class 'sailfish.vis3d.Fluid3DVis'>, 'surface': <class 'sailfi
sh.vis_surf.FluidSurfaceVis'>}
Traceback (most recent call last):
  File "C:\Simulation\sailfish\lbm_cylinder.py", line 40, in <module>
    sim.run()
  File "C:\Simulation\sailfish\sailfish\lbm.py", line 912, in run
    self._init_vis()
  File "C:\Simulation\sailfish\sailfish\lbm.py", line 359, in _init_vis
    if self.grid.dim in engines[self.options.vis].dims:
KeyError: 'pygame'

I believe the pygame should also be there but it doesn't show up there.

Any suggestions?

Regards,
Aritra

Michal Januszewski

unread,
Apr 17, 2011, 3:26:42 PM4/17/11
to sailfi...@googlegroups.com
Hi Aritra,

I believe the pygame module fails to load for some reason. Try
starting an interactive Python shell and running "import pygame".

Michal

aaronshe...@gmail.com

unread,
Jun 23, 2018, 11:53:30 AM6/23/18
to sailfish-cfd
It's a very old post, but this is one of the top results on google for this problem, and the correct solution doesn't seem to be posted, so I might chime in. Installing numpy fixed this for me, it was listed as one of the "recommended" modules, however for the install instructions for Python 2.x it is actually listed as a dependency.
Reply all
Reply to author
Forward
0 new messages