Raihan, I downloaded the latest Yapyg from github, but I can't run the old examples. Do you have any advice for me? I wanted to try if with master version it would maybe work on my device.
The examples kept changing because I've modfied the interface functions again and again, it's best if you download the current yapygdemo sources from the github: https://github.com/rkibria/yapygdemo
Hi, I am using now the latest demo files and there's an import fixpoint error, here's the log http://pastebin.com/H1vVeE5t . All the c files cannot be imported. I'm trying to figure out why this is so.
I did run setup.py and now I can import yapyg in a python console. Still, I'm getting ImportError: No module named fixpoint. I'll check once again if I'm doing everything right.
It converts floating point values to the fixpoint number representation yapyg uses internally. This is basically a less precise but faster implementation of non-whole numbers that can be computed with only integer operations so it runs fast even if you have no floating point processing unit in your device, for example most (I think) Android phones.
Raihan, I downloaded the latest Yapyg from github, but I can't run the old examples. Do you have any advice for me? I wanted to try if with master version it would maybe work on my device.
ReplyDeleteThe examples kept changing because I've modfied the interface functions again and again, it's best if you download the current yapygdemo sources from the github: https://github.com/rkibria/yapygdemo
DeleteSorry for the inconvenience!
Hi, I am using now the latest demo files and there's an import fixpoint error, here's the log http://pastebin.com/H1vVeE5t . All the c files cannot be imported. I'm trying to figure out why this is so.
ReplyDeleteDid you do "python setup.py install" from the kivy console in the downloaded yapyg directory first? Some modules need to be built first with Cython.
DeleteI did run setup.py and now I can import yapyg in a python console. Still, I'm getting ImportError: No module named fixpoint. I'll check once again if I'm doing everything right.
DeleteOK, I made it now.
DeleteWhat does float2fix do?
ReplyDeleteIt converts floating point values to the fixpoint number representation yapyg uses internally. This is basically a less precise but faster implementation of non-whole numbers that can be computed with only integer operations so it runs fast even if you have no floating point processing unit in your device, for example most (I think) Android phones.
DeleteOk.
ReplyDelete