I'm trying to package an app for android that will be using pymssql to communicate with sql server. I'm having some trouble getting the right files into the directory. I'm not sure if I should just place the source files in the same directory as my main.py or if I should put them in a directory under python-for-android or in one of the kivy directories. It doesn't seem to recognize the .pyd or .pyx files that pymssql comes with and I can only find one .py that it includes but it needs '_mssql' and 'pymssql' to run. This was so easy to do under windows but I don't know where to start installing a third party library on an android from linux. Has anyone installed a third party library like this that could give some pointers?
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks! What if that URL is an executable that runs its own install. Will the recipe be able to redirect where the files are supposed to land? I'm still foggy about what files are supposed to go where because I don't know where python-for-android will be looking for the modules when it builds the app.
You'll need to run: ./distribute -m 'mysql_connector kivy'
Depending how I named this recipe ;-)
If I wrong check ./distribute -l
That's cool! does that mean that the recipe for pymssql will be a similar setup. I wish I could use mysql on this project but our company is fully on mssql server. I've never made anything like a recipe before (I usually just stick to Python) so I'm not even sure what I'm looking at when I open one up. The documentation on the link above is also difficult to follow. I'm still confused about what file types Python-For-Android is looking for and where they go.
I'd also like to add that beyond importing pymssql and using its fuctions in my program I know nothing about its build structure and I don't know anything about python-for-android other than how to build an .apk using it. It seems to me that I would have to have the intimate knowledge that one of the developers on both ends of these two packages has to be able to write a recipe for this one package. Am I just not understanding how this works? Is it really simpler than all that? I really need to get this going, it's the last step we need to go through before we can release our software.
Sorry my last response was being typed while you were sending yours. I agree with what you say for a normal use of the android system (IE a phone's data package). Our system though is running directly within our local network and just happens to be the android platform. They're really running just the same way a normally networed computer terminal would. Just think of it as an integrated touchscreen device. Anyway architecture aside I really just need some pointers on building a recipe for pymssql because that's what we're using.
So what do you guys think? Can anyone help with this?
The problem I'm having is that under windows when I put the pymssql.pyd and _mssql.pyd in the same folder as my main.py kivy runs it just fine. Under Linux the pymssql.(pyc) and _mssql.(so) files are kept under /usr/lib/python2.7/modules and this allows python to use pymssql. I've been trying to mirror this in python-for-android. I've put these two files under every folder I can find that is named 'modules'. This doesn't work. I some cases it ruins my other perfectly viable imports that always worked before. It seems to me that when PFA compiles my project it takes every .py and compiles it to a .pyo no matter where it is. That's great for pure python files but what about cython files? How do I get PFA to recognize these as modules?
Thank you, that gets me a step closer. Am I understanding that I need .pyx or .o files to be in the site-packages directory under PFA? Would that be the one that's in the directory under 'build' for 'python 2.7' or one of the other site-packages folders? What happens with .so file types, are they not used by kivy? If all it is that the .pyx files need to be under site-packages why can't I just drag and drop them there? Also how do I run the recipe once it's been written? And finally where can you direct me to a good tutorial that thoroughly explains build and shell scripts (Having a hard time wrapping my head around the language). Sorry for all the questions its just that I generally stick to the programming portion of a project and usually don't do anything with shell scripts especially not on Linux (Can't wait to get my hands in this though).
Bump?
I hate to be the guy that keeps on asking but I really need this question answered. We have our software finished which represents hundreds of hours of development and we have a presentation to make this Friday. All I need is for this one third party module to be included in the final build for Android. I am not getting anywhere with the recipes because the documentation is very limited. Is there a way I could get an experienced recipe script writer's advice on how I can get this third party module from point A to point B? Again this is very important, I really need the help. Thanks.
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/IQijU7V7UEs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
Thank you for the quick reply. Do I understand right that it's not possible to use pymssql with kivy on android? This would be bad because we only have a ms sql server at our company. Am I understanding that you can use the mysql connector with a ms sql server? If so how is that done?
Okay, actually I'm using a mssql server as in microsoft server not a mysql server. We don't use Oracle products. So my question is will the oracle connector work with a microsoft server?
How much, money would you invest in getting a working recipe?
Actually the enterprise system we and hundreds of other corperations use for record keeping uses sql over network to pass very large amounts of data so we feel very safe with this paradime. I'm just wandering about the FreeTDS question, is that going to cause an issue when compiling?
Thank you all for your help on this. I was finally able to convince my boss to get me a MySQL server and now the last link of the project has been realized. Thank you Thomas for your recipe.