Kivy garden matplotlib buildozer - matplotlib

I have an app which was successfully packaged for android using python 2 and buildozer. I ammended the program adding the matplotlib garden module using 'garden install --app matplotlib' into the main app directory. It runs fine on pydroid and ubuntu, but crashes after packaging on android. I've added regular matplotlib python library to requirements in .spec file and tried putting matplotlib into the garden requirements also. Should I not add the garden matplotlib to kivy garden requirements in spec file if the garden module is already installed in the main app dir? Thanks.

I had this same problem and would have dropped kivy altogether, until I caught the workaround described here on github. It's also referenced in comments on this answer here on stackoverflow. As I saw it, the crash occurred due to the statement from kivy.garden.matplotlib import FigureCanvasKivyAgg, and the problem isn't obvious from any of the messages in the android logfiles.

Related

Output: "[Warning] Could not find workspace while activating"

I'm getting this error when opening VS Code. Does anyone know what it means? I've done some research but didn't get any relevant information :(
I've tried creating a workflow to see if the error disappeared, but it didn't.
It seems that react native is asking for a workspace to start but is it asking that in the first place? Can I disable react native from running when opening VS Code?
The folder opened when the screenshot above was taken was the folder it opens by default, I believe it's the mac "home" personal folder, and I have a folder called "git" inside of it, with all projects.
Given the date of this posting (2023-02-07), you're probably on version 1.10.0 of the extension. This sounds like this bug report in the microsoft/vscode-react-native GitHub repo: [Bug] Extension activating when it shouldn't #1891.
A fix is coming in version 1.10.1.
But it is taking some time and has not been release yet at the time of this writing 2023-01-31:
we're facing some problems in the last release process, recently we're waiting for new publishing PAT access to republish 1.10.1 again, maybe it will publish on marketplace on next week. We have nightly version for extension in marketplace as well, maybe you can use it now.
For now, you can try installing the nightly version.
Also, note from the extension's readme documentation:
Before going any further make sure that you:
have a working React Native environment.
have the emulator utility available in your PATH if you're developing Android applications.
[...]
Got it, this annoying log came from React Native Tools extension. They specify the requirements in the docs:
In my case, I don't have a specific React Native environment or the emulator PATH is not right.

React Native Example App does not run in Expo Snack

I'm learning React Native and trying to add a component to an Expo Snack for testing. I can't even get the example app to work though.
Is it something different about how Snacks work vs. a desktop development environment? I've encountered that type of difference using JSFiddle, for example.
I straight copy-pasted the code from the Github repo into snack.expo.io and it gave me an error:
Device: (946:881) Unable to resolve module 'module://expo-font.js'
Evaluating module://expo-font.js
Evaluating module://react-native-numeric-input.js
Evaluating module://App.js
Loading module://App.js
I've gotten this error before, but I've never been able to figure out why. Is it an issue with the package, which was updated just 7 days ago, or something else? Please advise.
It may be due to missing of node modules in your project compared to the Github project. As the Stack.expo browser won't give us full freedom to install custom modules, I suggest you to download VS Code and open the Github project in it, then do "npm install" from cmd and "react-native run-android/ios".

Is python 3 compatible with react native? or should I install python 2 as documentation of react suggests it?

React native documentation says python2 is required but what if python3 is installed?
will I get errors in react native app if python3 is installed?
I am using windows 10 and I am going to run it on Android.
also, I read python is necessary from this question.
Yes. You can work with react native and python 3.
Edit
Now it is mentioned,
Python v2.7, v3.5, v3.6, v3.7, or v3.8
So I believe Python 3 should be good to go.
Old Answer
I would say if they have specifically mentioned Python 2 then there must be some reason. If you go to this link, then you can see they have mentioned
python (v2.7 recommended, v3.x.x is not supported)
So there might be some compatibility issue in some module or something. Just check everything you require is working as expected.

Adding React Native to an existing iOS app - fails to compile

I followed the official guide on adding React Native to existing iOS apps (Swift).
pod install finished successfully and I got to the point when I import React in a Swift file and try to compile the app.
The build fails with an error in the yoga dependency. Xcode cannot find the C++ standard library:
However, then I click "Go to definition" on <algorithm>, Xcode can find it:
These are my project settings (I tried a few different combinations):
I'm fairly new to iOS development, so this might be a simple issue with our existing project, Xcode, Command Line Tools, or my machine. I Googled around a bit, no luck so far.
Any help from someone familiar with iOS development is appreciated! When we find the solution I'd like to update the official guide so others don't get stuck adding React Native to their app.
I believe your issue is fixed by this PR https://github.com/facebook/react-native/pull/17764, which reduces the number of exported Yoga headers to those that are actually needed to be able to build and as part of that removes headers that require C++ and its stdlib.

Parse and semantic issues in TestFlight.h after installing SDK

I installed TestFlight SDK following installation instructions and then when I tried to build my app I got more than 20 parse and semantic issues in TestFlight.h and build failed.
What is wrong with my installation?
What I did wrong was for this step:
In your Application Delegate:
Import TestFlight: #import "TestFlight.h"
I imported it in the body instead of in the header. Just moving the import to the header solved my issue.
(Very small issue but I thought it could help some developers to save some time)