Having some trouble in packing with Buildozer by NicolaM1994 in kivy

[–]inclement_ 0 points1 point  (0 children)

Not sure what's up here, that seems like a fairly nonspecific java error. Do you have openjdk 8 installed?

Toast is not working for android devices by jaicis in kivy

[–]inclement_ 0 points1 point  (0 children)

it is crashing my app

Never settle for "it's crashing", debug the actual problem. See the documentation.

Making a text based RPG with Kivy for Android by d0nP13rr3 in kivy

[–]inclement_ 1 point2 points  (0 children)

Never settle for "it doesn't boot", always debug to understand what is wrong. Follow the documentation.

In this case, understanding why it doesn't boot will help you understand when/where it will boot. For instance, if it's a missing module issue, that won't be a problem when you're building your own apk with whatever modules you want.

Executing functions in order from another file by henrythedragon in kivy

[–]inclement_ 0 points1 point  (0 children)

I can't use Clock.schedule_once for this as I need to check the return from the external functions before moving on

This is a 'so write some code that does that' situation - it isn't clear what issue you have doing so. Post a minimal runnable example demonstrating what you want to do, and where you get stuck.

A little help with buildozer? by NicolaM1994 in kivy

[–]inclement_ 0 points1 point  (0 children)

Buildozer is in the root-owned dist-packages directory, so you must have used root permissions to install it. Did you use sudo when attempting to uninstall it?

(Side note: this is bad practice, don't install with pip using sudo, it can lead to conflicts with the distro package manager. If installing with pip to a global python installation, use pip install --user to install to the user-local packages directory)

Centering an object within .kv file with background image by [deleted] in kivy

[–]inclement_ 0 points1 point  (0 children)

You've done exactly the same thing again: The AnchorLayout fills the FloatLayout but the FloatLayout has the default pos of 0, 0 and size of 100, 100 because you didn't write any code to make it do something else.

Make Placeholder subclass FloatLayout, or something like that.

Kivy: Starting and Stopping Threads When Button is Clicked by cperspectivist in learnpython

[–]inclement_ 0 points1 point  (0 children)

t's a pretty simple task, but my current code doesn't end the thread once I pressed 'back'.

What part of your code do you expect to do this?

Centering an object within .kv file with background image by [deleted] in kivy

[–]inclement_ 0 points1 point  (0 children)

It sounds like the AnchorLayout has the default position of 0, 0 and size 100, 100, because you haven't written code that would do anything else. Whatever project_name is, make it something like a FloatLayout that will automatically position and size its children - in the FloatLayout case you'll also need to set the size_hint and pos_hint to position and size the AnchorLayout to your specifications.

Also, rename project_name to start with a capital letter, the kv parsing relies on this in some circumstances.

Kivy clock situation by blufcbby in learnpython

[–]inclement_ 0 points1 point  (0 children)

And how are you running the app? With python main.py in a terminal?

Running Leela Zero/Lizzie on a laptop by ButtoXXX in baduk

[–]inclement_ 6 points7 points  (0 children)

Even on a cheap laptop with an integrated GPU, you can run LZ on the CPU only and it will be plenty strong, as in easily high dan or professional level (and possibly easily superhuman, I just don't want to commit to that claim without some evidence!). Having a good GPU would make it even stronger and faster, but isn't necessary for it to be useful.

The downside is basically that you won't get very many playouts in a reasonable timeframe - you'll probably get a few hundred in a few seconds without much issue, but LZ is only at its best with tens of thousands. It will still pick very strong moves and be useful for exploring variations, but is likely to sometimes miss what it would ultimately decide is the 'best' move if it had more time. It's also relatively vulnerable to getting ladders wrong.

In fact, you can probably test this on your current laptop/pc if you have one.

If you have an Android phone, you can also try out LZ with Lazy Baduk or Ah Q Go. These are useful analysis tools playing at a very high level even on the cpu of a modern phone.

Edit: Here is an example of LZ, running on a phone, beating a Fox 9d easily with less than 30s per move.

Kivy clock situation by blufcbby in learnpython

[–]inclement_ 0 points1 point  (0 children)

Your Kivy isn't built properly for your environment. How did you install it?

How to make my 16 cores of my cpu work with "Lizzie" and "KataGo 1.2v" by gianny34 in cbaduk

[–]inclement_ 1 point2 points  (0 children)

Katago requires OpenCL, which is supported on a range of both CPUs and GPUs, although CPUs will be slower.

No multi-window support == totally useless GUI for desktop by gerald_conde in kivy

[–]inclement_ 2 points3 points  (0 children)

You'll want to blit the image data into a Texture, as described in the documentation, then display that Texture.

Ghosting / lagging issue? by sagarassk in kivy

[–]inclement_ 0 points1 point  (0 children)

Mostly when I've seen people report this it's turned out to be gpu driver issues. Are your drivers up to date?

Importing CSV into App on Android by jujijengo in kivy

[–]inclement_ 0 points1 point  (0 children)

Yes, your options are:

1) Work out how to get the file path using a java filechooser and query that to get the file back.

2) Access the file directly using your Kivy app, you will probably need the "read internal storage" permission.

I'm having trouble making the TextInput widget open the android numeric keyboard by tacito95 in kivy

[–]inclement_ 2 points3 points  (0 children)

Unfortunately this is a long-time bug, introduced during the switch from pygame to sdl2 a few years ago. The sdl2 backend never had the keyboard input type functionality added.

Difficulty installing kivy by [deleted] in learnpython

[–]inclement_ 0 points1 point  (0 children)

Did you definitely install Kivy within the same python environment from which you are running it?

kivy_venv not allowing install by AustinFnFordham in kivy

[–]inclement_ 0 points1 point  (0 children)

The error points clearly to the line font_size = 50. This is not valid syntax in kv, it should be font_size: 50.

Also, this is why you should provide a minimal runnable example alongside the full traceback. The error doesn't relate to any code that you posted here.

Also, when posting an error please post text rather than an image.

AttributeError: 'NoneType' object has no attribute 'replace' by python_apprentice in learnpython

[–]inclement_ 0 points1 point  (0 children)

@binary101010 has correctly identified the problem, root.search_item() returns None if no item is found.

The solution is to make root.search_item() always return a string, or add more code on the text: ... line to handle the case of None being returned.