lindegroup / autopkgr

AutoPkgr is a free Mac app that makes it easy to install and configure AutoPkg.
http://www.lindegroup.com/autopkgr
Apache License 2.0
532 stars 51 forks source link

Python execption #677

Closed jrpmedia closed 2 years ago

jrpmedia commented 2 years ago

A Python exception occurred during the execution of autopkg, see the system log for more details. [ERROR] SyntaxError: invalid syntax

MacMini M1 OSX Monterey 12.2.1

homebysix commented 2 years ago

Hi @jrpmedia - Could you enable verbose logging (see Troubleshooting section, step 3: check the logs) and share the log entries from around the time of that error?

jrpmedia commented 2 years ago

Hi,

I can see nothing in the log(s) for autopkgr so here are some screenshots so you can direct me further please, thanks

Screenshot 2022-03-04 at 08 55 55 Screenshot 2022-03-04 at 08 57 41

.

jrpmedia commented 2 years ago
Screenshot 2022-03-04 at 09 24 02 Screenshot 2022-03-04 at 09 24 10
homebysix commented 2 years ago

Per Step 3 of the Troubleshooting section, here are the items I'd recommend:

  1. Click the AutoPkgr icon in the menu bar. Then select Verbose Logs.
  2. Enable the Verbose AutoPkg Run option. You can find this option in Folders & Integration > Configure AutoPkg. (Looks like you've already done this.)
  3. Stream the logs using this command while trying to reproduce your traceback:

    log stream --style syslog --process "AutoPkgr" --type log

Also, your screenshots include information you hadn't previously shared: the error appears to be occurring while updating a repo. Therefore, you might want to update your repos using the autopkg command outside of AutoPkgr to see whether a particular repo is causing trouble:

    autopkg repo-update all
JRPserver commented 2 years ago

Thank you, here you are:

Last login: Thu Mar 10 13:25:05 on console jrp@cloud ~ % log stream --style syslog --process "AutoPkgr" --type log

Filtering the log data using "process BEGINSWITH[cd] "AutoPkgr" AND type == 1024" Timestamp (process)[PID]
2022-03-10 13:28:12.779478+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:12.779608+0000 localhost AutoPkgr[707]: Error [1] Error updating repo A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:12.780482+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-update all 2022-03-10 13:28:13.754789+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:13.754903+0000 localhost AutoPkgr[707]: Error [1] Error encountered listing repos A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:13.755064+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-list 2022-03-10 13:28:34.820429+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 8: cleaning up 2022-03-10 13:28:34.821837+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C8 5CEB9BB2-1A29-47A6-B18E-CAF596767E06 Hostname#7eea6a7a:443 tcp, url hash: 6cb661a7, tls, definite, attribution: developer] cancel 2022-03-10 13:28:34.822702+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C8 5CEB9BB2-1A29-47A6-B18E-CAF596767E06 Hostname#7eea6a7a:443 tcp, url hash: 6cb661a7, tls, definite, attribution: developer] cancelled [C8.1 97B2C262-70CF-468A-973C-D866F4F31B5E 217.35.150.172:49503<->IPv4#16fa55fd:443] Connected Path: satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns Privacy Stance: Not Eligible Duration: 61.962s, DNS @0.000s took 0.016s, TCP @0.016s took 0.020s, TLS 1.3 took 0.024s bytes in/out: 60258/2851, packets in/out: 13/9, rtt: 0.021s, retransmitted bytes: 0, out-of-order bytes: 0 2022-03-10 13:28:34.824763+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_disconnected [C8.1 IPv4#16fa55fd:443 cancelled socket-flow ((null))] Output protocol disconnected 2022-03-10 13:28:34.825372+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C8] reporting state cancelled 2022-03-10 13:28:34.825822+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 8: done 2022-03-10 13:28:39.860196+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:39.860316+0000 localhost AutoPkgr[707]: Error [1] Error running recipes A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:39.860955+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg run --recipe-list /Users/jrp/Library/Application Support/AutoPkgr/recipe_list.txt --report-plist -v --post io.github.hjuutilainen.VirusTotalAnalyzer/VirusTotalAnalyzer 2022-03-10 13:28:39.861428+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task .<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:39.861637+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: enabling TLS 2022-03-10 13:28:39.861654+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: starting, TC(0x0) 2022-03-10 13:28:39.861677+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 F48D4155-86B4-43A3-ADD4-862F399B95B9 Hostname#7eea6a7a:443 tcp, url hash: 6cb661a7, tls, definite, attribution: developer, context: com.apple.CFNetwork.NSURLSession.{675BB29C-8E68-4260-A0E5-D8EEFA95E1DB}{(null)}{Y}{2} (private), proc: 208F103C-4586-30D9-AF3A-B598894FC3BD] start 2022-03-10 13:28:39.861699+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 initial path ((null))] event: path:start @0.000s 2022-03-10 13:28:39.861765+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 waiting path (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.000s, uuid: 2C70E5BF-0177-4BCF-815C-3DEEDAA26A36 2022-03-10 13:28:39.861820+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:start_dns @0.000s 2022-03-10 13:28:39.861839+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C10] reporting state preparing 2022-03-10 13:28:39.861909+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> setting up Connection 10 2022-03-10 13:28:39.862548+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_endpoint_resolver_update [C10 Hostname#7eea6a7a:443 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] Adding endpoint handler for IPv4#16fa55fd:443 2022-03-10 13:28:39.862578+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:receive_dns @0.000s 2022-03-10 13:28:39.862615+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 initial path ((null))] event: path:start @0.000s 2022-03-10 13:28:39.862649+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 waiting path (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.000s, uuid: 97B2C262-70CF-468A-973C-D866F4F31B5E 2022-03-10 13:28:39.862770+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:start_connect @0.001s 2022-03-10 13:28:39.883223+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_socket_handle_socket_event [C10.1:3] Socket received CONNECTED event 2022-03-10 13:28:39.884290+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_connected [C10.1 IPv4#16fa55fd:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] Transport protocol connected (socket) 2022-03-10 13:28:39.884316+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:finish_transport @0.022s 2022-03-10 13:28:39.884335+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:finish_transport @0.022s 2022-03-10 13:28:39.884416+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_session_apply_protocol_options_for_transport_block_invoke(1719) [C10.1:2][0x7fcbb805d110] TLS configured [min_version(0x0301) max_version(0x0304) name() tickets(false) false_start(false) enforce_ev(false) enforce_ats(false)] 2022-03-10 13:28:39.884461+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2012) [C10.1:2][0x7fcbb805d110] Client handshake started 2022-03-10 13:28:39.884533+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS client enter_early_data 2022-03-10 13:28:39.884566+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS client read_server_hello 2022-03-10 13:28:39.905240+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_hello_retry_request 2022-03-10 13:28:39.905263+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_server_hello 2022-03-10 13:28:39.905414+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_encrypted_extensions 2022-03-10 13:28:39.905441+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_certificate_request 2022-03-10 13:28:39.905460+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_server_certificate 2022-03-10 13:28:39.905494+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_server_certificate_verify 2022-03-10 13:28:39.905585+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_evaluate_trust_async(1615) [C10.1:2][0x7fcbb805d110] Performing external trust evaluation 2022-03-10 13:28:39.905662+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_evaluate_trust_async_external(1600) [C10.1:2][0x7fcbb805d110] Asyncing for external verify block 2022-03-10 13:28:39.905687+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: asked to evaluate TLS Trust 2022-03-10 13:28:39.908021+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: TLS Trust result 0 2022-03-10 13:28:39.908049+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_evaluate_trust_async_external_block_invoke_3(1556) [C10.1:2][0x7fcbb805d110] Returning from external verify block with result: true 2022-03-10 13:28:39.908068+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_certificate_verify_callback(1777) [C10.1:2][0x7fcbb805d110] Certificate verification result: OK 2022-03-10 13:28:39.908576+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client read_server_finished 2022-03-10 13:28:39.908625+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client send_end_of_early_data 2022-03-10 13:28:39.908641+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client send_client_encrypted_extensions 2022-03-10 13:28:39.908656+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client send_client_certificate 2022-03-10 13:28:39.908670+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client complete_second_flight 2022-03-10 13:28:39.908712+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS 1.3 client done 2022-03-10 13:28:39.908743+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS client finish_client_handshake 2022-03-10 13:28:39.908763+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2029) [C10.1:2][0x7fcbb805d110] Client handshake state: TLS client done 2022-03-10 13:28:39.908784+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] boringssl_context_info_handler(2018) [C10.1:2][0x7fcbb805d110] Client handshake done 2022-03-10 13:28:39.908930+0000 localhost AutoPkgr[707]: (libboringssl.dylib) [com.apple.network:boringssl] nw_protocol_boringssl_signal_connected(715) [C10.1:2][0x7fcbb805d110] TLS connected [version(0x0304) ciphersuite(TLS_AES_128_GCM_SHA256) group(0x001d) signature_alg(0x0403) alpn(http/1.1) resumed(0) offered_ticket(0) false_started(0) ocsp_received(0) sct_received(0) connect_time(24ms) flight_time(21ms) rtt(21ms) write_stalls(0) read_stalls(2)] 2022-03-10 13:28:39.908973+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_connected [C10.1 IPv4#16fa55fd:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] Output protocol connected (CFNetworkConnection-593065965) 2022-03-10 13:28:39.909012+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.047s 2022-03-10 13:28:39.909048+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C10] reporting state ready 2022-03-10 13:28:39.909073+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.047s 2022-03-10 13:28:39.909094+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10.1 IPv4#16fa55fd:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.047s 2022-03-10 13:28:39.909120+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C10 Hostname#7eea6a7a:443 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.047s 2022-03-10 13:28:39.909165+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: connected successfully 2022-03-10 13:28:39.909190+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: TLS handshake complete 2022-03-10 13:28:39.909291+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: ready C(N) E(N) 2022-03-10 13:28:39.909358+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> now using Connection 10 2022-03-10 13:28:39.909387+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 10: received viability advisory(Y) 2022-03-10 13:28:39.909486+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> sent request, body N 0 2022-03-10 13:28:40.046155+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> received response, status 404 content K 2022-03-10 13:28:40.046956+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> response ended 2022-03-10 13:28:40.047148+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> done using Connection 10 2022-03-10 13:28:40.047590+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task .<0> summary for task success {transaction_duration_ms=186, response_status=404, connection=10, protocol="http/1.1", domain_lookup_duration_ms=0, connect_duration_ms=46, secure_connection_duration_ms=24, private_relay=false, request_start_ms=48, request_duration_ms=0, response_start_ms=184, response_duration_ms=1, request_bytes=236, response_bytes=1188, cache_hit=true} 2022-03-10 13:28:40.047830+0000 localhost AutoPkgr[707]: NSURLConnection error when attempting to get JSON data from the GitHub API. Error: (null). 2022-03-10 13:28:40.050493+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:40.050777+0000 localhost AutoPkgr[707]: (CFNetwork) Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> now using Connection 10 2022-03-10 13:28:40.051273+0000 localhost AutoPkgr[707]: (CFNetwork) Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> sent request, body N 0 2022-03-10 13:28:40.400223+0000 localhost AutoPkgr[707]: (CFNetwork) Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> received response, status 200 content C 2022-03-10 13:28:40.419748+0000 localhost AutoPkgr[707]: (CFNetwork) Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> response ended 2022-03-10 13:28:40.420064+0000 localhost AutoPkgr[707]: (CFNetwork) Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> done using Connection 10 2022-03-10 13:28:40.421065+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task <0705BBE3-5AAA-4E97-90F9-1D9526604FB1>.<0> summary for task success {transaction_duration_ms=372, response_status=200, connection=10, reused=1, request_start_ms=2, request_duration_ms=0, response_start_ms=350, response_duration_ms=20, request_bytes=308, response_bytes=27097, cache_hit=true} 2022-03-10 13:28:40.427984+0000 localhost AutoPkgr[707]: Skipping prerelease version of https://api.github.com/repos/autopkg/autopkg/releases 2022-03-10 13:28:40.428242+0000 localhost AutoPkgr[707]: Skipping prerelease version of https://api.github.com/repos/autopkg/autopkg/releases 2022-03-10 13:28:41.719608+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:41.719735+0000 localhost AutoPkgr[707]: Error [1] Error encountered listing repos A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:41.719878+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-list 2022-03-10 13:28:41.720419+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task .<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:41.720519+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> now using Connection 10 2022-03-10 13:28:41.720649+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> sent request, body N 0 2022-03-10 13:28:41.976909+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> received response, status 304 content U 2022-03-10 13:28:41.977642+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> done using Connection 10 2022-03-10 13:28:41.977657+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task .<0> summary for task success {transaction_duration_ms=257, response_status=304, connection=10, reused=1, request_start_ms=0, request_duration_ms=0, response_start_ms=256, response_duration_ms=0, request_bytes=321, response_bytes=1190, cache_hit=true} 2022-03-10 13:28:42.026809+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:42.026920+0000 localhost AutoPkgr[707]: (CFNetwork) Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> now using Connection 10 2022-03-10 13:28:42.027099+0000 localhost AutoPkgr[707]: (CFNetwork) Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> sent request, body N 0 2022-03-10 13:28:42.386871+0000 localhost AutoPkgr[707]: (CFNetwork) Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> received response, status 304 content U 2022-03-10 13:28:42.387609+0000 localhost AutoPkgr[707]: (CFNetwork) Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> done using Connection 10 2022-03-10 13:28:42.387629+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task <72FBB5D5-FEED-47DB-873C-8184EE3A2C56>.<0> summary for task success {transaction_duration_ms=361, response_status=304, connection=10, reused=1, request_start_ms=1, request_duration_ms=0, response_start_ms=360, response_duration_ms=0, request_bytes=316, response_bytes=1348, cache_hit=true} 2022-03-10 13:28:42.396478+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task .<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:42.396842+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> now using Connection 10 2022-03-10 13:28:42.397252+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> sent request, body N 0 2022-03-10 13:28:42.644998+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> received response, status 304 content U 2022-03-10 13:28:42.646163+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> done using Connection 10 2022-03-10 13:28:42.646270+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task .<0> summary for task success {transaction_duration_ms=251, response_status=304, connection=10, reused=1, request_start_ms=2, request_duration_ms=0, response_start_ms=249, response_duration_ms=0, request_bytes=316, response_bytes=1190, cache_hit=true} 2022-03-10 13:28:43.512409+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:43.512527+0000 localhost AutoPkgr[707]: Error [1] Error encountered listing repos A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:43.512658+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-list 2022-03-10 13:28:43.513324+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task .<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:43.513409+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> now using Connection 10 2022-03-10 13:28:43.513544+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> sent request, body N 0 2022-03-10 13:28:43.860338+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> received response, status 304 content U 2022-03-10 13:28:43.861109+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> done using Connection 10 2022-03-10 13:28:43.861131+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task .<0> summary for task success {transaction_duration_ms=348, response_status=304, connection=10, reused=1, request_start_ms=0, request_duration_ms=0, response_start_ms=347, response_duration_ms=0, request_bytes=304, response_bytes=1348, cache_hit=true} 2022-03-10 13:28:44.388895+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task .<0> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0} 2022-03-10 13:28:44.389011+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> now using Connection 10 2022-03-10 13:28:44.389163+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> sent request, body N 0 2022-03-10 13:28:44.640591+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> received response, status 304 content U 2022-03-10 13:28:44.641404+0000 localhost AutoPkgr[707]: (CFNetwork) Task .<0> done using Connection 10 2022-03-10 13:28:44.641408+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:Summary] Task .<0> summary for task success {transaction_duration_ms=252, response_status=304, connection=10, reused=1, request_start_ms=0, request_duration_ms=0, response_start_ms=251, response_duration_ms=0, request_bytes=315, response_bytes=1190, cache_hit=true} 2022-03-10 13:28:45.511100+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK) File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax 2022-03-10 13:28:45.511217+0000 localhost AutoPkgr[707]: Error [1] Error encountered listing repos A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:45.511342+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-list 2022-03-10 13:28:45.550102+0000 localhost AutoPkgr[707]: [DEBUG] SMTP credentials retrieved. 2022-03-10 13:28:45.550193+0000 localhost AutoPkgr[707]: [DEBUG] SSL/TLS is enabled for server.jrphosting.co.uk. 2022-03-10 13:28:45.551026+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn [11:0x6000028d2c00] using empty proxy configuration 2022-03-10 13:28:45.551054+0000 localhost AutoPkgr[707]: (CFNetwork) Stream client bypassing proxies on TCP Conn [11:0x6000028d2c00] 2022-03-10 13:28:45.551065+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 started 2022-03-10 13:28:45.551151+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, definite, attribution: developer, context: Default Network Context (private), proc: 208F103C-4586-30D9-AF3A-B598894FC3BD, no proxy, no fallback, allow socket access] start 2022-03-10 13:28:45.551185+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 initial path ((null))] event: path:start @0.000s 2022-03-10 13:28:45.551303+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 waiting path (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.000s, uuid: 61D5A2E8-47B8-4E10-BCDC-FA4ECF4DD637 2022-03-10 13:28:45.551345+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:start_dns @0.000s 2022-03-10 13:28:45.551366+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state preparing 2022-03-10 13:28:45.552219+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_endpoint_resolver_update [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] Adding endpoint handler for IPv4#79c38119:465 2022-03-10 13:28:45.552244+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:receive_dns @0.001s 2022-03-10 13:28:45.552269+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 initial path ((null))] event: path:start @0.001s 2022-03-10 13:28:45.552339+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 waiting path (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.001s, uuid: 1A77F778-29A6-4344-8C5C-34CA77C6FD81 2022-03-10 13:28:45.552440+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 in_progress socket-flow (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:start_connect @0.001s 2022-03-10 13:28:45.562930+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_socket_handle_socket_event [C11.1:1] Socket received CONNECTED event 2022-03-10 13:28:45.562988+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_connected [C11.1 IPv4#79c38119:465 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] Output protocol connected (socket) 2022-03-10 13:28:45.563015+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.011s 2022-03-10 13:28:45.563038+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state ready 2022-03-10 13:28:45.563059+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.011s 2022-03-10 13:28:45.563077+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.011s 2022-03-10 13:28:45.563098+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.011s 2022-03-10 13:28:45.563129+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 event 1. err: 0 2022-03-10 13:28:45.563149+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 complete. fd: 17, err: 0 2022-03-10 13:28:45.563308+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 starting SSL negotiation 2022-03-10 13:28:45.655797+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 SSL Handshake DONE 2022-03-10 13:28:45.766346+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 canceled 2022-03-10 13:28:45.766463+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, legacy-socket, definite, attribution: developer] cancel 2022-03-10 13:28:45.766803+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, legacy-socket, definite, attribution: developer] cancelled [C11.1 1A77F778-29A6-4344-8C5C-34CA77C6FD81 217.35.150.172:49557<->IPv4#79c38119:465] Connected Path: satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns Privacy Stance: Not Eligible Duration: 0.215s, DNS @0.000s took 0.001s, TCP @0.001s took 0.010s bytes in/out: 5811/4080, packets in/out: 10/12, rtt: 0.013s, retransmitted bytes: 0, out-of-order bytes: 0 2022-03-10 13:28:45.767043+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_disconnected [C11.1 IPv4#79c38119:465 cancelled socket-flow ((null))] Output protocol disconnected 2022-03-10 13:28:45.767415+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state cancelled

JRPserver commented 2 years ago

... and also ...

Last login: Thu Mar 10 13:28:31 on ttys001 jrp@cloud ~ % autopkg repo-update all Traceback (most recent call last): File "/usr/local/bin/autopkg", line 37, in from autopkgcmd import common_parse, gen_common_parser, search_recipes File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in from autopkgcmd.opts import common_parse, gen_common_parser File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in from autopkglib import globalPreferences File "/Library/AutoPkg/autopkglib/init.py", line 1086, in import_processors() File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors import(name + "." + name, fromlist=[name]), name File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498 except OSError, err: ^ SyntaxError: invalid syntax jrp@cloud ~ %

homebysix commented 2 years ago

Looks like the problem is in the LANrevImporter processor.

2022-03-10 13:28:12.779608+0000 localhost AutoPkgr[707]: Error [1] Error updating repo
A Python exception occurred during the execution of autopkg, see the system log for more details.

[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:12.780482+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-update all
2022-03-10 13:28:13.754789+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK)
    File "/usr/local/bin/autopkg", line 37, in
from autopkgcmd import common_parse, gen_common_parser, search_recipes
    File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in
from autopkgcmd.opts import common_parse, gen_common_parser
    File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in
from autopkglib import globalPreferences
    File "/Library/AutoPkg/autopkglib/init.py", line 1086, in
import_processors()
    File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors
import(name + "." + name, fromlist=[name]), name
    File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498
        except OSError, err:
        ^
SyntaxError: invalid syntax

That processor hasn't been updated for 5 years, so it's unlikely to work with Python 3 and AutoPkg 2+. I would recommend removing its repository with autopkg repo-delete https://github.com/jbaker10/LANrevImporter and trying again.

If you wish to use the LANrevImporter processor, you might consider expressing interest to the processor's author via a pull request to the repo here: https://github.com/jbaker10/LANrevImporter

JRPserver commented 2 years ago

Thank you ! :-) Problem solved.

Screenshot 2022-03-11 at 10 17 25 Screenshot 2022-03-11 at 10 17 34 Screenshot 2022-03-11 at 10 17 45 Screenshot 2022-03-11 at 10 18 15
JRPserver commented 2 years ago

Finally, Is this the place or thread to ask for assistance with this, or should I start another ISSUE Ticket?

Screenshot 2022-03-11 at 10 18 22

?

homebysix commented 2 years ago

That's not an AutoPkgr issue. It's a warning (not an error) caused by running recipes directly instead of creating overrides. Please read through this wiki page, and if you still have questions you might consider asking on the MacAdmins Slack.