Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specter update to 2.0.2 on Debian 12 #3709

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
Draft

specter update to 2.0.2 on Debian 12 #3709

wants to merge 10 commits into from

Conversation

openoms
Copy link
Collaborator

@openoms openoms commented Mar 18, 2023

Adding specter desktop 2.0.0 which needs python 3.10. As it is not available for Debian currently it is installed from the deadsnakes repo and not made default.

  • tested the update so far
  • need to test the new install

The install runs ok, but needs

@openoms openoms requested a review from rootzoll as a code owner March 18, 2023 15:38
@rootzoll
Copy link
Collaborator

On testing I found two problems:

  1. specter systemd service was not "started" after install while status of raspiblitz was state="ready"

  2. after systemd starting manually and calling server in browser after entering password B I got:

Bildschirm­foto 2023-03-20 um 16 06 14

@rootzoll rootzoll added this to the 1.9.0 Release milestone Mar 20, 2023
@rootzoll
Copy link
Collaborator

rootzoll commented Apr 3, 2023

@openoms should I merge for rc3?

@openoms
Copy link
Collaborator Author

openoms commented Apr 3, 2023

This python 3.10 requirement needs more testing. Not working out of the box on the RPi either.

@openoms openoms marked this pull request as draft April 3, 2023 13:19
@rootzoll
Copy link
Collaborator

rootzoll commented Apr 3, 2023

If possible I would like to get the rc3 out by tomorrow - should I wat for this PR to include?

@openoms
Copy link
Collaborator Author

openoms commented Apr 3, 2023

This PR has details about the config changes: cryptoadvance/specter-desktop#2072

@rootzoll
Copy link
Collaborator

rootzoll commented Apr 4, 2023

I get this error when I try to run the script on a v1.9.0rc2 base:
Bildschirm­foto 2023-04-04 um 02 00 26

@openoms
Copy link
Collaborator Author

openoms commented May 7, 2023

The latest state building on Raspiblitz v1.9.0 rc4 with the specter release v2.0.2-pre2:

May 07 08:40:02 raspberrypi python3[592060]: [2023-05-07 08:40:02,676] INFO in server: Initializing Specter with data-folder /home/specter/.specter
May 07 08:40:02 raspberrypi python3[592060]: [2023-05-07 08:40:02,677] INFO in service_manager: ----> starting service discovery Static
May 07 08:40:02 raspberrypi python3[592060]: [2023-05-07 08:40:02,695] INFO in reflection:   Found class SwanService
May 07 08:40:02 raspberrypi python3[592060]: [2023-05-07 08:40:02,714] INFO in reflection:   Found class LiquidissuerService
May 07 08:40:02 raspberrypi python3[592060]: [2023-05-07 08:40:02,723] INFO in reflection:   Found class DevhelpService
May 07 08:40:03 raspberrypi python3[592060]: [2023-05-07 08:40:03,082] INFO in reflection:   Found class NotificationsService
May 07 08:40:03 raspberrypi python3[592060]: [2023-05-07 08:40:03,096] INFO in reflection:   Found class ExfundService
May 07 08:40:03 raspberrypi python3[592060]: [2023-05-07 08:40:03,099] INFO in reflection:   Found class FaucetService
May 07 08:40:03 raspberrypi python3[592060]: [2023-05-07 08:40:03,103] INFO in reflection:   Found class ElectrumService
May 07 08:40:04 raspberrypi python3[592060]: Traceback (most recent call last):
May 07 08:40:04 raspberrypi python3[592060]:   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
May 07 08:40:04 raspberrypi python3[592060]:     return _run_code(code, main_globals, None,
May 07 08:40:04 raspberrypi python3[592060]:   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
May 07 08:40:04 raspberrypi python3[592060]:     exec(code, run_globals)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specter/__main__.py", line 7, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     entry_point()
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
May 07 08:40:04 raspberrypi python3[592060]:     return self.main(*args, **kwargs)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/click/core.py", line 1055, in main
May 07 08:40:04 raspberrypi python3[592060]:     rv = self.invoke(ctx)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
May 07 08:40:04 raspberrypi python3[592060]:     return _process_result(sub_ctx.command.invoke(sub_ctx))
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
May 07 08:40:04 raspberrypi python3[592060]:     return ctx.invoke(self.callback, **ctx.params)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/click/core.py", line 760, in invoke
May 07 08:40:04 raspberrypi python3[592060]:     return __callback(*args, **kwargs)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specter/cli/cli_server.py", line 151, in server
May 07 08:40:04 raspberrypi python3[592060]:     init_app(app, hwibridge=hwibridge)
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specter/server.py", line 166, in init_app
May 07 08:40:04 raspberrypi python3[592060]:     specter.service_manager = ExtensionManager(
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specter/managers/service_manager/service_manager.py", line 56, in __init__
May 07 08:40:04 raspberrypi python3[592060]:     class_list = get_classlist_of_type_clazz_from_modulelist(
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specter/util/reflection.py", line 94, in get_classlist_of_type_clazz_from_modulelist
May 07 08:40:04 raspberrypi python3[592060]:     module = import_module(fq_module_name)
May 07 08:40:04 raspberrypi python3[592060]:   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
May 07 08:40:04 raspberrypi python3[592060]:     return _bootstrap._gcd_import(name[level:], package, level)
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
May 07 08:40:04 raspberrypi python3[592060]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specterext/spectrum/service.py", line 15, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from cryptoadvance.specterext.spectrum.spectrum_node import SpectrumNode
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specterext/spectrum/spectrum_node.py", line 4, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from cryptoadvance.specterext.spectrum.bridge_rpc import BridgeRPC
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/specterext/spectrum/bridge_rpc.py", line 15, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from cryptoadvance.spectrum.spectrum import RPCError as SpectrumRpcError
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/spectrum/spectrum.py", line 26, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from .db import UTXO, Descriptor, Script, Tx, TxCategory, Wallet, db
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/cryptoadvance/spectrum/db.py", line 7, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from flask_sqlalchemy import SQLAlchemy
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 5, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from .extension import SQLAlchemy
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/flask_sqlalchemy/extension.py", line 23, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from .session import _app_ctx_id
May 07 08:40:04 raspberrypi python3[592060]:   File "/home/specter/.env/lib/python3.10/site-packages/flask_sqlalchemy/session.py", line 8, in <module>
May 07 08:40:04 raspberrypi python3[592060]:     from flask.globals import app_ctx
May 07 08:40:04 raspberrypi python3[592060]: ImportError: cannot import name 'app_ctx' from 'flask.globals' (/home/specter/.env/lib/python3.10/site-packages/flask/globals.py)
May 07 08:40:06 raspberrypi systemd[1]: specter.service: Main process exited, code=exited, status=1/FAILURE

@rootzoll rootzoll modified the milestones: 1.11.0 Release, 1.10.1 Release Jul 8, 2023
@openoms openoms modified the milestones: 1.10.1 Release, 1.11.0 Release Oct 11, 2023
@openoms openoms changed the title specter update to 2.0.0 with python 3.10 specter update to 2.0.2 on Debian 12 Oct 15, 2023
@openoms
Copy link
Collaborator Author

openoms commented Nov 22, 2023

Rebased. Now with the RPi base image on Debian12 only minimal chnages are needed overall.

@openoms openoms marked this pull request as ready for review November 22, 2023 08:14
@openoms
Copy link
Collaborator Author

openoms commented Nov 22, 2023

@openoms openoms marked this pull request as draft November 22, 2023 09:43
@openoms
Copy link
Collaborator Author

openoms commented Jan 17, 2024

The dependencies causing the install error are updated, but since we are installing Specter with pip will need a new release to include the fix.

@rootzoll
Copy link
Collaborator

rootzoll commented May 2, 2024

@openoms what is the latest status here? Do we still target this v1.11.1?

@openoms
Copy link
Collaborator Author

openoms commented May 7, 2024

There was still no release of Specter, we might need to look into deprecating it if there is no continued maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants