cryptoadvance / cryptoadvance/specter-desktop

Bug: Repeated `python3 setup.py install` leads to errors at startup, service loading

Open
#1,935 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
847
Forks
259
Avg merge
6d 18h
Merged PRs (30d)
2

Description

## Steps to reproduce
When running
```
pip install -e . && python3 setup.py install
```
for the first time the python folder `python3.10/site-packages/` contains
![image](https://user-images.githubusercontent.com/60378539/197263281-4ec9fe18-5d10-4930-abb8-903dead8f48b.png)
and `python3.10/site-packages/cryptoadvance/specterext/` contains
![image](https://user-images.githubusercontent.com/60378539/197263542-dcf5a87b-f281-4e37-b10f-6294597bafb3.png)

However running
```
pip install -e . && python3 setup.py install
```
again , now
- `python3.10/site-packages/cryptoadvance/specterext/` contains
![image](https://user-images.githubusercontent.com/60378539/197263723-96377ae3-e5bc-4280-b7d5-bffb29e7e083.png)
which then raises the exception at specter start;
```
cryptoadvance.specter.specter_error.SpecterError:
Module cryptoadvance.specterext.liquidissuer.service could not be found. This could have these reasons:
```
- `python3.10/site-packages/` remains contains the same folders.

## Cause

Running `pip install -e . ` for the 2. time completely deletes the `python3.10/site-packages/cryptoadvance` folder (without noticing that it deleted the folders of some of the required packages).

## Workaround

Currently I have to do `pip uninstall ` of all services in `python3.10/site-packages/cryptoadvance/specterext/` and rerun `pip install -e . && python3 setup.py install `.

## Solutions?

- The services specterext-exfund, specterext-faucet, cryptoadvance-liquidissuer should NOT be located in `cryptoadvance/specterext/`

@k9ert: What do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.