OPENGL User Interface Programming

I'm developing a graphical application to present data (not a game but a real workhorse app). It needs to be cross platform, so I have chosen: python openGL (I need 3D, blending, textures...

Why does "python setup.py sdist" create unwanted "PROJECT-egg.info" in project root directory?

When I run python setup.py sdist it creates an sdist in my ./dist directory. This includes a "PROJECT-egg.info" file in the zip inside my "dist" folder, which I don't use, but it doesn't hurt...

Using Cython for game development?

How practical would it be to use Cython as the primary programming language for a game? I am a experienced Python programmer and I absolutely love it, but I'm admittedly a novice when it comes to...

Understand foreign function interface (FFI) and language binding

Mixing different programming languages has long been something I don't quite understand. According to this Wikipedia article, a foreign function interface (or FFI) can be done in several...

Rotating hundreds of JPEGs in seconds rather than hours

We have hundreds of images which our computer gets at a time and we need to rotate and resize them as fast as possible. Rotation is done by 90, 180 or 270 degrees. Currently we are using the...

Cross-compiling OpenCV with MinGW using CMake(in Linux for Windows)

I'm trying to compile OpenCV library with MinGW in Linux for Windows using cmake-gui. I use toolchain file for cross-compilation Toolchain-mingw.cmake SET(CMAKE_SYSTEM_NAME...

OpenCV VideoWriter using ffmpeg with "Could not open codec 'libx264'" Error

I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out. It seems that OpenCV invoke ffmpeg API using...

boost python on windows crashes at import("__main__");

I am writting a program which uses boost python embedded. My program works no problem on Linux Mint but on Windows its a huge pain. I am using MingW so I tried creating an import lib following...

PyOpenGL glutInit NullFunctionError

I am running Anaconda Python 2.7 on a Win7 x64 machine and used pip install PyOpenGL PyOpenGL_accelerate at the Anaconda command line to install PyOpenGL. I have some code (not my own I must...

Why can't I access the Screen.ids?

UPDATE: Ryan P's answer provided the solution. However, I took that solution and changed it up a bit, throwing all of the data that wasn't being properly initialised into the on_enter method of...

Name is not defined when using variables and functions in Kivy

I'm creating a program that interacts with a server, this program is for employees to use on a mobile device, so I'm using Kivy, and I'm doing the GUI first. I followed the instructions on the...

Performance issues with pyqtgraph

I'm trying to convert some code from using matplotlib to pyqtgraph since it's supposed to be much more efficient, and it provides a lot more interactive features. I've got the code mostly...

Kivy - Error Unable permissions?

I need some help. I'm studying kivy and I use pycharm as IDE for development. To work with kivy I created a virtualenvs with requeriments: kivy = 1.10 Cython = 0.23 Python = 3.5 As for setup I...

ImportError: Library "GLU" not found

On CentOS 7.5 system, run python3 and execute the following code: import gym import time env = gym.make('CartPole-v0') observation = env.reset() count = 0 for t in range(100): action =...

Python 3.6.4 Arcade Module Window Errors? {pyglet.gl.lib.GLException: b'invalid enumerant'}

UPDATE: I checked the graphics cards installed on the computers. The one where it "works" has Nvidia Graphics and the other has Intel HD R graphics under display adapter in Device Manager. I'm...

Rendering Image in Pygame Using PyOpenGL

I am working on a project for the Computer Science Club at my school and trying to learn Pygame/PyOpenGL at the same time. Right now i'm just trying to do some basic stuff. I'm trying to render an...

ArgumentError: argument 3: <class 'TypeError'>: wrong type

I'm testing kivy on win10 via nimiconda. Everytime when I run(press F5 on miniconda,the same as anaconda) the kivy code for the second time,the consel will throw "ArgumentError: argument 3: <class...

numpy.float128 doesn't exist in windows, but is called from OpenGL

I decided to try using OpenGL VBO in Python to improve FPS. I found code, that worked perfectly fine in Linux OS (Ubuntu), but when I tried launching in Windows OS, the code resulted in a...

Kivy's 3D rendering (monkey rotation) apk crashes on start

Versions: Python: python3 OS: Android Kivy: v1.11.1 Kivy installation method: buildozer I took Kivy's example 3D Rendering (rotation monkey head) app, on Linux(Ubuntu) and Windows 7 application...

After I start the program Kivy crashes without any error message

I am trying to program a GUI with kivy in python. I had before this question already a Problem with my code that got resolved: Kivy error while trying to change the screen Now when I start the...

Unable to install Kivy on MacOS10.15 using pip

So I have been using Tkinter up until now to build my GUI's for Python Projects. I want more functionality so - along comes Kivy. I am running MacOS10.15.3. I have Python 3.8.1 installed, as well...

How do I view RTSP stream using OpenCV and Kivy on android

I need to play RTSP stream on Android, the application works fine on computer, but on Android it crashes as soon as I press the RTSP stream button. I built the application using buildozer, and the...

Couldn't connect to X server in kivy

I am working on to build an app in kivy. I am running kivy app inside docker container of ubuntu 20.04 but it is giving error Couldn't connect to X server Below are the logs [INFO ] [Logger ...

Error in pygame simulation "OpenGL.error.NullFunctionError"

I'm trying to run this code in python, I already have the PyOpenGL library and the pygame library. It's a simulation to show the intermediate axis theorem. #!/usr/bin/env python # Intermediate...

Unable to import opengl.gl in python on macos

I am using OpenGL to render a scene in python. My code works perfectly fine on windows but, for some reason, I'm having issues when importing opengl.gl on MacOS. The issue arises when calling from...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

CMake Error ...: DNN: CUDA backend requires CUDA Toolkit. Please resolve dependency or disable OPENCV_DNN_CUDA=OFF

Here is the error I am getting when I am compiling OpenCV on ubuntu 20.04 with cuda 10.1. -- Detected processor: x86_64 CMake Warning at cmake/OpenCVUtils.cmake:721 (message): Unexpected option:...

OSError: libmtdev.so.1: cannot open shared object file: No such file or directory

Somebody know how I can fix this error. In google search incredibly old information, i don't found answer... When i close my app, my x-server on Linux start work unbelievably bad. Do not work...

Use BLE in a cross-platform Windows/Android Kivy app?

I'm working on a cross platform app with Kivy (for Windows and Android targets) and I need to use Bluetooth Low Energy (to communicate with a ESP32 BLE Server). I tried using Bleak to handle BLE...

Pytorch cuda is unavailable even installed CUDA and pytorch with cuda. How to fix?

I'm trying to use pytorch with my GPU (RTX 3070) on my Windows machine using WSL2, but I couldn't get it work even though I followed the Nvidia guide...