NumPy-iOS icon indicating copy to clipboard operation
NumPy-iOS copied to clipboard

Can I use newer versions of numpy and add a generator function to the link.m?

Open lcsmnts opened this issue 2 years ago • 6 comments

Hello, I'm having issues when I update numpy to a latest version.

I imported numpy 1.24.2 but I get the following error: "error was: No module named 'numpy.core._multiarray_umath'". I want to know why this isn't working when the link.m contains the functions to give me access to "multiarray_umath".

I also want to know if I can add the numpy generator to link.m to get access to it. Maybe I have to change something somewhere else but If you can point me in the right direction, I would appreciate it. Thanks.

lcsmnts avatar Apr 22 '23 18:04 lcsmnts

I've updated this package using newer Kivy-ios recipe. Please try it and let me know.

Here you can see how this package is built. https://github.com/kewlbear/NumPy-iOS/actions/runs/4777482327/jobs/8493246886

kewlbear avatar Apr 23 '23 10:04 kewlbear

@kewlbear I know this isn't the correct place to ask you, but you seem to have a fair amount of skill with Python and Swift integration. Any ideas how I would run a Python Script using PythonKit without having to re-write the Python in Swift?

Jake-SoftwareRaven avatar Apr 23 '23 12:04 Jake-SoftwareRaven

@Jake-SoftwareRaven On which OS are you trying to do it? What Python packages are you using? The solution depends on a lot of things.

kewlbear avatar Apr 23 '23 12:04 kewlbear

@kewlbear Im trying to run it on an iPad 10th Gen, using the latest iOS version. Using Open3D, Numpy and SciPy, as of yet I haven't found a Swift Wrapper for SciPy.

Jake-SoftwareRaven avatar Apr 23 '23 13:04 Jake-SoftwareRaven

@Jake-SoftwareRaven Python packages containing source files of other languages like numpy and scipy needs to be compiled for iOS before use. There are few open source projects for Python on iOS like kiva-ios. Kivy-ios provides a recipe to build numpy. For scipy I think carnets and pyro has support for it. But I haven't been able to build both. How about asking for help at Swift forums or stackoverflow?

kewlbear avatar Apr 24 '23 00:04 kewlbear

@kewlbear Thanks for the input, ill put something onto Stackoverflow later see if get any responses

Jake-SoftwareRaven avatar Apr 24 '23 15:04 Jake-SoftwareRaven