Page 1 of 1

particles crash

Posted: Sun Aug 03, 2014 5:45 pm
by d76
Hello, it me again,
I got segmentation fault with this.. am i doing something wrong?
(python 3.2, Mac OS X 10.9)
Code: Select all
# -*- coding: utf-8 -*-

import os
from pymaxwell import *

f = "particles-00000.bin"
n = os.path.splitext(f)[0]

s = Cmaxwell(mwcallback)

m = CextensionManager.instance()
e = m.createDefaultGeometryProceduralExtension('MaxwellParticles')
p = e.getExtensionData()
p.setString('FileName', os.path.realpath(f))

# and now.. it's.. Segmentation fault
o = s.createGeometryProceduralObject(n, p)


Re: particles crash

Posted: Mon Aug 04, 2014 12:33 pm
by Brany
It seems to work fine in Windows (python 2.6, 2.7 and 3.2). I will try it in OSX

Re: particles crash

Posted: Wed Aug 06, 2014 12:54 pm
by d76
hi Brany
have you tried it? i also forgot to mention that i am using pymaxwell from 3.1

and one side note, i read somewhere in docs which gave me impression that inside bin, particles can have radius specified per particle, is that possible? i have read anything inside specs (realflow 2013), have something changed or i just didn't understand it well

Re: particles crash

Posted: Wed Aug 06, 2014 1:04 pm
by Brany
We don't distribute pymaxwell for python 3.1 now, what version of the libraries (Cmaxwell.getEngineVersion()) do yo use?

Re: particles crash

Posted: Wed Aug 06, 2014 4:40 pm
by d76
eh, forgot extra zero, sorry :oops:
Code: Select all

Re: particles crash

Posted: Wed Aug 06, 2014 6:26 pm
by Brany
OK, pymaxwell 3.0.1 for python 3.2 then ;)

I've just installed python 3.2 in my osx 10.9 machine and it causes a segmentation fault just running this code
Code: Select all
import sys
print sys.path
from the command line. pymaxwell not installed yet.

The python 3.2 installer is for osx 10.5 so I suspect that I will have to compile python 3.2 using the sources to try to have an stable python 3.2 on my machine.

I'll try to do this tomorrow. Meanwhile I encourage you to try python 2.6 or 2.7 if you can.

Re: particles crash

Posted: Wed Aug 06, 2014 7:08 pm
by d76
um, it's part of our studio internal tools i wrote, currently updating to maxwell 3, and it's all python 3.. i think it is impossible for me to use python 2.x, i even started learning python from version 3, and since blender is important part of it (also python 3) i am seriously screwed..

wouldn't it be possible to provide python 3.4 pymaxwell? pretty please?
it will also save me from pickling data and running python 3.2 from python 3.4 each time i need to write a scene, get rid of a bit of "punks not dead" style.. :(

meanwhile i try also work machine, that's still OSX 10.8

also found this: ... -mavericks

Re: particles crash

Posted: Thu Aug 07, 2014 1:42 pm
by Brany
We will support python 3.4 on our next release. See MP please.