Troubleshooting
First rule: read the last lines of the output. Long red or coloured logs and Python tracebacks end with the actual
reason. Second rule: run validate before run.
All messages below were produced on purpose with the example projects (paths shortened).
Setting up
| you see | cause and cure |
|---|---|
pixi: command not found |
open a new terminal after installing Pixi; see Install |
ModuleNotFoundError: No module named 'networkmodel' |
you used a bare python; use pixi run python from the phoskintime folder |
.../my-project is not empty |
example never overwrites; choose a new folder name |
Finding files
error: tf_net: file not found ('results_node_subnetworks/ABL2/ABL2_input4.csv')
error: ms: file not found ('data/input1.csv')
INVALID
You validated the repository's own configs/config.toml (it points at data that are not shipped). Give your project's file:
--conf my-project/config.toml.
Invalid value for '--conf': file 'my-project/config.toml' does not exist.
The path is read from the phoskintime folder. Check the spelling, or give the full path.
Input files
error: the network cannot be built: kinase network .../kn_bad.csv: needs columns GeneID, Psite, Kinase; found ['geneid', 'psite', 'enzyme']
Rename the column.
error: the network cannot be built: MS file .../ms7.csv: 7 time columns (x1..x7) but the MS time grid has 6 points; set the grid in [networkmodel.timepoints] (...)
The number of x columns and of time points differ. (Fewer columns than points is not reported: count them.)
error: kinopt: KinOpt result file .../notbook.xlsx could not be read as an Excel workbook: Excel file format cannot be determined, you must specify an engine manually.. See the 'External tools' page ...
The file is not a real .xlsx. Fix it, or set kinopt = "".
warning: kinopt: KinOpt result file not found: ''. ... (a run uses alpha = 1.0 and no priors for these edges)
Not an error. Expected when you have no KinOpt results.
Configuration
A TOML syntax error ends a long traceback with the line number:
TOMLDecodeError: Invalid value (at line 368, column 12)
Open config.toml at that line. Strings need quotes, lists need brackets.
An old key from an earlier release:
ValueError: [networkmodel] sets options removed in v0.7.0; delete them from the config file:
- max_iter: the fit runs in sbmlsim (least squares on the run's PEtab problem; phoskintime.networkmodel.fit_sbmlsim); its iteration limit is sbmlsim's
Delete the line.
error: mechanism: .../combinatorial.toml: family 'combinatorial' (model code 2) is not the run's model (model code 0); set [networkmodel.models] default_model = 'combinatorial'
The mechanism file and default_model must agree.
error: the network cannot be built: [Errno 2] No such file or directory: 'mm_dephos.toml'
Write the mechanism path from the phoskintime folder, for example mechanism = "my-project/mm_dephos.toml".
ValueError: Posterior sampling needs observation_model = 'log_fc_gaussian' (LK-2): ... Set observation_model = 'log_fc_gaussian' with a priors file in mode 'likelihood' (priors_likelihood.toml), or [networkmodel.posterior] method = "none".
See the Laplace example.
Runs and outputs
ModelSpecError: .../results/model_spec/spec.json exists with other content; the model specification is written once and never replaced (use a new output folder, or remove ...
You changed something and reran into the same folder. Set a new output_dir.
[Bundle] Run bundle not written: .../results.pkt.zip exists; remove it or choose another --out
An unchanged rerun into the same folder: the old bundle is kept.
error: .../ko_K2.pke.zip exists; remove it or choose another
.../petab/problem.yaml exists; use --overwrite
Choose a new output name.
error: knockout 'EGFR': the model has no ck_EGFR; kinases: K1, K2
The target must be a kinase of this model.
The fit looks bad
| check | how |
|---|---|
| Are the values linear, not log? | look at observations_scaled/ in the run folder |
| Is the first time point a real baseline? | every series is divided by it |
| Does each kinase have a protein row? | without it its curve is flat |
| Do the site names match between network and MS table? | validate --verbose: phospho_site_filter |
| Does the weight of the edge you care about equal 0? | network_W_global.csv |
| Are there enough starts? | n_starts, multistart_summary.csv |
| Could the wiring or mechanism be wrong? | compare variants; see Build the model |
[Identifiability] tf_scale = 5: at optimizer bound and above resolvable rate are not crashes. They tell you that a
value is not determined; see Read the results.
Still stuck
Search KNOWN_ISSUES.md. Then open an issue at
github.com/bibymaths/phoskintime with: the command, the last 30 lines of
output, your version (metadata.json), and a small synthetic example. Never attach unpublished data.