ofek / ofek/pyapp

Cannot get cowsay example to work

Open
#182 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Hi,
I was not able to get the basic example with cowsay working on my machine.
When I run cargo build --release the following error.

error: failed to parse lock file at: /home/tibit/pyapp-latest/Cargo.lock

Caused by:
  lock file version 4 requires `-Znext-lockfile-bump`

I attempted to resolve this myself according to advice I found on another GH thread to just bump the version down to fix this and this allowed me to build but the executable created did not work.

tibit@prox-per-vm4-l8:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
tibit@prox-per-vm4-l8:~$ curl https://github.com/ofek/pyapp/releases/latest/download/source.tar.gz -Lo pyapp-source.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  223k  100  223k    0     0   215k      0  0:00:01  0:00:01 --:--:--  215k
tibit@prox-per-vm4-l8:~$ tar -xzf pyapp-source.tar.gz
tibit@prox-per-vm4-l8:~$ mv pyapp-v* pyapp-latest
tibit@prox-per-vm4-l8:~$ cd pyapp-latest
tibit@prox-per-vm4-l8:~/pyapp-latest$ export PYAPP_PROJECT_NAME=cowsay
tibit@prox-per-vm4-l8:~/pyapp-latest$ export PYAPP_PROJECT_VERSION=6.1
tibit@prox-per-vm4-l8:~/pyapp-latest$ cargo build --release --quiet
error: failed to parse lock file at: /home/tibit/pyapp-latest/Cargo.lock

Caused by:
  lock file version 4 requires `-Znext-lockfile-bump`
tibit@prox-per-vm4-l8:~/pyapp-latest$ hx Cargo.lock
tibit@prox-per-vm4-l8:~/pyapp-latest$
tibit@prox-per-vm4-l8:~/pyapp-latest$
tibit@prox-per-vm4-l8:~/pyapp-latest$
tibit@prox-per-vm4-l8:~/pyapp-latest$ cargo build --release --quiet
tibit@prox-per-vm4-l8:~/pyapp-latest$ mv target/release/pyapp cowsay && chmod +x cowsay
tibit@prox-per-vm4-l8:~/pyapp-latest$ ./cowsay -t 'Hello, World!'

tibit@prox-per-vm4-l8:~/pyapp-latest$ cargo --version
cargo 1.75.0

I get the "creating virtual environment" dialog and then nothing happens.

Note: The cargo version I was running was older (from apt) I tried the newest one from rustup and rebuilt. I no longer get the error from Cargo.lock but running the executable yields the same result.

tibit@prox-per-vm4-l8:~/pyapp-latest$ cargo --version
cargo 1.85.0 (d73d2caf9 2024-12-31)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported flow from the source.tar.gz release: set PYAPP_PROJECT_NAME=cowsay and PYAPP_PROJECT_VERSION=6.1, run cargo build --release, and execute the resulting target/release/pyapp as cowsay. Inspect Cargo.lock and the generated executable behavior on Ubuntu 22.04 with the reported Cargo versions; done means the cowsay command produces the expected output instead of stopping after virtual-environment creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.