epiframe on raspberry pi 4 TypeError: display() takes 2 positional arguments but 3 were given - raspberry-pi4

I have been working on this project and I need some help. This project is called epiframe and it works with the waveshare epaper. here is the problem I am running into. When I launch the program, I get a error. If I do a test with no image, it works fine. here is the error I am getting. Any help would be greatly appreciated.
I have been working on this project and I need some help. This project is called epiframe and it works with the waveshare epaper. here is the problem I am running into. When I launch the program, I get a error. If I do a test with no image, it works fine. here is the error I am getting. Any help would be greatly appreciated.
pi#raspberrypi:~/ePiframe $ sudo ./ePiframe.py
pi#raspberrypi:~/ePiframe $ sudo ./ePiframe.py
ePiframe - e-Paper Raspberry Pi Photo Frame
2023-01-25 10:42:47 : Verifying configuration...
2023-01-25 10:42:47 : OK!
2023-01-25 10:42:47 : Checking sources...
2023-01-25 10:42:47 : OK!
2023-01-25 10:42:47 : Getting data from local source...
2023-01-25 10:42:47 : Success!
2023-01-25 10:42:47 : Found 1 photos
2023-01-25 10:42:47 : Reading last photo index file...
2023-01-25 10:42:47 : Success!
2023-01-25 10:42:47 : Filtering photos...
2023-01-25 10:42:47 : and sorting ...
2023-01-25 10:42:47 : Filtered 1 photos
2023-01-25 10:42:47 : Photo to show:
id /home/pi/Pictures/albums/dig10k_penguin.bmp
creationTime 2023-01-25T02:44:53Z
source Local
Name: 0, dtype: object
2023-01-25 10:42:47 : Getting next photo...
2023-01-25 10:42:47 : Success!
2023-01-25 10:42:47 : Processing the photo...
/usr/bin/convert [] -limit thread 1 ( +clone -background white -gravity center -sample 800x480 -extent 800x480 -thumbnail 200x120 -write ./origphoto_thumb.jpg +delete ) ( +clone -sample 800x480 -brightness-contrast 0,10 -background white -gravity center -extent 800x480 -write ./photo.bmp ) ( +clone -thumbnail 200x120 -write ./photo_thumb.jpg ) NULL:
2023-01-25 10:42:47 : Success!
2023-01-25 10:42:47 : Sending to display...
2023-01-25 10:42:47 : Error sending photo to display: display() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/home/pi/ePiframe/./ePiframe.py", line 909, in
main()
File "/home/pi/ePiframe/./ePiframe.py", line 604, in main
convert_file(config, filename, logging, photo, plugins_manager)
File "/home/pi/ePiframe/./ePiframe.py", line 672, in convert_file
send_to_display(config, logging, target_filename)
File "/home/pi/ePiframe/./ePiframe.py", line 681, in send_to_display
display_manager.show_image(target_filename)
File "/home/pi/ePiframe/modules/displaymanager.py", line 45, in show_image
self.__display.show_image(photo_path)
File "/home/pi/ePiframe/misc/wavesharedisplay.py", line 60, in show_image
self.__epd.display(
TypeError: display() takes 2 positional arguments but 3 were given
I am a newbie at this so I am limited to what I know. I've tried running a config check and that comes out good to go. But if I send a picture to the epaper it gets a error

Related

xl create: unable to retrieve domain configuration error

I'm working with Xen for the first time, using Alpine Linux as Dom0.
I'm following the Alpine Linux guide to set up a PV guest in Xen, and I'm receiving the following error:
alpine-xen:~# xl create -f /etc/xen/a1.cfg -c
libxl: error: libxl_mem.c:202:libxl_set_memory_target: unable to retrieve domain configuration: No such file or directory
failed to free memory for the domain
I could not find any details about this error online. Could someone help me out with this?
Below are my outputs for xl list and xl info:
alpine-xen:~# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 64622 24 r----- 10.8
alpine-xen:~# xl info
host : alpine-xen
release : 4.19.80-0-vanilla
version : #1-Alpine SMP Fri Oct 18 11:27:53 UTC 2019
machine : x86_64
nr_cpus : 24
max_cpu_id : 31
nr_nodes : 1
cores_per_socket : 12
threads_per_core : 2
cpu_mhz : 3835.933
hw_caps : 178bf3ff:f6d8320b:2e500800:244037ff:0000000f:219c91a9:00400004:00000500
virt_caps : pv hvm
total_memory : 65466
free_memory : 128
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 12
xen_extra : .1
xen_version : 4.12.1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit2
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder no-real-mode edd=off
cc_compiler : gcc (Alpine 8.3.0) 8.3.0
cc_compile_by : buildozer
cc_compile_domain : [unknown]
cc_compile_date : Tue Aug 13 14:24:26 UTC 2019
build_id : f004ef86de8db93d5fbbb90e9b5fa21a70823d67
xend_config_format : 4
looks like you forgot to restrict the memory for dom0 on boot.
Depending on our hardware we need 256M up to 2048M for dom0.
you need to set it in these two files:
/boot/extlinux.conf
...
LABEL xen-vanilla
MENU LABEL Xen + Linux vanilla
COM32 mboot.c32
APPEND xen.gz dom0_mem=256M --- vmlinuz-vanilla root=...
...
and
/etc/update-extlinux.conf
...
xen_opts=dom0_mem=256M
...

http service not starting error 1009

I was trying to print a document for one of my games but the page viewer couldn't see the printer so I checked the print spooler service
C:\WINDOWS\system32>sc qc spooler
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\System32\spoolsv.exe
LOAD_ORDER_GROUP : SpoolerGroup
TAG : 0
DISPLAY_NAME : Print Spooler
DEPENDENCIES : RPCSS
: http
SERVICE_START_NAME : LocalSystem
C:\WINDOWS\system32>sc query spooler
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1068 (0x42c)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
And tried to start it, then this happened
C:\WINDOWS\system32>net start spooler
System error 1068 has occurred.
The dependency service or group failed to start.
C:\WINDOWS\system32>
Ok so I checked the dependencies
C:\WINDOWS\system32>sc qc rpcss
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\system32\svchost.exe -k rpcss
LOAD_ORDER_GROUP : COM Infrastructure
TAG : 0
DISPLAY_NAME : Remote Procedure Call (RPC)
DEPENDENCIES : RpcEptMapper
: DcomLaunch
SERVICE_START_NAME : NT AUTHORITY\NetworkService
C:\WINDOWS\system32>sc query rpcss
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
Ok RPCSS is good, next one
C:\WINDOWS\system32>sc qc http && sc query http
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
START_TYPE : 3 DEMAND_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : system32\drivers\HTTP.sys
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : HTTP Service
DEPENDENCIES :
SERVICE_START_NAME :
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1009 (0x3f1)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
OK seeing it stopped I tried to start it again
C:\WINDOWS\system32>net start http
System error 1009 has occurred.
The configuration registry database is corrupt.
C:\WINDOWS\system32>
So I run SFC to try and fix this BUT...
C:\WINDOWS\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\WINDOWS\system32>
A fat lot of help this is, it can't even fix something so inherently wrong...
So this is where I ask the community for help, I don't know what to do past this point. Help is very much appreciated.
In my case, I had a sub-key under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\SslBindingInfo that was missing information. i.e. all the keys such as 0.0.0.0:40015 have values like "AppId","DefaultFlags", etc.
I had one that had no values under this key. I deleted that "empty" key and HTTP was able to start up.

Very slow artifactory query language

I've been trying to implement a artifact cleanup process based on https://www.jfrog.com/blog/advanced-cleanup-using-artifactory-query-language-aql/ ... but found that the AQL is really slow. i've seen queries still running after 24 hours with the server pinned at 100% cpu.
Using simple curl :
time curl -vv -u user:password -d "${query}" "http://server:8081/artifactory/api/search/aql"
I've measured :
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": {"$ne" : "true"}, "created": {"$before" : "3d"}}).limit(100)
33 minutes
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": {"$ne" : "true"}}).limit(100)
42 minutes
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": "false"}).limit(100)
574 minutes
Are there any techniques to investigate the performance of AQL ? Anything obviously broken with the above ?
Thanks,
Pete

Why won't MediaInfo CLI let me isolate "Inform='Other'" tags?

I'm trying to use MediaInfo CLI (v0.7.77 on Mac OS X 10.9.5) to grab the first-frame timecode of QuickTime files using this Inform= syntax:
mediainfo --Inform="Other;%TimeCode_FirstFrame%" FILENAME.MOV
But it seems that MediaInfo ignores the existence of the "Other" section of the MediaInfo dump. It just outputs all of the file's metadata, as if I didn't enter an Inform= option at all.
However if I do something like this...
mediainfo --Inform="Video;%ColorSpace%" FILENAME.MOV
It simply returns "YUV", as expected, with no extraneous information.
So why won't my example using the Other; option work?
Here's an example of what I get when I do a language=raw dump of a typical source file:
General
CompleteName : /Volumes/SCARY_RAID/projects.local/WaikikiStock.local/KBank-BrollSelects_20151026.local/resolve_renders/waikiki_selects/667_2942_01-0001_1920x1080-23.976.mov
Format : QuickTime
Format/Info : Original Apple specifications
FileSize/String : 380 MiB
Duration/String : 17s 59ms
OverallBitRate_Mode/String : VBR
OverallBitRate/String : 187 Mbps
Encoded_Date : UTC 2015-10-30 21:55:35
Tagged_Date : UTC 2015-10-30 21:55:41
Encoded_Library/String : Apple QuickTime
Video
ID/String : 1
Format : ProRes
Format_Version : Version 0
Format_Profile : 422 HQ
CodecID : apch
Duration/String : 17s 59ms
BitRate_Mode/String : VBR
BitRate/String : 187 Mbps
Width/String : 1920 pixel3
Height/String : 1080 pixel3
DisplayAspectRatio/String : 16:9
FrameRate_Mode/String : CFR
FrameRate/String : 23.976 fps2
ColorSpace : YUV
ChromaSubsampling : 4:2:2
ScanType/String : Progressive
Bits-(Pixel*Frame) : 3.761
StreamSize/String : 380 MiB (100%)
Encoded_Library/String : abm0
Language/String : en
Encoded_Date : UTC 2015-10-30 21:55:35
Tagged_Date : UTC 2015-10-30 21:55:41
colour_primaries : BT.709
transfer_characteristics : BT.709
matrix_coefficients : BT.709
matrix_coefficients_Original : BT.709
Other
ID/String : 2
Type : Time code
Format : QuickTime TC
Duration/String : 17s 59ms
TimeCode_FirstFrame : 15:02:53:00
TimeCode_Striped/String : Yes
Title : Untitled
Language/String : en
Encoded_Date : UTC 2015-10-30 21:55:41
Tagged_Date : UTC 2015-10-30 21:55:41
This is a MediaInfo bug, will be corrected soon.
Jérôme, developer of MediaInfo.

Oracle Golden Gate Version 12.1.2 DBLOGIN throws error

I am not able to login in GGS_OWNER from within GGSCI. I am able to login from sqlplus but when I try to login thorugh GGSCI it throws an error:
GG Version: 12.1.2
Database version: 12c
Type of replication: Integrated Capture
Replication setup: Unidirectional DML replication
Source Context :
SourceModule : [ggapp.util.pcs]
SourceID : [/scratch/aime1/adestore/views/aime1_adc4150327/oggcore/OpenSys/src/gglib/ggapp/pcsutl.c]
SourceFunction : [AbendHandler]
SourceLine : [1005]
ThreadBacktrace : [21] elements
: [/ggsadmin/app/ggate/12.1.2/libgglog.so(CMessageContext::AddThreadContext()+0x1e) [0x7f79191a286e]]
: [/ggsadmin/app/ggate/12.1.2/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x340) [0x7f791919d580]]
: [/ggsadmin/app/ggate/12.1.2/libgglog.so(_MSG_ERR_SIGNAL_RECEIVED(CSourceContext*, int, char const*, CMessageFactory::MessageDisposition)+0x3b) [0x7f791918078b]]
: [ggsci [0x50f653]]
: [/lib64/libpthread.so.0 [0x36b940eca0]]
: [/lib64/libpthread.so.0(pthread_mutex_lock+0) [0x36b9408dd0]]
: [ggsci(ggs::gglib::MultiThreading::Mutex::Lock()+0x9) [0x5449c9]]
: [ggsci(CContextItem::operator char const*() const+0x15) [0x4e2b3f]]
: [ggsci(DBOCI_init_connection_logon(ggs::gglib::ggapp::CLoginName const&, ggs::gglib::ggapp::CDBObjName<(DBObjType)12> const&, char const*, int, int, int, char*)+0x1e5) [0x553b85]]
: [ggsci [0x566ba4]]
: [ggsci(gl_db_login(char const*, char const*, ggs::gglib::ggapp::CDBObjName<(DBObjType)11>&, ggs::gglib::ggapp::CDBObjName<(DBObjType)12>&, short, char (&) [2048])+0x5f) [0x566edf]]
: [ggsci [0x4a4d12]]
: [ggsci(GGSCIDB_get_command(char const*, char const*, char const*, short, short, char (&) [2048])+0x11b) [0x4a525b]]
: [ggsci(do_cmd(char*, unsigned long, char*, unsigned long)+0xb14) [0x4dd654]]
: [ggsci [0x4e145b]]
: [ggsci(ggs::gglib::MultiThreading::MainThread::ExecMain()+0x4f) [0x54241f]]
: [ggsci(ggs::gglib::MultiThreading::Thread::RunThread(ggs::gglib::MultiThreading::Thread::ThreadArgs*)+0x104) [0x542624]]
: [ggsci(ggs::gglib::MultiThreading::MainThread::Run(int, char**)+0x8b) [0x54273b]]
: [ggsci(main+0x3f) [0x4bc94f]]
: [/lib64/libc.so.6(__libc_start_main+0xf4) [0x36b841d9f4]]
: [ggsci [0x49c379]]
2015-09-24 08:35:18 ERROR OGG-01117 Received signal: Segmentation violation (11).
2015-09-24 08:35:18 ERROR OGG-01668 PROCESS ABENDING.
Segmentation fault
You may be experiencing an issue with you path. Take a look at the LD_LIBRARY_PATH. Make sure it's pointing to your ORACLE_HOME/lib:/lib:/usr/lib directory.
Just a suggestion that you should always login to GGSCI from OGG_HOME path only. Because, when you login to GGSCI, GGSCI tries to read the params from the current path (and not the absolute path). This may lead to a few params not getting loaded when you login to GGSCI from any location other than OGG_HOME.
i.e.
cd $OGG_HOME
./ggsci
BUT NOT AS :
cd $OGG_HOME/dirprm (for example)
../ggsci
I hope by now you would have figured out the way to fix this issue; would be better if you could share the DBLOGIN command you ran which led to error.
Below is the command format:
DBLOGIN SOURCEDB AAA USERID XXX, PASSWORD YYY, SESSIONCHARSET latin1
These links may be of use too:
SOURCEDB : https://docs.oracle.com/goldengate/1212/gg-winux/GWURF/gg_parameters149.htm#GWURF649
DBLOGIN : https://docs.oracle.com/goldengate/1212/gg-winux/GWURF/ggsci_commands059.htm#GWURF251

Resources