Categories
Mastering Development

Does Poetry install –no-dev need Rust to be installed?

I’m installing Poetry in a container in my Raspberry pi 3b+ (Lite buster February 2020). I use the image arm32v7/python:3.7-slim-buster. Here is the Dockerfile: FROM arm32v7/python:3.7-slim-buster RUN apt-get update RUN apt-get install libssl-dev -y RUN apt-get install libffi-dev RUN apt-get install build-essential -y RUN pip install poetry RUN pip install –upgrade pip COPY ./pyproject.toml /app/ […]

Categories
Mastering Development

How to setup Pyglet to work with Manim in Colab?

I’m trying to run shaders version of Manim in Colab. This version has to show rendered video in a live interactive window, as opposed to just writing mp4. I installed and imported everything without errors: from manimlib.imports import * but get an exception when run: !python3 -m manim example_scenes.py OpeningManimExample Media will be written to […]

Categories
Development

Why do I get error Mapper mapped class Host->host could not assemble any primary key column even when I have column with primary key?

Why do I get this error saying: sqlalchemy.exc.ArgumentError: Mapper mapped class Host->host could not assemble any primary key columns for mapped table ‘host’. Even when I have a column with primary key. from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine Base = declarative_base() class Host(Base): __tablename__ = ‘host’ […]

Categories
Development Linux

locale timestamp causing overflow when executing python script

I’m trying to run a python script I wrote on my Raspberry Pi Zero, but I keep getting the error OverflowError: timestamp out of range for platform time_t. I’m relatively certain it’s something with the 32-bit ARM architecture of the pi, but I can’t seem to figure out a workaround. Here’s the traceback (mostly for […]

Categories
Development

EOFError while installing pygame

I tried to install pygame in PyCharm but I get the following error. Collecting pygame Using cached https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz Complete output from command python setup.py egg_info: WARNING, No “Setup” File Exists, Running “buildconfig/config.py” Using WINDOWS configuration… Download prebuilts to “prebuilt_downloads” and copy to “./prebuilt-x86”? [Y/n]Traceback (most recent call last): File “<string>”, line 1, in <module> File […]

Categories
Development

Django PostgreSQL existing database does not exist

I have a table tablename with schema sub in PostgreSQL that definitely exists–it has been created, it has had data added to it, and when I run SELECT * FROM sub.tablename in pgAdmin 4, it returns results without issue. When I try to then access that same table in my Django application, it produces error […]

Categories
Development Windows

How to fix and EFOE error when installing pygame

I have tried to install pygame using pip, but I keep getting the following error message: ERROR: Command errored out with exit status 1: command: ‘c:\users\james marshall\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\Users\James Marshall\AppData\Local\Temp\pip-install-7hm7k_93\pygame\setup.py’”‘”‘; file=’”‘”‘C:\Users\James Marshall\AppData\Local\Temp\pip-install-7hm7k_93\pygame\setup.py’”‘”‘;f=getattr(tokenize, ‘”‘”‘open’”‘”‘, open)(file);code=f.read().replace(‘”‘”‘\r\n’”‘”‘, ‘”‘”‘\n’”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec’”‘”‘))’ egg_info –egg-base ‘C:\Users\James Marshall\AppData\Local\Temp\pip-install-7hm7k_93\pygame\pip-egg-info’ cwd: C:\Users\James Marshall\AppData\Local\Temp\pip-install-7hm7k_93\pygame\ Complete output (17 lines): WARNING, […]

Categories
Development Docker MySQL SQL

Docker Instalation Kiwi Tcms with Postgresql

I started Kiwi TCMS in Docker (k8s) with Postgresql. It started ok, but when I wanted to run migrations it crashed. I used this docker-compose for inspiration. Log shows problem with connection with MySQL. But I changed configuration for engine. See: bash-4.2$ KIWI_DB_ENGINE=django.db.backends.postgresql_psycopg2 /Kiwi/manage.py migrate django.db.backends.postgresql_psycopg2 Traceback (most recent call last): File “/venv/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 216, […]

Categories
Development Python

Error when trying to install pygame on Python 3

I tried install pygame using, pip install pygame I tried installing it on Python 3.8 and it output an error. I also tried installing on Python 3.7 but still no luck. The error: ERROR: Command errored out with exit status 1: command: ‘c:\users\asus\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\Users\Asus\AppData\Local\Temp\pip-install-_ptqagog\pygame\setup.py’”‘”‘; file=’”‘”‘C:\Users\Asus\AppData\Local\Temp\pip-install-_ptqagog\pygame\setup.py’”‘”‘;f=getattr(tokenize, ‘”‘”‘open’”‘”‘, open)(file);code=f.read().replace(‘”‘”‘\r\n’”‘”‘, ‘”‘”‘\n’”‘”‘);f.close();exec(compile(code, […]

Categories
Development

Cannot install pygame package

I’m not able to install pygame package in python(64 bit). I tried installing it through pycharm (64 bit) by going to files>settings>program name>program interpreter then, when installing pygame, I’m facing this problem: Download prebuilts to “prebuilt_downloads” and copy to “./prebuilt-x64”? [Y/n]Traceback (most recent call last): File “<string>”, line 1, in <module> File “C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\setup.py”, line 194, […]