aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
216 stars 35 forks source link

Error: While importing 'app', an ImportError was raised: #1092

Closed herseyc closed 7 months ago

herseyc commented 7 months ago

When trying to run setup.sh to upgrade indi-allsky I am receiving the following:

Error: While importing 'app', an ImportError was raised:

Traceback (most recent call last): File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/cli.py", line 219, in locate_app import(module_name) File "/home/pi/indi-allsky/app.py", line 3, in from indi_allsky.flask import create_app File "/home/pi/indi-allsky/indi_allsky/flask/init.py", line 9, in from flask_wtf.csrf import CSRFProtect File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/init.py", line 4, in from .recaptcha import Recaptcha File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/init.py", line 1, in from .fields import RecaptchaField File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/fields.py", line 3, in from . import widgets File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/widgets.py", line 2, in from flask import Markup ImportError: cannot import name 'Markup' from 'flask' (/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/init.py)

Usage: flask [OPTIONS] COMMAND [ARGS]... Try 'flask --help' for help.

Error: No such command 'db'.

Tried rebuilding the database but receive the same error when running flask db revision --autogenerate

Thanks Hersey

aaronwmorris commented 7 months ago

Can you post the results of the ./misc/support_info.sh script?

herseyc commented 7 months ago

pi@allskypi:~/indi-allsky $ ./misc/support_info.sh ./misc/support_info.sh: line 49: warning: command substitution: ignored null byte in input #################################

indi-allsky support info

#################################

Distribution: Raspbian Release: 11 Arch: armv7l Bits: 32

CPUs: 4 Memory: 944092 kB

System: Raspberry Pi 3 Model B Rev 1.2

Uptime 10:56:34 up 49 min, 4 users, load average: 0.00, 0.01, 0.17

Filesystems Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 122597728 68485472 49075648 59% / devtmpfs 340460 0 340460 0% /dev tmpfs 472044 0 472044 0% /dev/shm tmpfs 188820 800 188020 1% /run tmpfs 5120 4 5116 1% /run/lock /dev/mmcblk0p1 258095 51409 206687 20% /boot tmpfs 94408 24 94384 1% /run/user/1000

system python: Python 3.9.2

indiserver: /usr/local/bin/indiserver

User info uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),102(systemd-journal),105(input),107(render),109(netdev),117(lpadmin),997(gpio),998(i2c),999(spi)

Process info pi 615 0.0 0.2 8288 2080 ? Ss 10:07 0:00 /usr/local/bin/indiserver indi_simulator_telescope indi_sv305_ccd pi 619 0.0 0.4 32196 4364 ? S 10:07 0:00 indi_simulator_telescope pi 620 0.3 0.4 71516 4588 ? Sl 10:07 0:10 indi_sv305_ccd

USB info Bus 001 Device 004: ID f266:9a0a CKCamera CKCamera Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

USB Permissions 122 0 drwxr-xr-x 3 root root 60 Dec 31 1969 /dev/bus/usb 123 0 drwxr-xr-x 2 root root 120 May 13 2023 /dev/bus/usb/001 142 0 crw-rw-rw- 1 root root 189, 3 Jan 6 10:06 /dev/bus/usb/001/004 135 0 crw-rw-r-- 1 root root 189, 2 Jan 6 10:06 /dev/bus/usb/001/003 134 0 crw-rw-r-- 1 root root 189, 1 Jan 6 10:06 /dev/bus/usb/001/002 124 0 crw-rw-r-- 1 root root 189, 0 Jan 6 10:06 /dev/bus/usb/001/001

Module info Module Size Used by rfcomm 49152 4 cmac 16384 2 algif_hash 16384 1 aes_arm_bs 24576 2 crypto_simd 16384 1 aes_arm_bs cryptd 24576 2 crypto_simd algif_skcipher 16384 1 af_alg 28672 6 algif_hash,algif_skcipher bnep 20480 2 hci_uart 40960 1 btbcm 20480 1 hci_uart bluetooth 503808 31 hci_uart,bnep,btbcm,rfcomm ecdh_generic 16384 1 bluetooth ecc 40960 1 ecdh_generic 8021q 32768 0 garp 16384 1 8021q stp 16384 1 garp llc 16384 2 garp,stp brcmfmac 335872 0 vc4 315392 3 snd_soc_hdmi_codec 16384 1 brcmutil 20480 1 brcmfmac drm_display_helper 16384 1 vc4 cec 49152 1 vc4 drm_dma_helper 20480 1 vc4 sha256_generic 16384 0 drm_kms_helper 188416 3 drm_dma_helper,vc4 cfg80211 811008 1 brcmfmac snd_soc_core 253952 2 vc4,snd_soc_hdmi_codec snd_compress 20480 1 snd_soc_core snd_pcm_dmaengine 20480 1 snd_soc_core rfkill 32768 6 bluetooth,cfg80211 syscopyarea 16384 1 drm_kms_helper sysfillrect 16384 1 drm_kms_helper sysimgblt 16384 1 drm_kms_helper raspberrypi_hwmon 16384 0 fb_sys_fops 16384 1 drm_kms_helper bcm2835_codec 45056 0 v4l2_mem2mem 40960 1 bcm2835_codec i2c_bcm2835 16384 0 bcm2835_isp 32768 0 bcm2835_v4l2 45056 0 bcm2835_mmal_vchiq 36864 3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2 videobuf2_dma_contig 20480 2 bcm2835_isp,bcm2835_codec videobuf2_vmalloc 16384 1 bcm2835_v4l2 videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc snd_bcm2835 24576 1 videobuf2_v4l2 32768 4 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem snd_pcm 118784 5 snd_compress,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_bcm2835,snd_soc_core videobuf2_common 65536 8 bcm2835_isp,bcm2835_codec,videobuf2_dma_contig,videobuf2_vmalloc,videobuf2_memops,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd_timer 36864 1 snd_pcm videodev 266240 6 bcm2835_isp,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd 94208 8 snd_compress,snd_soc_hdmi_codec,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm vc_sm_cma 32768 2 bcm2835_isp,bcm2835_mmal_vchiq mc 53248 6 bcm2835_isp,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2 uio_pdrv_genirq 16384 0 fixed 16384 0 uio 24576 1 uio_pdrv_genirq drm 544768 6 drm_dma_helper,vc4,drm_display_helper,drm_kms_helper i2c_dev 16384 0 fuse 131072 3 drm_panel_orientation_quirks 16384 1 drm backlight 20480 1 drm ip_tables 28672 0 x_tables 36864 1 ip_tables ipv6 520192 47

git status On branch main Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

git log commit 610e3469610c8bdfea6d3a2aae732a22c7942d28 Merge: 07cdf75e 85180592 Author: Aaron W Morris aaron@aarmor.net Date: Fri Jan 5 12:20:34 2024 -0600

Merge pull request #1090 from aaronwmorris/dev

script to change only the camera driver

indi version: 2.0.3

indi packages

Detected indi properties looking for .. Connected to localhost on port 7624 Queried properties from SVBONY SV305 0.CONNECTION.CONNECT=Off SVBONY SV305 0.CONNECTION.DISCONNECT=On SVBONY SV305 0.DRIVER_INFO.DRIVER_NAME=SVBONY SV305 SVBONY SV305 0.DRIVER_INFO.DRIVER_EXEC=indi_sv305_ccd SVBONY SV305 0.DRIVER_INFO.DRIVER_VERSION=1.3 SVBONY SV305 0.DRIVER_INFO.DRIVER_INTERFACE=2 SVBONY SV305 0.POLLING_PERIOD.PERIOD_MS=1000 SVBONY SV305 0.CONFIG_PROCESS.CONFIG_LOAD=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_SAVE=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_DEFAULT=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_PURGE=Off SVBONY SV305 0.DEBUG.ENABLE=Off SVBONY SV305 0.DEBUG.DISABLE=On SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM Telescope Simulator.CONNECTION.CONNECT=Off Telescope Simulator.CONNECTION.DISCONNECT=On Telescope Simulator.DRIVER_INFO.DRIVER_NAME=Telescope Simulator Telescope Simulator.DRIVER_INFO.DRIVER_EXEC=indi_simulator_telescope Telescope Simulator.DRIVER_INFO.DRIVER_VERSION=1.0 Telescope Simulator.DRIVER_INFO.DRIVER_INTERFACE=5 Telescope Simulator.POLLING_PERIOD.PERIOD_MS=250 Telescope Simulator.DEBUG.ENABLE=Off Telescope Simulator.DEBUG.DISABLE=On Telescope Simulator.CONFIG_PROCESS.CONFIG_LOAD=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_SAVE=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_DEFAULT=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_PURGE=Off Telescope Simulator.CONNECTION_MODE.CONNECTION_SERIAL=On Telescope Simulator.CONNECTION_MODE.CONNECTION_TCP=Off Telescope Simulator.DEVICE_PORT.PORT=/dev/ttyUSB0 Telescope Simulator.DEVICE_BAUD_RATE.9600=On Telescope Simulator.DEVICE_BAUD_RATE.19200=Off Telescope Simulator.DEVICE_BAUD_RATE.38400=Off Telescope Simulator.DEVICE_BAUD_RATE.57600=Off Telescope Simulator.DEVICE_BAUD_RATE.115200=Off Telescope Simulator.DEVICE_BAUD_RATE.230400=Off Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_ENABLED=On Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_DISABLED=Off Telescope Simulator.DEVICE_PORT_SCAN.Scan Ports=Off Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator Telescope Simulator.DOME_POLICY.DOME_IGNORED=On Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10 Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10 Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120 Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900 Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky Telescope Simulator.MOUNT_TYPE is write-only Telescope Simulator.SIM_PIER_SIDE is write-only Telescope Simulator.MOUNT_MODEL is write-only Telescope Simulator.MOUNT_AXES.PRIMARY=0 Telescope Simulator.MOUNT_AXES.SECONDARY=0 Telescope Simulator.FLIP_HA is write-only Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator Telescope Simulator.DOME_POLICY.DOME_IGNORED=On Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10 Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10 Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120 Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900 Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky Telescope Simulator.MOUNT_TYPE is write-only Telescope Simulator.SIM_PIER_SIDE is write-only Telescope Simulator.MOUNT_MODEL is write-only Telescope Simulator.MOUNT_AXES.PRIMARY=0 Telescope Simulator.MOUNT_AXES.SECONDARY=0 Telescope Simulator.FLIP_HA is write-only

libcamera: not detected

libcamera packages ii libcamera-apps 1.2.1-1 armhf libcamera-apps ii libcamera-tools 0~git20230720+bde9b04f-1 armhf complex camera support library (tools) ii libcamera0:armhf 0~git20230720+bde9b04f-1 armhf complex camera support library

libcamera cameras libcamera-hello: /usr/bin/libcamera-hello No cameras available!

python packages ii libpython3-dev:armhf 3.9.2-3 armhf header files and a static library for Python (default) ii libpython3-stdlib:armhf 3.9.2-3 armhf interactive high-level object-oriented language (default python3 version) ii libpython3.9:armhf 3.9.2-1+rpi1 armhf Shared Python runtime library (version 3.9) ii libpython3.9-dev:armhf 3.9.2-1+rpi1 armhf Header files and a static library for Python (v3.9) ii libpython3.9-minimal:armhf 3.9.2-1+rpi1 armhf Minimal subset of the Python language (version 3.9) ii libpython3.9-stdlib:armhf 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (standard library, version 3.9) ii python-apt-common 2.2.1 all Python interface to libapt-pkg (locales) ii python-is-python3 3.9.2-1 all symlinks /usr/bin/python to python3 ii python-pip-whl 20.3.4-4+rpt1+deb11u1 all Python package installer (pip wheels) ii python3 3.9.2-3 armhf interactive high-level object-oriented language (default python3 version) ii python3-appdirs 1.4.4-1 all determining appropriate platform-specific directories (Python 3) ii python3-apt 2.2.1 armhf Python 3 interface to libapt-pkg ii python3-astroid 2.5.1-1 all rebuild a new abstract syntax tree from Python's AST (Python3) ii python3-asttokens 2.0.4-1 all annotate Python asbtract syntax trees with code references (Python 3) ii python3-automationhat 0.2.0 all Python library for the Pimoroni Automation HAT ii python3-blinker 1.4+dfsg1-0.3 all fast, simple object-to-object and broadcast signaling library ii python3-blinkt 0.1.2 all Python library for the Pimoroni Blinkt! ii python3-bs4 4.9.3-1 all error-tolerant HTML parser for Python 3 ii python3-buttonshim 0.0.2 all Python library for the Pimoroni Button SHIM ii python3-cairo:armhf 1.16.2-4+b1 armhf Python3 bindings for the Cairo vector graphics library ii python3-cap1xxx 0.1.3 all python library designed to drive various Microchip CAP1xxx touch ICs. ii python3-certifi 2020.6.20-1 all root certificates for validating SSL certs and verifying TLS hosts (python3) ii python3-cffi-backend:armhf 1.14.5-1 armhf Foreign Function Interface for Python 3 calling C code - runtime ii python3-chardet 4.0.0-1 all universal character encoding detector for Python3 ii python3-click 7.1.2-1 all Wrapper around optparse for command line utilities - Python 3.x ii python3-colorama 0.4.4-1 all Cross-platform colored terminal text in Python - Python 3.x ii python3-colorzero 1.1 all Construct, convert, and manipulate colors in a Pythonic manner. ii python3-cryptography 3.3.2-1 armhf Python library exposing cryptographic recipes and primitives (Python 3) ii python3-cups:armhf 2.0.1-4+b1 armhf Python3 bindings for CUPS ii python3-cupshelpers 1.5.14-1 all Python utility modules around the CUPS printing system ii python3-dbus 1.2.16-5 armhf simple interprocess messaging system (Python 3 interface) ii python3-debconf 1.5.77 all interact with debconf from Python 3 ii python3-dev 3.9.2-3 armhf header files and a static library for Python (default) ii python3-distlib 0.3.2+really+0.3.1-0.1 all low-level components of python distutils2/packaging ii python3-distro 1.5.0-1 all Linux OS platform information API ii python3-distutils 3.9.2-1 all distutils package for Python 3.x ii python3-docutils 0.16+dfsg-4 all text processing system for reStructuredText (implemented in Python 3) ii python3-drumhat 0.1.0 all Python library for the Pimoroni Drum HAT. ii python3-envirophat 1.0.0 all Python library for the Pimoroni Enviro pHAT. ii python3-explorerhat 0.4.2 all python library designed to control the Explorer HAT and pHAT. ii python3-filelock 3.0.12-2 all platform independent file locking module ii python3-flask 1.1.2-2+deb11u1 all micro web framework based on Werkzeug and Jinja2 - Python 3.x ii python3-fourletterphat 0.1.0 all python library for the Pimoroni Four Letter pHAT ii python3-gi 3.38.0-2 armhf Python 3 bindings for gobject-introspection libraries ii python3-gi-cairo 3.38.0-2 armhf Python 3 Cairo bindings for the GObject library ii python3-gpiozero 1.6.2-1 all Simple API for controlling devices attached to a Pi's GPIO pins. ii python3-html5lib 1.1-3 all HTML parser/tokenizer based on the WHATWG HTML5 specification ii python3-idna 2.10-1 all Python IDNA2008 (RFC 5891) handling (Python 3) ii python3-importlib-metadata 1.6.0-2 all library to access the metadata for a Python package - Python 3.x ii python3-isort 5.6.4-1 all library for sorting Python imports (Python 3) ii python3-itsdangerous 1.1.0-3 all Various helpers to pass trusted data to untrusted environment - Python 3.x ii python3-jedi 0.18.0-1 all autocompletion tool for Python 3 ii python3-jinja2 2.11.3-1 all small but fast and easy to use stand-alone template engine ii python3-jwt 1.7.1-2 all Python 3 implementation of JSON Web Token ii python3-lazy-object-proxy 1.5.2-1 armhf Python 3 fast and thorough lazy object proxy ii python3-ldb 2:2.2.3-2~deb11u2 armhf Python 3 bindings for LDB ii python3-lib2to3 3.9.2-1 all Interactive high-level object-oriented language (lib2to3) ii python3-logilab-common 1.8.1-1 all useful miscellaneous modules used by Logilab projects (Python3) ii python3-lxml:armhf 4.6.3+dfsg-0.1+deb11u1 armhf pythonic binding for the libxml2 and libxslt libraries ii python3-markupsafe 1.1.1-1+b1 armhf HTML/XHTML/XML string library for Python 3 ii python3-mccabe 0.6.1-3 all Python code complexity checker (Python 3) ii python3-microdotphat 0.2.1 all Python library for the Pimoroni Micro Dot pHAT. ii python3-minimal 3.9.2-3 armhf minimal subset of the Python language (default python3 version) ii python3-more-itertools 4.2.0-3 all library with routines for operating on iterables, beyond itertools (Python 3) ii python3-mote 0.0.4 all python library designed to control Mote. ii python3-motephat 0.0.3 all Python library for the Pimoroni Mote pHAT ii python3-mypy 0.812-1 armhf public modules for mypy (Python 3) ii python3-mypy-extensions 0.4.3-2 all Experimental type system extensions for mypy typechecker (Python 3) ii python3-numpy 1:1.19.5-1 armhf Fast array facility to the Python 3 language ii python3-oauthlib 3.1.0-2 all generic, spec-compliant implementation of OAuth for Python3 ii python3-olefile 0.46-3 all Python module to read/write MS OLE2 files ii python3-openssl 20.0.1-1 all Python 3 wrapper around the OpenSSL library ii python3-pantilthat 0.0.7 all Python library for the Pimoroni Pan-Tilt HAT ii python3-parso 0.8.1-1 all Python parser that supports error recovery - Python 3.X ii python3-pexpect 4.8.0-2 all Python 3 module for automating interactive applications ii python3-pgzero 1.2.post4+dfsg-2 all Zero-boilerplate games programming framework based on Pygame (Python 3) ii python3-phatbeat 0.1.1 all Python library for the Pimoroni pHAT BEAT. ii python3-pianohat 0.1.0 all Python library for the Pimoroni Piano HAT. ii python3-picamera 1.13 armhf Pure Python interface to the Raspberry Pi's camera module. ii python3-piglow 1.2.5 all Python library for the Pimoroni PiGlow. ii python3-pigpio 1.79-1+rpt1 all Python module which talks to the pigpio daemon (Python 3) ii python3-pil:armhf 8.1.2+dfsg-0.3+deb11u1 armhf Python Imaging Library (Python3) ii python3-pip 20.3.4-4+rpt1+deb11u1 all Python package installer ii python3-pkg-resources 52.0.0-4 all Package Discovery and Resource Access using pkg_resources ii python3-psutil 5.8.0-1 armhf module providing convenience functions for managing processes (Python3) ii python3-ptyprocess 0.7.0-1 all Run a subprocess in a pseudo terminal from Python 3 ii python3-pygame 1.9.6+dfsg-4+b1 armhf SDL bindings for games development (Python 3) ii python3-pygments 2.7.1+dfsg-2.1 all syntax highlighting package written in Python 3 ii python3-pyinotify 0.9.6-1.3 all simple Linux inotify Python bindings ii python3-rainbowhat 0.1.0 all Python library for the Pimoroni Rainbow HAT ii python3-renderpm:armhf 3.5.59-2 armhf python low level render interface ii python3-reportlab 3.5.59-2 all ReportLab library to create PDF documents using Python3 ii python3-reportlab-accel:armhf 3.5.59-2 armhf C coded extension accelerator for the ReportLab Toolkit ii python3-requests 2.25.1+dfsg-2 all elegant and simple HTTP library for Python3, built for human beings ii python3-requests-oauthlib 1.0.0-1.1 all module providing OAuthlib auth support for requests (Python 3) ii python3-responses 0.12.1-1 all Utility library for mocking out the requests Python 3 library ii python3-roman 2.0.0-5 all module for generating/analyzing Roman numerals for Python 3 ii python3-rpi.gpio 0.7.0-0.2+b1 armhf Module to control Raspberry Pi GPIO channels (Python 3) ii python3-rtimulib 7.2.1-6 armhf Versatile C++ and Python 9-dof, 10-dof and 11-dof IMU library (Python 3) ii python3-scrollphat 0.0.7 all python library designed to control Scroll pHAT. ii python3-scrollphathd 1.2.1 all Python library for the Pimoroni Scroll pHAT HD. ii python3-send2trash 1.6.0~b1+git20210122.2eb3242-1 all Python module for sending file to trash natively ii python3-sense-hat 2.6.0-1 all Sense HAT python library (Python 3) ii python3-serial 3.5~b0-1 all pyserial - module encapsulating access for the serial port ii python3-setuptools 52.0.0-4 all Python3 Distutils Enhancements ii python3-simplejson 3.17.2-1 armhf simple, fast, extensible JSON encoder/decoder for Python 3.x ii python3-six 1.16.0-2 all Python 2 and 3 compatibility library (Python 3 interface) ii python3-skywriter 0.0.7 all python library designed to control Skywriter. ii python3-smbc 1.0.23-1+b1 armhf Python 3 bindings for the Samba client library ii python3-smbus:armhf 4.2-1+b1 armhf Python 3 bindings for Linux SMBus access through i2c-dev ii python3-sn3218 1.2.7 all python library to help control the SN3218 18-channel PWM LED driver. ii python3-soupsieve 2.2.1-1 all modern CSS selector implementation for BeautifulSoup (Python 3) ii python3-spidev 20200602~200721-1 armhf Bindings for Linux SPI access through spidev (Python 3) ii python3-talloc:armhf 2.3.1-2+b1 armhf hierarchical pool based memory allocator - Python3 bindings ii python3-tk:armhf 3.9.2-1 armhf Tkinter - Writing Tk applications with Python 3.x ii python3-toml 0.10.1-1 all library for Tom's Obvious, Minimal Language - Python 3.x ii python3-touchphat 0.0.1 all python library designed to control Touch pHAT ii python3-twython 3.8.2+dfsg-2 all Pure Python3 wrapper for the Twitter API ii python3-typed-ast 1.4.2-1 armhf AST with PEP 484 type comments support ii python3-typing-extensions 3.7.4.3-1 all Backported and Experimental Type Hints for Python ii python3-unicornhathd 0.0.4 all Python library for the Pimoroni Unicorn HAT HD. ii python3-urllib3 1.26.5-1~exp1 all HTTP library with thread-safe connection pooling for Python3 ii python3-venv 3.9.2-3 armhf venv module for python3 (default python3 version) ii python3-virtualenv 20.4.0+ds-2+deb11u1 all Python virtual environment creator ii python3-webencodings 0.5.1-2 all Python implementation of the WHATWG Encoding standard ii python3-werkzeug 1.0.1+dfsg1-2+deb11u1 all collection of utilities for WSGI applications (Python 3.x) ii python3-wheel 0.34.2-1 all built-package format for Python ii python3-wrapt 1.12.1-4+b1 armhf decorators, wrappers and monkey patching. - Python 3.x ii python3-zipp 1.0.0-3 all pathlib-compatible Zipfile object wrapper - Python 3.x ii python3.9 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (version 3.9) ii python3.9-dev 3.9.2-1+rpi1 armhf Header files and a static library for Python (v3.9) ii python3.9-minimal 3.9.2-1+rpi1 armhf Minimal subset of the Python language (version 3.9) ii python3.9-venv 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (pyvenv binary, version 3.9)

Detected indi-allsky virtualenv virtualenv python: Python 3.9.2 virtualenv PATH: /home/pi/indi-allsky/virtualenv/indi-allsky/bin:/usr/local/bin:/usr/bin:/bin virtualenv python modules alembic==1.11.1 apache-libcloud==3.7.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 astroalign==2.4.1 astropy==5.1 astropy-healpix==0.6 astroscrappy==1.1.0 bcrypt==3.2.2 blinker==1.6.2 boto3==1.26.80 botocore==1.29.80 Bottleneck==1.3.5 cachetools==5.3.2 ccdproc==2.3.1 certifi==2023.7.22 cffi==1.15.0 charset-normalizer==3.0.1 circuitbreaker==1.4.0 click==8.1.3 cryptography==41.0.7 Cython==0.29.34 dbus-python==1.2.18 ephem==4.1.3 Flask==3.0.0 Flask-Login==0.6.3 Flask-Migrate==4.0.4 Flask-SQLAlchemy==3.0.4 Flask-WTF==1.1.1 google-api-core==2.12.0 google-api-python-client==2.112.0 google-auth==2.23.4 google-auth-httplib2==0.2.0 google-auth-oauthlib==1.2.0 google-cloud-core==2.3.3 google-cloud-storage==2.13.0 google-crc32c==1.5.0 google-resumable-media==2.6.0 googleapis-common-protos==1.61.0 gunicorn==21.2.0 httplib2==0.22.0 idna==3.4 imageio==2.19.3 imageio-ffmpeg==0.4.7 importlib-metadata==4.12.0 inotify==0.2.10 is-safe-url==1.0 itsdangerous==2.1.2 Jinja2==3.1.2 jmespath==1.0.1 lxml==4.9.3 Mako==1.2.0 MarkupSafe==2.1.1 mysql-connector-python==8.0.32 networkx==2.8.4 nose==1.3.7 numpy==1.22.4 oauthlib==3.2.2 oci==2.118.0 opencv-python-headless==4.6.0.66 packaging==21.3 paho-mqtt==1.6.1 paramiko==2.11.0 passlib==1.7.4 piexif==1.1.3 Pillow==9.1.1 pkg_resources==0.0.0 prettytable==3.6.0 protobuf==3.20.3 psutil==5.9.1 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycparser==2.21 pycurl==7.45.1 pyerfa==2.0.0.1 pygifsicle==1.0.5 pyindi-client==1.9.1 PyMySQL==1.0.2 PyNaCl==1.5.0 pyOpenSSL==23.3.0 pyparsing==3.0.9 python-dateutil==2.8.2 pytz==2023.3.post1 PyWavelets==1.3.0 PyYAML==6.0 rawpy @ git+https://github.com/letmaik/rawpy.git@6c8f38603861f2f2d4d59f00b8e25ec0e6b5aa1e reproject==0.8 requests==2.28.2 requests-oauthlib==1.3.1 requests-toolbelt==1.0.0 rsa==4.9 s3transfer==0.6.0 scikit-image==0.19.3 scipy==1.11.3 semantic-version==2.10.0 sep==1.2.1 setuptools-rust==1.4.1 shapely==2.0.1 six==1.16.0 SQLAlchemy==1.4.39 tifffile==2022.5.4 typing_extensions==4.3.0 uritemplate==4.1.1 urllib3==1.26.14 wcwidth==0.2.6 Werkzeug==3.0.1 WTForms==3.0.1 zipp==3.8.0

#################################

end support info

################################# pi@allskypi:~/indi-allsky $

aaronwmorris commented 7 months ago
ii python3-flask 1.1.2-2+deb11u1 all micro web framework based on Werkzeug and Jinja2 - Python 3.x

I think your local system version of flask is somehow getting precedence from the version that is installed in the indi-allsky virtualenv.

Try running sudo apt-get remove python3-flask and then run setup.sh. There is still a chance there is another flask floating around on your system, so let me know

herseyc commented 7 months ago

Same issue after removing python3-flask. Here is the support_info.sh output:

pi@allskypi:~/indi-allsky $ ./misc/support_info.sh ./misc/support_info.sh: line 49: warning: command substitution: ignored null byte in input #################################

indi-allsky support info

#################################

Distribution: Raspbian Release: 11 Arch: armv7l Bits: 32

CPUs: 4 Memory: 944092 kB

System: Raspberry Pi 3 Model B Rev 1.2

Uptime 12:53:28 up 2:46, 4 users, load average: 0.79, 0.67, 0.28

Filesystems Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 122597728 68484692 49076428 59% / devtmpfs 340460 0 340460 0% /dev tmpfs 472044 0 472044 0% /dev/shm tmpfs 188820 800 188020 1% /run tmpfs 5120 4 5116 1% /run/lock /dev/mmcblk0p1 258095 51409 206687 20% /boot tmpfs 94408 24 94384 1% /run/user/1000

system python: Python 3.9.2

indiserver: /usr/local/bin/indiserver

User info uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),102(systemd-journal),105(input),107(render),109(netdev),117(lpadmin),997(gpio),998(i2c),999(spi)

Process info pi 615 0.0 0.2 8288 2280 ? Ss 10:07 0:00 /usr/local/bin/indiserver indi_simulator_telescope indi_sv305_ccd pi 619 0.0 0.5 32196 5324 ? S 10:07 0:00 indi_simulator_telescope pi 620 0.3 0.5 71516 5172 ? Sl 10:07 0:31 indi_sv305_ccd

USB info Bus 001 Device 004: ID f266:9a0a CKCamera CKCamera Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

USB Permissions 122 0 drwxr-xr-x 3 root root 60 Dec 31 1969 /dev/bus/usb 123 0 drwxr-xr-x 2 root root 120 May 13 2023 /dev/bus/usb/001 142 0 crw-rw-rw- 1 root root 189, 3 Jan 6 10:06 /dev/bus/usb/001/004 135 0 crw-rw-r-- 1 root root 189, 2 Jan 6 10:06 /dev/bus/usb/001/003 134 0 crw-rw-r-- 1 root root 189, 1 Jan 6 10:06 /dev/bus/usb/001/002 124 0 crw-rw-r-- 1 root root 189, 0 Jan 6 10:06 /dev/bus/usb/001/001

Module info Module Size Used by rfcomm 49152 4 cmac 16384 2 algif_hash 16384 1 aes_arm_bs 24576 2 crypto_simd 16384 1 aes_arm_bs cryptd 24576 2 crypto_simd algif_skcipher 16384 1 af_alg 28672 6 algif_hash,algif_skcipher bnep 20480 2 hci_uart 40960 1 btbcm 20480 1 hci_uart bluetooth 503808 31 hci_uart,bnep,btbcm,rfcomm ecdh_generic 16384 1 bluetooth ecc 40960 1 ecdh_generic 8021q 32768 0 garp 16384 1 8021q stp 16384 1 garp llc 16384 2 garp,stp brcmfmac 335872 0 vc4 315392 3 snd_soc_hdmi_codec 16384 1 brcmutil 20480 1 brcmfmac drm_display_helper 16384 1 vc4 cec 49152 1 vc4 drm_dma_helper 20480 1 vc4 sha256_generic 16384 0 drm_kms_helper 188416 3 drm_dma_helper,vc4 cfg80211 811008 1 brcmfmac snd_soc_core 253952 2 vc4,snd_soc_hdmi_codec snd_compress 20480 1 snd_soc_core snd_pcm_dmaengine 20480 1 snd_soc_core rfkill 32768 6 bluetooth,cfg80211 syscopyarea 16384 1 drm_kms_helper sysfillrect 16384 1 drm_kms_helper sysimgblt 16384 1 drm_kms_helper raspberrypi_hwmon 16384 0 fb_sys_fops 16384 1 drm_kms_helper bcm2835_codec 45056 0 v4l2_mem2mem 40960 1 bcm2835_codec i2c_bcm2835 16384 0 bcm2835_isp 32768 0 bcm2835_v4l2 45056 0 bcm2835_mmal_vchiq 36864 3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2 videobuf2_dma_contig 20480 2 bcm2835_isp,bcm2835_codec videobuf2_vmalloc 16384 1 bcm2835_v4l2 videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc snd_bcm2835 24576 1 videobuf2_v4l2 32768 4 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem snd_pcm 118784 5 snd_compress,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_bcm2835,snd_soc_core videobuf2_common 65536 8 bcm2835_isp,bcm2835_codec,videobuf2_dma_contig,videobuf2_vmalloc,videobuf2_memops,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd_timer 36864 1 snd_pcm videodev 266240 6 bcm2835_isp,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd 94208 8 snd_compress,snd_soc_hdmi_codec,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm vc_sm_cma 32768 2 bcm2835_isp,bcm2835_mmal_vchiq mc 53248 6 bcm2835_isp,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2 uio_pdrv_genirq 16384 0 fixed 16384 0 uio 24576 1 uio_pdrv_genirq drm 544768 6 drm_dma_helper,vc4,drm_display_helper,drm_kms_helper i2c_dev 16384 0 fuse 131072 3 drm_panel_orientation_quirks 16384 1 drm backlight 20480 1 drm ip_tables 28672 0 x_tables 36864 1 ip_tables ipv6 520192 47

git status On branch main Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

git log commit 610e3469610c8bdfea6d3a2aae732a22c7942d28 Merge: 07cdf75e 85180592 Author: Aaron W Morris aaron@aarmor.net Date: Fri Jan 5 12:20:34 2024 -0600

Merge pull request #1090 from aaronwmorris/dev

script to change only the camera driver

indi version: 2.0.3

indi packages

Detected indi properties looking for .. Connected to localhost on port 7624 Queried properties from Telescope Simulator.CONNECTION.CONNECT=Off Telescope Simulator.CONNECTION.DISCONNECT=On Telescope Simulator.DRIVER_INFO.DRIVER_NAME=Telescope Simulator Telescope Simulator.DRIVER_INFO.DRIVER_EXEC=indi_simulator_telescope Telescope Simulator.DRIVER_INFO.DRIVER_VERSION=1.0 Telescope Simulator.DRIVER_INFO.DRIVER_INTERFACE=5 Telescope Simulator.POLLING_PERIOD.PERIOD_MS=250 Telescope Simulator.DEBUG.ENABLE=Off Telescope Simulator.DEBUG.DISABLE=On Telescope Simulator.CONFIG_PROCESS.CONFIG_LOAD=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_SAVE=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_DEFAULT=Off Telescope Simulator.CONFIG_PROCESS.CONFIG_PURGE=Off Telescope Simulator.CONNECTION_MODE.CONNECTION_SERIAL=On Telescope Simulator.CONNECTION_MODE.CONNECTION_TCP=Off Telescope Simulator.DEVICE_PORT.PORT=/dev/ttyUSB0 Telescope Simulator.DEVICE_BAUD_RATE.9600=On Telescope Simulator.DEVICE_BAUD_RATE.19200=Off Telescope Simulator.DEVICE_BAUD_RATE.38400=Off Telescope Simulator.DEVICE_BAUD_RATE.57600=Off Telescope Simulator.DEVICE_BAUD_RATE.115200=Off Telescope Simulator.DEVICE_BAUD_RATE.230400=Off Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_ENABLED=On Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_DISABLED=Off Telescope Simulator.DEVICE_PORT_SCAN.Scan Ports=Off Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator SVBONY SV305 0.CONNECTION.CONNECT=Off SVBONY SV305 0.CONNECTION.DISCONNECT=On SVBONY SV305 0.DRIVER_INFO.DRIVER_NAME=SVBONY SV305 SVBONY SV305 0.DRIVER_INFO.DRIVER_EXEC=indi_sv305_ccd SVBONY SV305 0.DRIVER_INFO.DRIVER_VERSION=1.3 SVBONY SV305 0.DRIVER_INFO.DRIVER_INTERFACE=2 SVBONY SV305 0.POLLING_PERIOD.PERIOD_MS=1000 SVBONY SV305 0.CONFIG_PROCESS.CONFIG_LOAD=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_SAVE=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_DEFAULT=Off SVBONY SV305 0.CONFIG_PROCESS.CONFIG_PURGE=Off SVBONY SV305 0.DEBUG.ENABLE=Off SVBONY SV305 0.DEBUG.DISABLE=On SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator SVBONY SV305 0.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM Telescope Simulator.DOME_POLICY.DOME_IGNORED=On Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10 Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10 Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120 Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900 Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky Telescope Simulator.MOUNT_TYPE is write-only Telescope Simulator.SIM_PIER_SIDE is write-only Telescope Simulator.MOUNT_MODEL is write-only Telescope Simulator.MOUNT_AXES.PRIMARY=0 Telescope Simulator.MOUNT_AXES.SECONDARY=0 Telescope Simulator.FLIP_HA is write-only Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator Telescope Simulator.DOME_POLICY.DOME_IGNORED=On Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10 Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10 Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120 Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900 Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky Telescope Simulator.MOUNT_TYPE is write-only Telescope Simulator.SIM_PIER_SIDE is write-only Telescope Simulator.MOUNT_MODEL is write-only Telescope Simulator.MOUNT_AXES.PRIMARY=0 Telescope Simulator.MOUNT_AXES.SECONDARY=0 Telescope Simulator.FLIP_HA is write-only

libcamera: not detected

libcamera packages ii libcamera-apps 1.2.1-1 armhf libcamera-apps ii libcamera-tools 0~git20230720+bde9b04f-1 armhf complex camera support library (tools) ii libcamera0:armhf 0~git20230720+bde9b04f-1 armhf complex camera support library

libcamera cameras libcamera-hello: /usr/bin/libcamera-hello No cameras available!

python packages ii libpython3-dev:armhf 3.9.2-3 armhf header files and a static library for Python (default) ii libpython3-stdlib:armhf 3.9.2-3 armhf interactive high-level object-oriented language (default python3 version) ii libpython3.9:armhf 3.9.2-1+rpi1 armhf Shared Python runtime library (version 3.9) ii libpython3.9-dev:armhf 3.9.2-1+rpi1 armhf Header files and a static library for Python (v3.9) ii libpython3.9-minimal:armhf 3.9.2-1+rpi1 armhf Minimal subset of the Python language (version 3.9) ii libpython3.9-stdlib:armhf 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (standard library, version 3.9) ii python-apt-common 2.2.1 all Python interface to libapt-pkg (locales) ii python-is-python3 3.9.2-1 all symlinks /usr/bin/python to python3 ii python-pip-whl 20.3.4-4+rpt1+deb11u1 all Python package installer (pip wheels) ii python3 3.9.2-3 armhf interactive high-level object-oriented language (default python3 version) ii python3-appdirs 1.4.4-1 all determining appropriate platform-specific directories (Python 3) ii python3-apt 2.2.1 armhf Python 3 interface to libapt-pkg ii python3-astroid 2.5.1-1 all rebuild a new abstract syntax tree from Python's AST (Python3) ii python3-asttokens 2.0.4-1 all annotate Python asbtract syntax trees with code references (Python 3) ii python3-automationhat 0.2.0 all Python library for the Pimoroni Automation HAT ii python3-blinker 1.4+dfsg1-0.3 all fast, simple object-to-object and broadcast signaling library ii python3-blinkt 0.1.2 all Python library for the Pimoroni Blinkt! ii python3-bs4 4.9.3-1 all error-tolerant HTML parser for Python 3 ii python3-buttonshim 0.0.2 all Python library for the Pimoroni Button SHIM ii python3-cairo:armhf 1.16.2-4+b1 armhf Python3 bindings for the Cairo vector graphics library ii python3-cap1xxx 0.1.3 all python library designed to drive various Microchip CAP1xxx touch ICs. ii python3-certifi 2020.6.20-1 all root certificates for validating SSL certs and verifying TLS hosts (python3) ii python3-cffi-backend:armhf 1.14.5-1 armhf Foreign Function Interface for Python 3 calling C code - runtime ii python3-chardet 4.0.0-1 all universal character encoding detector for Python3 ii python3-click 7.1.2-1 all Wrapper around optparse for command line utilities - Python 3.x ii python3-colorama 0.4.4-1 all Cross-platform colored terminal text in Python - Python 3.x ii python3-colorzero 1.1 all Construct, convert, and manipulate colors in a Pythonic manner. ii python3-cryptography 3.3.2-1 armhf Python library exposing cryptographic recipes and primitives (Python 3) ii python3-cups:armhf 2.0.1-4+b1 armhf Python3 bindings for CUPS ii python3-cupshelpers 1.5.14-1 all Python utility modules around the CUPS printing system ii python3-dbus 1.2.16-5 armhf simple interprocess messaging system (Python 3 interface) ii python3-debconf 1.5.77 all interact with debconf from Python 3 ii python3-dev 3.9.2-3 armhf header files and a static library for Python (default) ii python3-distlib 0.3.2+really+0.3.1-0.1 all low-level components of python distutils2/packaging ii python3-distro 1.5.0-1 all Linux OS platform information API ii python3-distutils 3.9.2-1 all distutils package for Python 3.x ii python3-docutils 0.16+dfsg-4 all text processing system for reStructuredText (implemented in Python 3) ii python3-drumhat 0.1.0 all Python library for the Pimoroni Drum HAT. ii python3-envirophat 1.0.0 all Python library for the Pimoroni Enviro pHAT. ii python3-explorerhat 0.4.2 all python library designed to control the Explorer HAT and pHAT. ii python3-filelock 3.0.12-2 all platform independent file locking module ii python3-fourletterphat 0.1.0 all python library for the Pimoroni Four Letter pHAT ii python3-gi 3.38.0-2 armhf Python 3 bindings for gobject-introspection libraries ii python3-gi-cairo 3.38.0-2 armhf Python 3 Cairo bindings for the GObject library ii python3-gpiozero 1.6.2-1 all Simple API for controlling devices attached to a Pi's GPIO pins. ii python3-html5lib 1.1-3 all HTML parser/tokenizer based on the WHATWG HTML5 specification ii python3-idna 2.10-1 all Python IDNA2008 (RFC 5891) handling (Python 3) ii python3-importlib-metadata 1.6.0-2 all library to access the metadata for a Python package - Python 3.x ii python3-isort 5.6.4-1 all library for sorting Python imports (Python 3) ii python3-itsdangerous 1.1.0-3 all Various helpers to pass trusted data to untrusted environment - Python 3.x ii python3-jedi 0.18.0-1 all autocompletion tool for Python 3 ii python3-jinja2 2.11.3-1 all small but fast and easy to use stand-alone template engine ii python3-jwt 1.7.1-2 all Python 3 implementation of JSON Web Token ii python3-lazy-object-proxy 1.5.2-1 armhf Python 3 fast and thorough lazy object proxy ii python3-ldb 2:2.2.3-2~deb11u2 armhf Python 3 bindings for LDB ii python3-lib2to3 3.9.2-1 all Interactive high-level object-oriented language (lib2to3) ii python3-logilab-common 1.8.1-1 all useful miscellaneous modules used by Logilab projects (Python3) ii python3-lxml:armhf 4.6.3+dfsg-0.1+deb11u1 armhf pythonic binding for the libxml2 and libxslt libraries ii python3-markupsafe 1.1.1-1+b1 armhf HTML/XHTML/XML string library for Python 3 ii python3-mccabe 0.6.1-3 all Python code complexity checker (Python 3) ii python3-microdotphat 0.2.1 all Python library for the Pimoroni Micro Dot pHAT. ii python3-minimal 3.9.2-3 armhf minimal subset of the Python language (default python3 version) ii python3-more-itertools 4.2.0-3 all library with routines for operating on iterables, beyond itertools (Python 3) ii python3-mote 0.0.4 all python library designed to control Mote. ii python3-motephat 0.0.3 all Python library for the Pimoroni Mote pHAT ii python3-mypy 0.812-1 armhf public modules for mypy (Python 3) ii python3-mypy-extensions 0.4.3-2 all Experimental type system extensions for mypy typechecker (Python 3) ii python3-numpy 1:1.19.5-1 armhf Fast array facility to the Python 3 language ii python3-oauthlib 3.1.0-2 all generic, spec-compliant implementation of OAuth for Python3 ii python3-olefile 0.46-3 all Python module to read/write MS OLE2 files ii python3-openssl 20.0.1-1 all Python 3 wrapper around the OpenSSL library ii python3-pantilthat 0.0.7 all Python library for the Pimoroni Pan-Tilt HAT ii python3-parso 0.8.1-1 all Python parser that supports error recovery - Python 3.X ii python3-pexpect 4.8.0-2 all Python 3 module for automating interactive applications ii python3-pgzero 1.2.post4+dfsg-2 all Zero-boilerplate games programming framework based on Pygame (Python 3) ii python3-phatbeat 0.1.1 all Python library for the Pimoroni pHAT BEAT. ii python3-pianohat 0.1.0 all Python library for the Pimoroni Piano HAT. ii python3-picamera 1.13 armhf Pure Python interface to the Raspberry Pi's camera module. ii python3-piglow 1.2.5 all Python library for the Pimoroni PiGlow. ii python3-pigpio 1.79-1+rpt1 all Python module which talks to the pigpio daemon (Python 3) ii python3-pil:armhf 8.1.2+dfsg-0.3+deb11u1 armhf Python Imaging Library (Python3) ii python3-pip 20.3.4-4+rpt1+deb11u1 all Python package installer ii python3-pkg-resources 52.0.0-4 all Package Discovery and Resource Access using pkg_resources ii python3-psutil 5.8.0-1 armhf module providing convenience functions for managing processes (Python3) ii python3-ptyprocess 0.7.0-1 all Run a subprocess in a pseudo terminal from Python 3 ii python3-pygame 1.9.6+dfsg-4+b1 armhf SDL bindings for games development (Python 3) ii python3-pygments 2.7.1+dfsg-2.1 all syntax highlighting package written in Python 3 ii python3-pyinotify 0.9.6-1.3 all simple Linux inotify Python bindings ii python3-rainbowhat 0.1.0 all Python library for the Pimoroni Rainbow HAT ii python3-renderpm:armhf 3.5.59-2 armhf python low level render interface ii python3-reportlab 3.5.59-2 all ReportLab library to create PDF documents using Python3 ii python3-reportlab-accel:armhf 3.5.59-2 armhf C coded extension accelerator for the ReportLab Toolkit ii python3-requests 2.25.1+dfsg-2 all elegant and simple HTTP library for Python3, built for human beings ii python3-requests-oauthlib 1.0.0-1.1 all module providing OAuthlib auth support for requests (Python 3) ii python3-responses 0.12.1-1 all Utility library for mocking out the requests Python 3 library ii python3-roman 2.0.0-5 all module for generating/analyzing Roman numerals for Python 3 ii python3-rpi.gpio 0.7.0-0.2+b1 armhf Module to control Raspberry Pi GPIO channels (Python 3) ii python3-rtimulib 7.2.1-6 armhf Versatile C++ and Python 9-dof, 10-dof and 11-dof IMU library (Python 3) ii python3-scrollphat 0.0.7 all python library designed to control Scroll pHAT. ii python3-scrollphathd 1.2.1 all Python library for the Pimoroni Scroll pHAT HD. ii python3-send2trash 1.6.0~b1+git20210122.2eb3242-1 all Python module for sending file to trash natively ii python3-sense-hat 2.6.0-1 all Sense HAT python library (Python 3) ii python3-serial 3.5~b0-1 all pyserial - module encapsulating access for the serial port ii python3-setuptools 52.0.0-4 all Python3 Distutils Enhancements ii python3-simplejson 3.17.2-1 armhf simple, fast, extensible JSON encoder/decoder for Python 3.x ii python3-six 1.16.0-2 all Python 2 and 3 compatibility library (Python 3 interface) ii python3-skywriter 0.0.7 all python library designed to control Skywriter. ii python3-smbc 1.0.23-1+b1 armhf Python 3 bindings for the Samba client library ii python3-smbus:armhf 4.2-1+b1 armhf Python 3 bindings for Linux SMBus access through i2c-dev ii python3-sn3218 1.2.7 all python library to help control the SN3218 18-channel PWM LED driver. ii python3-soupsieve 2.2.1-1 all modern CSS selector implementation for BeautifulSoup (Python 3) ii python3-spidev 20200602~200721-1 armhf Bindings for Linux SPI access through spidev (Python 3) ii python3-talloc:armhf 2.3.1-2+b1 armhf hierarchical pool based memory allocator - Python3 bindings ii python3-tk:armhf 3.9.2-1 armhf Tkinter - Writing Tk applications with Python 3.x ii python3-toml 0.10.1-1 all library for Tom's Obvious, Minimal Language - Python 3.x ii python3-touchphat 0.0.1 all python library designed to control Touch pHAT ii python3-twython 3.8.2+dfsg-2 all Pure Python3 wrapper for the Twitter API ii python3-typed-ast 1.4.2-1 armhf AST with PEP 484 type comments support ii python3-typing-extensions 3.7.4.3-1 all Backported and Experimental Type Hints for Python ii python3-unicornhathd 0.0.4 all Python library for the Pimoroni Unicorn HAT HD. ii python3-urllib3 1.26.5-1~exp1 all HTTP library with thread-safe connection pooling for Python3 ii python3-venv 3.9.2-3 armhf venv module for python3 (default python3 version) ii python3-virtualenv 20.4.0+ds-2+deb11u1 all Python virtual environment creator ii python3-webencodings 0.5.1-2 all Python implementation of the WHATWG Encoding standard ii python3-werkzeug 1.0.1+dfsg1-2+deb11u1 all collection of utilities for WSGI applications (Python 3.x) ii python3-wheel 0.34.2-1 all built-package format for Python ii python3-wrapt 1.12.1-4+b1 armhf decorators, wrappers and monkey patching. - Python 3.x ii python3-zipp 1.0.0-3 all pathlib-compatible Zipfile object wrapper - Python 3.x ii python3.9 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (version 3.9) ii python3.9-dev 3.9.2-1+rpi1 armhf Header files and a static library for Python (v3.9) ii python3.9-minimal 3.9.2-1+rpi1 armhf Minimal subset of the Python language (version 3.9) ii python3.9-venv 3.9.2-1+rpi1 armhf Interactive high-level object-oriented language (pyvenv binary, version 3.9)

Detected indi-allsky virtualenv virtualenv python: Python 3.9.2 virtualenv PATH: /home/pi/indi-allsky/virtualenv/indi-allsky/bin:/usr/local/bin:/usr/bin:/bin virtualenv python modules alembic==1.11.1 apache-libcloud==3.7.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 astroalign==2.4.1 astropy==5.1 astropy-healpix==0.6 astroscrappy==1.1.0 bcrypt==3.2.2 blinker==1.6.2 boto3==1.26.80 botocore==1.29.80 Bottleneck==1.3.5 cachetools==5.3.2 ccdproc==2.3.1 certifi==2023.7.22 cffi==1.15.0 charset-normalizer==3.0.1 circuitbreaker==1.4.0 click==8.1.3 cryptography==41.0.7 Cython==0.29.34 dbus-python==1.2.18 ephem==4.1.3 Flask==3.0.0 Flask-Login==0.6.3 Flask-Migrate==4.0.4 Flask-SQLAlchemy==3.0.4 Flask-WTF==1.1.1 google-api-core==2.12.0 google-api-python-client==2.112.0 google-auth==2.23.4 google-auth-httplib2==0.2.0 google-auth-oauthlib==1.2.0 google-cloud-core==2.3.3 google-cloud-storage==2.13.0 google-crc32c==1.5.0 google-resumable-media==2.6.0 googleapis-common-protos==1.61.0 gunicorn==21.2.0 httplib2==0.22.0 idna==3.4 imageio==2.19.3 imageio-ffmpeg==0.4.7 importlib-metadata==4.12.0 inotify==0.2.10 is-safe-url==1.0 itsdangerous==2.1.2 Jinja2==3.1.2 jmespath==1.0.1 lxml==4.9.3 Mako==1.2.0 MarkupSafe==2.1.1 mysql-connector-python==8.0.32 networkx==2.8.4 nose==1.3.7 numpy==1.22.4 oauthlib==3.2.2 oci==2.118.0 opencv-python-headless==4.6.0.66 packaging==21.3 paho-mqtt==1.6.1 paramiko==2.11.0 passlib==1.7.4 piexif==1.1.3 Pillow==9.1.1 pkg_resources==0.0.0 prettytable==3.6.0 protobuf==3.20.3 psutil==5.9.1 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycparser==2.21 pycurl==7.45.1 pyerfa==2.0.0.1 pygifsicle==1.0.5 pyindi-client==1.9.1 PyMySQL==1.0.2 PyNaCl==1.5.0 pyOpenSSL==23.3.0 pyparsing==3.0.9 python-dateutil==2.8.2 pytz==2023.3.post1 PyWavelets==1.3.0 PyYAML==6.0 rawpy @ git+https://github.com/letmaik/rawpy.git@6c8f38603861f2f2d4d59f00b8e25ec0e6b5aa1e reproject==0.8 requests==2.28.2 requests-oauthlib==1.3.1 requests-toolbelt==1.0.0 rsa==4.9 s3transfer==0.6.0 scikit-image==0.19.3 scipy==1.11.3 semantic-version==2.10.0 sep==1.2.1 setuptools-rust==1.4.1 shapely==2.0.1 six==1.16.0 SQLAlchemy==1.4.39 tifffile==2022.5.4 typing_extensions==4.3.0 uritemplate==4.1.1 urllib3==1.26.14 wcwidth==0.2.6 Werkzeug==3.0.1 WTForms==3.0.1 zipp==3.8.0

#################################

end support info

#################################

herseyc commented 7 months ago

All was well till I tried to upgrade to your latest build this morning. Not sure how far behind I was but nothing has really changed other than the new indi-allsky stuff which I pulled down this morning.

aaronwmorris commented 7 months ago

You can try to apply the database migrations manually. This is basically what the setup script is doing.

https://github.com/aaronwmorris/indi-allsky/wiki/Database-migrations

source virtualenv/indi-allsky/bin/activate

flask db revision --autogenerate
flask db upgrade head
herseyc commented 7 months ago

I receive the same error when I do that as well.

Hersey

herseyc commented 7 months ago

(indi-allsky) pi@allskypi:~/indi-allsky $ flask db revision --autogenerate Error: While importing 'app', an ImportError was raised:

Traceback (most recent call last): File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/cli.py", line 219, in locate_app import(module_name) File "/home/pi/indi-allsky/app.py", line 3, in from indi_allsky.flask import create_app File "/home/pi/indi-allsky/indi_allsky/flask/init.py", line 9, in from flask_wtf.csrf import CSRFProtect File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/init.py", line 4, in from .recaptcha import Recaptcha File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/init.py", line 1, in from .fields import RecaptchaField File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/fields.py", line 3, in from . import widgets File "/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask_wtf/recaptcha/widgets.py", line 2, in from flask import Markup ImportError: cannot import name 'Markup' from 'flask' (/home/pi/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/init.py)

Usage: flask [OPTIONS] COMMAND [ARGS]... Try 'flask --help' for help.

Error: No such command 'db'. (indi-allsky) pi@allskypi:~/indi-allsky $

aaronwmorris commented 7 months ago

Try upgrading your python modules:

source virtualenv/indi-allsky/bin/activate

pip install -r requirements/requirements_latest.txt --upgrade
herseyc commented 7 months ago

OK that took a good bit, but looks like we are back up and running now. Thanks!

herseyc commented 7 months ago

Appreciate all the help!