Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Histórico de versões do GUARACI, do mais novo para o mais antigo, no estilo

Rodada da CLI (2026-11-20):

- **Instalação em passos curtos para Windows, macOS e Linux.** O README (PT e EN) e o guia `instalacao.md` trazem 3 a 5 passos por sistema, com `python -m guaraci` no lugar de `guaraci` (evita o bloqueio do `guaraci.exe` e problemas de PATH). O aviso do `pip install guaraci` (outro projeto no PyPI) e as versões do Python ficam em "Avisos". Novo: seção do macOS no guia, com o aviso de que o `.[all]` precisa de `brew install libomp` por causa do `xgboost`. O texto sobre o macOS diz "verificado só pelos testes automáticos".

- **Aviso de RAM baixa também sai em inglês.** A linha `[AUTO-AJUSTE DE EXTRA POR RAM]` ficava em português com a interface em
inglês. Só aparece com pouca RAM livre (< 4 a 6 GB), por isso a CI do macOS achou e as outras máquinas não. Não muda
nenhum resultado.

- **Console em inglês sem português no meio.** Sem idioma escolhido (padrão: inglês), o log do pipeline, a auditoria, o
`checar`, o `--help`, o `--version`, o `exemplo`, o `perfis`, o `demo`, o `vip` e o `anova` saem em inglês. Amplia o
tradutor `idioma_console` (ver abaixo): os comandos de linha passam stdout e stderr por ele, com as etiquetas também
Expand Down
73 changes: 55 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,38 +119,75 @@ here it is the default, not an option you have to know to turn on.

## Install

**Never installed a Python program? Follow these steps** (Windows; on macOS/Linux replace `.venv\Scripts\activate` with `source .venv/bin/activate`):
It takes about 10 minutes, needs internet only for this step and **requires no programming**. Pick your system and follow the steps in order. On any of them, paste **one line at a time** and wait for it to finish before the next.

### Windows

1. Install **Python 3.12**: download it from <https://www.python.org/downloads/windows/> and, on the installer's first screen, tick **"Add python.exe to PATH"** before clicking *Install Now*.
2. Download GUARACI: on this GitHub page, green **Code → Download ZIP** button. Right-click the file and choose **Extract All** into a short folder name outside cloud-synced folders (for example, `C:\guaraci`).
3. Open the extracted folder (the one containing `pyproject.toml`), click the address bar, type `powershell` and press Enter. In PowerShell, run:

```powershell
py -m venv .venv
.venv\Scripts\Activate.ps1
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```

If PowerShell complains that "running scripts is disabled", run `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass` and repeat the `Activate.ps1` line.

### macOS

1. Install **Python 3.12**: download the installer from <https://www.python.org/downloads/macos/> and open the `.pkg` file.
2. Download GUARACI: on this GitHub page, green **Code → Download ZIP** button, then double-click the file to extract it.
3. Open **Terminal** (Cmd + Space, type "Terminal"). Type `cd ` (with a trailing space), **drag the extracted folder onto the window** and press Enter. Then run:

1. Install **Python 3.12** from <https://www.python.org/downloads/> and tick *"Add Python to PATH"*.
2. Download GUARACI (green **Code → Download ZIP** button on GitHub) and unzip it into a short folder name.
3. Open a terminal in that folder and run, one line at a time:
```bash
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[web,reports]"
guaraci doctor --instalar
guaraci demo
python3 -m venv .venv
source .venv/bin/activate
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```
4. Browser interface: `guaraci web`. Terminal menu: `guaraci`.

There is no PyPI package yet. **Do not run `pip install guaraci`**: that name belongs to an unrelated project (it installs a different program that also provides a `guaraci` command). Install from a clone, as below, **from inside the cloned folder** (do not install by name from PyPI). The code lives in the `guaraci` package under `src/`. **Python versions:** the full test suite runs in CI on 3.11, 3.12 and 3.13 (Linux and Windows). Python 3.14 is not in CI; the suite was run on it once by hand on Linux, and on 3.14 the Agilent/Waters `.D` reader (`rainbow-api`) does not install. Other versions are untested. macOS is not a supported or verified platform in this release: the full test suite passes on macOS in CI (Python 3.11 and 3.13), but no real use there has been verified.
macOS is not a supported or verified platform in this release: it has been verified only by automated tests, and nobody has really used the program there. If something fails, open a [Discussion](https://github.com/ErleySC/guaraci/discussions) with the error message.

Step-by-step guide for Windows (including the PowerShell execution-policy message), Linux (`python3.x-venv`) and WSL, with minimum requirements: [`docs/usuario/instalacao.md`](docs/usuario/instalacao.md) (in Portuguese). On a light-background terminal, set `GUARACI_TERMINAL=claro` so the colours stay readable.
### Linux (Ubuntu and Debian)

```bash
pip install -e . # the `guaraci` package + core dependencies
# or, for the full web/reports/benchmark stack: pip install -e .[all]
sudo apt update
sudo apt install python3 python3-venv unzip
unzip guaraci-master.zip && cd guaraci-master # the ZIP from Code → Download ZIP
python3 -m venv .venv
source .venv/bin/activate
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```

The base install does **not** include the readers for Bruker OPUS (`opus`), Thermo/Galactic SPC (`spc`), Bruker NMR folders (`rmn`) and Agilent/Waters HPLC/GC folders (`hplc`), nor PARAFAC (`multiway`), image texture (`imagem`) or the DD-SIMCA PCV diagnostic (`robusto`). Screen [2.4] marks those formats with `(extra: pip install ...)` when the package is missing, and `guaraci doctor` / `guaraci checar` list what is missing and what it affects. To get everything at once:
On other distributions, install the equivalent `python3-venv` package.

### After installing

In each new terminal session, open the GUARACI folder, activate the environment again (`.venv\Scripts\Activate.ps1` on Windows, `source .venv/bin/activate` on Mac and Linux) and use:

```bash
pip install ".[all]" # run inside the cloned folder; for development: pip install -e ".[all]"
python -m guaraci web # browser interface
python -m guaraci # terminal menu
```

On Python 3.14 or newer, `.[all]` finishes **without** the Agilent/Waters HPLC/GC folder reader: `rainbow-api` has no release for 3.14 yet, so pip skips it without saying so. If you need those folders, use Python 3.13 or export the data to CSV; `guaraci doctor` and `guaraci --version` show it as missing.
### Warnings

- **Do not run `pip install guaraci`.** That name on PyPI belongs to an unrelated project. Always install from inside the downloaded folder, as above.
- **Python version:** use 3.12. GUARACI requires 3.11 or newer; 3.11 to 3.13 are tested in CI. On 3.14 the program runs, but the Agilent/Waters `.D` folder reader does not install.
- Hit an error or stuck? See the [full installation guide](docs/usuario/instalacao.md) (in Portuguese: requirements, WSL, common error messages). On a light-background terminal, set `GUARACI_TERMINAL=claro`.

### Optional extras and development

The `python -m guaraci doctor --instalar` command above already installs what is missing (web app, report writers and the instrument readers available for your Python) after you confirm. Without an extra the program runs, but the matching format does not open: screen [2.4] marks it with `(extra: pip install ...)`, and `guaraci doctor` and `guaraci checar` list what is missing. Single readers: `opus`, `spc`, `rmn`, `hplc`; analyses: `multiway` (PARAFAC), `imagem`, `robusto` (DD-SIMCA PCV). `benchmark` (`xgboost` and `shap`, large) is left out: `pip install ".[benchmark]"` (on Mac, first: `brew install libomp`). `pip install ".[all]"` installs everything and on 3.14 ends **without** the HPLC/GC reader, silently.

Not sure what is missing? `guaraci doctor` lists it, and `guaraci doctor --instalar` installs it after you confirm (add `--sim` to skip the question). It installs the web app, the report writers and every reader that exists for your Python, with the version ranges of the installed package, so it also works from a clone. The benchmark extra (`xgboost`, `shap`, large) is left out; ask for it with `pip install -e ".[benchmark]"`.
To develop (from a clone): `pip install -e ".[all]"`. The code lives in the `guaraci` package under `src/`.

**First steps, no data of your own required:**

Expand Down
73 changes: 55 additions & 18 deletions README.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,38 +121,75 @@ opção que você precisa saber ligar.

## Instalação

**Nunca instalou um programa Python? Siga estes passos** (Windows; em macOS/Linux troque `.venv\Scripts\activate` por `source .venv/bin/activate`):
Leva cerca de 10 minutos, precisa de internet só nesta etapa e **não exige saber programar**. Escolha o seu sistema e siga na ordem. Em qualquer um deles, cole **uma linha por vez** e espere terminar antes da próxima.

### Windows

1. Instale o **Python 3.12**: baixe em <https://www.python.org/downloads/windows/> e, na primeira tela do instalador, marque **"Add python.exe to PATH"** antes de clicar em *Install Now*.
2. Baixe o GUARACI: nesta página do GitHub, botão verde **Code → Download ZIP**. Clique com o botão direito no arquivo e escolha **Extrair tudo**, numa pasta de nome curto fora de pastas sincronizadas com a nuvem (por exemplo, `C:\guaraci`).
3. Abra a pasta extraída (a que contém o arquivo `pyproject.toml`), clique na barra de endereço, digite `powershell` e aperte Enter. No PowerShell, rode:

```powershell
py -m venv .venv
.venv\Scripts\Activate.ps1
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```

Se o PowerShell reclamar de "execução de scripts desabilitada", rode `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass` e repita a linha do `Activate.ps1`.

### macOS

1. Instale o **Python 3.12**: baixe o instalador em <https://www.python.org/downloads/macos/> e abra o arquivo `.pkg`.
2. Baixe o GUARACI: nesta página do GitHub, botão verde **Code → Download ZIP**, e dê dois cliques no arquivo para extrair.
3. Abra o **Terminal** (Cmd + Espaço, digite "Terminal"). Digite `cd ` (com um espaço no fim), **arraste a pasta extraída para a janela** e aperte Enter. Depois rode:

1. Instale o **Python 3.12** em <https://www.python.org/downloads/> e marque *"Add Python to PATH"*.
2. Baixe o GUARACI (botão verde **Code → Download ZIP** no GitHub) e descompacte em uma pasta de nome curto.
3. Abra um terminal nessa pasta e rode, uma linha por vez:
```bash
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[web,reports]"
guaraci doctor --instalar
guaraci demo
python3 -m venv .venv
source .venv/bin/activate
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```
4. Interface no navegador: `guaraci web`. Menu no terminal: `guaraci`.

Ainda não há pacote no PyPI. **Não rode `pip install guaraci`**: esse nome pertence a outro projeto, sem relação com este (instala um programa diferente, que também tem um comando `guaraci`). Instale a partir de um clone, como abaixo, **de dentro da pasta clonada** (não instale por nome pelo PyPI). O código mora no pacote `guaraci` em `src/`. **Versões do Python:** a suíte completa roda na CI em 3.11, 3.12 e 3.13 (Linux e Windows). O Python 3.14 não está na CI; a suíte foi rodada nele uma vez, à mão, no Linux, e no 3.14 o leitor de pastas `.D` da Agilent/Waters (`rainbow-api`) não instala. Outras versões não foram testadas. O macOS não é plataforma suportada nem verificada nesta versão: a suíte completa de testes passa no macOS da CI (Python 3.11 e 3.13), mas não houve uso real verificado lá.
O macOS não é plataforma suportada nem verificada nesta versão: só há testes automáticos, e ninguém usou o programa de verdade lá. Se algo falhar, abra uma [Discussion](https://github.com/ErleySC/guaraci/discussions) com a mensagem de erro.

Guia passo a passo para Windows (inclusive a mensagem de política de execução do PowerShell), Linux (`python3.x-venv`) e WSL, com requisitos mínimos: [`docs/usuario/instalacao.md`](docs/usuario/instalacao.md). Em terminal de fundo claro, defina `GUARACI_TERMINAL=claro` para manter as cores legíveis.
### Linux (Ubuntu e Debian)

```bash
pip install -e . # o pacote `guaraci` + dependências essenciais
# ou, para a pilha completa de web/relatórios/benchmark: pip install -e .[all]
sudo apt update
sudo apt install python3 python3-venv unzip
unzip guaraci-master.zip && cd guaraci-master # o ZIP baixado em Code → Download ZIP
python3 -m venv .venv
source .venv/bin/activate
pip install ".[web,reports]"
python -m guaraci doctor --instalar
python -m guaraci demo
```

A instalação base **não** traz os leitores de Bruker OPUS (`opus`), Thermo/Galactic SPC (`spc`), pasta Bruker de RMN (`rmn`) e pasta Agilent/Waters de HPLC/GC (`hplc`), nem PARAFAC (`multiway`), textura de imagem (`imagem`) e o diagnóstico PCV do DD-SIMCA (`robusto`). A tela [2.4] marca esses formatos com `(extra: pip install ...)` quando o pacote falta, e `guaraci doctor` e `guaraci checar` listam o que falta e o que isso afeta. Para instalar tudo de uma vez:
Em outras distribuições, instale o pacote equivalente de `python3-venv`.

### Depois de instalar

Em cada nova sessão do terminal, abra a pasta do GUARACI, ative o ambiente de novo (`.venv\Scripts\Activate.ps1` no Windows, `source .venv/bin/activate` no Mac e Linux) e use:

```bash
pip install ".[all]" # dentro da pasta clonada; para desenvolver: pip install -e ".[all]"
python -m guaraci web # interface no navegador
python -m guaraci # menu no terminal
```

No Python 3.14 ou mais novo, o `.[all]` termina **sem** o leitor de pasta Agilent/Waters de HPLC/GC: o `rainbow-api` ainda não tem versão para o 3.14, e o pip o pula sem avisar. Se você precisa dessas pastas, use o Python 3.13 ou exporte os dados para CSV; `guaraci doctor` e `guaraci --version` mostram que ele falta.
### Avisos

- **Não rode `pip install guaraci`.** Esse nome no PyPI pertence a outro projeto, sem relação com este. Instale sempre de dentro da pasta baixada, como acima.
- **Versão do Python:** use a 3.12. O GUARACI exige 3.11 ou mais nova; 3.11 a 3.13 são testados na CI. No 3.14 o programa roda, mas o leitor de pastas `.D` da Agilent/Waters não instala.
- Deu erro ou travou? Veja o [guia completo de instalação](docs/usuario/instalacao.md) (requisitos, WSL, mensagens de erro comuns). Em terminal de fundo claro, defina `GUARACI_TERMINAL=claro`.

### Extras opcionais e desenvolvimento

O comando `python -m guaraci doctor --instalar` acima já instala o que falta (navegador, relatórios e os leitores de instrumento disponíveis para o seu Python), depois da sua confirmação. Sem um extra o programa roda, mas o formato correspondente não abre: a tela [2.4] marca o formato com `(extra: pip install ...)`, e `guaraci doctor` e `guaraci checar` listam o que falta. Leitores avulsos: `opus`, `spc`, `rmn`, `hplc`; análises: `multiway` (PARAFAC), `imagem`, `robusto` (PCV do DD-SIMCA). Fica de fora o `benchmark` (`xgboost` e `shap`, grandes): `pip install ".[benchmark]"` (no Mac, antes: `brew install libomp`). `pip install ".[all]"` instala tudo, e no 3.14 termina **sem** o leitor de HPLC/GC, sem avisar.

Não sabe o que falta? `guaraci doctor` lista, e `guaraci doctor --instalar` instala depois da sua confirmação (com `--sim` não pergunta). Ele instala o navegador, os escritores de relatório e todos os leitores que existem para o seu Python, com as faixas de versão do pacote instalado, então também funciona de dentro de um clone. O extra de benchmark (`xgboost`, `shap`, grande) fica de fora; peça com `pip install -e ".[benchmark]"`.
Para desenvolver (a partir de um clone): `pip install -e ".[all]"`. O código mora no pacote `guaraci` em `src/`.

**Primeiros passos, sem precisar de dado seu:**

Expand Down
Loading