1. Phix fix

Forked from Re: Suddenly very quiet. Is everyone okay?

axtens_bruce said...
petelomax said...

I just simply got sick of smacking my head against that brick wall

And you left a big dent in that wall too:

(10:38:56.93) c:\Users\bugma\Dropbox\Projects\phix-track>bin\configlet.exe info 
Updating cached 'problem-specifications' data... 
Concepts that aren't a prerequisite for any Practice Exercise: 
none 
 
Concepts that aren't practiced by any Practice Exercise: 
none 
 
Concepts that are a prerequisite, but aren't practiced by any Practice Exercise: 
none 
 
There are 26 non-deprecated exercises in `exercism/problem-specifications` that 
are both unimplemented and not in the track config `exercises.foregone` array: 
 
With canonical data: 
baffling-birthdays 
bank-account 
camicia 
flower-field 
go-counting 
intergalactic-transmission 
killer-sudoku-helper 
line-up 
micro-blog 
parallel-letter-frequency 
piecing-it-together 
rational-numbers 
rectangles 
relative-distance 
rest-api 
satellite 
sgf-parsing 
split-second-stopwatch 
swift-scheduling 
zipper 
 
Without canonical data: 
dot-dsl 
error-handling 
hangman 
lens-person 
paasio 
tree-building 
 
Track summary: 
  0 Concept Exercises (plus 0 work-in-progress) 
112 Practice Exercises (plus 0 work-in-progress) 
112 Exercises in total (plus 0 work-in-progress) 
  0 Concepts 

new topic     » topic index » view message » categorize

2. Re: Phix fix

So I've installed Linux Phix in WSL and

bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/Users/bugma/Dropbox/Projects/phix-track$ bin/verify-exercises 
Checking acronym exercise... 
Checking affine-cipher exercise... 
Checking all-your-base exercise... 
 
/mnt/c/Users/bugma/Dropbox/Projects/phix-track/bin/run.exw:41 
assertion failure 
 
--> see /mnt/c/Users/bugma/Dropbox/Projects/phix-track/bin/ex.err 
Press Enter...Checking allergies exercise... 
Checking alphametics exercise... [ALL THE REST ARE OK] 
Let's get that fixed and we can move on to other things

new topic     » goto parent     » topic index » view message » categorize

3. Re: Phix fix

axtens_bruce said...

assertion failure

I was expecting the assertion failure to be a bit more verbose

new topic     » goto parent     » topic index » view message » categorize

4. Re: Phix fix

So after forking phix-test-runner and building the docker image I get

bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/Users/bugma/Dropbox/Projects/phix-test-runner$ bin/run-tests-in-docker.sh 
failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-buildx: no such file or directory 
 
DEPRECATED: The legacy builder is deprecated and will be removed in a future release. 
            Install the buildx component to build images with BuildKit: 
            https://docs.docker.com/go/buildx/ 
 
Sending build context to Docker daemon   55.3kB 
Step 1/8 : FROM ubuntu:24.04 
 ---> 97bed23a3497 
Step 2/8 : ARG PHIX_VERSION=1.0.5a 
 ---> Using cache 
 ---> 333753918bc0 
Step 3/8 : RUN apt update && apt install -y wget unzip 
 ---> Using cache 
 ---> f42c79a2dd7c 
Step 4/8 : RUN zipname="phix.${PHIX_VERSION}.zip" &&     wget "http://phix.x10.mx/p64" &&     wget "http://phix.x10.mx/${zipname}" &&     mv p64 p &&     chmod 777 p &&     mv p /usr/local/bin/p &&     unzip "${zipname}" -d /usr/local/phix &&     mv /usr/local/phix/builtins /usr/local/bin/builtins &&     cd /usr/local/bin &&     find "/usr/local/phix" -type f -executable -exec ln -s {} \; &&     echo "done?" 
 ---> Using cache 
 ---> ee186e32add7 
Step 5/8 : RUN p --version 
 ---> Using cache 
 ---> b6822f2c2694 
Step 6/8 : WORKDIR /opt/test-runner 
 ---> Using cache 
 ---> 9b38a9594cc7 
Step 7/8 : COPY . . 
 ---> Using cache 
 ---> f15d97d5e365 
Step 8/8 : ENTRYPOINT ["/opt/test-runner/bin/run.sh"] 
 ---> Using cache 
 ---> d41568a18f5e 
Successfully built d41568a18f5e 
Successfully tagged exercism/phix-test-runner:latest 
all-fail: testing... 
all-fail: done 
all-fail: comparing results.json to expected_results.json 
empty-file: testing... 
empty-file: done 
empty-file: comparing results.json to expected_results.json 
partial-fail: testing... 
partial-fail: done 
partial-fail: comparing results.json to expected_results.json 
success: testing... 
success: done 
success: comparing results.json to expected_results.json 
syntax-error: testing... 
syntax-error: done 
syntax-error: comparing results.json to expected_results.json 

new topic     » goto parent     » topic index » view message » categorize

5. Re: Phix fix

axtens_bruce said...

So I've installed Linux Phix in WSL and

I would need a newbie step-by-step guide that a four-year-old could follow to do that.

axtens_bruce said...

bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/Users/bugma/Dropbox/Projects/phix-track$ bin/verify-exercises 
Checking acronym exercise... 
Checking affine-cipher exercise... 
Checking all-your-base exercise... 
 
/mnt/c/Users/bugma/Dropbox/Projects/phix-track/bin/run.exw:41 
assertion failure 
 
--> see /mnt/c/Users/bugma/Dropbox/Projects/phix-track/bin/ex.err 
Press Enter...Checking allergies exercise... 
Checking alphametics exercise... [ALL THE REST ARE OK] 

Let's get that fixed and we can move on to other things

assertion failure 

I was expecting the assertion failure to be a bit more verbose

Line 41 appears to be assert(create_directory(tmp_dir),"cannot create directory "&tmp_dir).

new topic     » goto parent     » topic index » view message » categorize

6. Re: Phix fix

petelomax said...
axtens_bruce said...

So I've installed Linux Phix in WSL and

I would need a newbie step-by-step guide that a four-year-old could follow to do that.

Will work on that

petelomax said...

Line 41 appears to be assert(create_directory(tmp_dir),"cannot create directory "&tmp_dir).

Which I worked out but I was rather hoping the assert would tell me. So shall try to work that out.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Phix fix

axtens_bruce said...
petelomax said...
axtens_bruce said...

So I've installed Linux Phix in WSL and

I would need a newbie step-by-step guide that a four-year-old could follow to do that.

Will work on that

See this video. It's about as simple as it gets. That's not me but my accent is similar.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Phix fix

axtens_bruce said...

See this video. It's about as simple as it gets. That's not me but my accent is similar.

Hmm. Never underestimate my ability to fuck things up.

wsl said...

Failed to take /etc/passwd lock: Invalid argument 
dpkg: error processing package systemd (--configure): 
 installed systemd package post-installation script subprocess returned error exit status 1 
Errors were encountered while processing: 
 systemd 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

I tried a bunch of things, and upgrading to wsl2 then downgrading back to wsl1 seemed to work, in that I [eventually] got the same flurry of errors as quietly glossed over in that video.

Can I safely assume that is step 1 of 174,845 successfully completed?

new topic     » goto parent     » topic index » view message » categorize

9. Re: Phix fix

petelomax said...

Can I safely assume that is step 1 of 174,845 successfully completed?

It is, and congratulations for getting this far. Your prize, medal, and commemorative t-shirt are in the mail.

Sardonic humour aside, I'm on the other side of the planet. I'd remote in with AnyDesk if it'd help, but I have doubts.

Anyway, that was a month ago. Has anything changed?

-Bruce

new topic     » goto parent     » topic index » view message » categorize

10. Re: Phix fix

axtens_bruce said...
petelomax said...

Can I safely assume that is step 1 of 174,845 successfully completed?

It is, and congratulations for getting this far. Your prize, medal, and commemorative t-shirt are in the mail.

Sardonic humour aside, I'm on the other side of the planet. I'd remote in with AnyDesk if it'd help, but I have doubts.

Anyway, that was a month ago. Has anything changed?

-Bruce

Maybe, I just got further along today than ever before, so thanks for the nudge:

pete@DESKTOP-Q6C6MGM:~/phix$ bin/verify-exercises 
Checking acronym exercise... 
Checking affine-cipher exercise... 
Checking all-your-base exercise... 
Checking allergies exercise... 
Checking alphametics exercise... 
Checking anagram exercise... 
Checking armstrong-numbers exercise... 
Checking atbash-cipher exercise... 
Checking binary-search-tree exercise... 
Checking binary-search exercise... 
Checking bob exercise... 
Checking book-store exercise... 
Checking bottle-song exercise... 
Checking bowling exercise... 
Checking change exercise... 
Checking circular-buffer exercise... 
Checking clock exercise... 
Checking collatz-conjecture exercise... 
Checking complex-numbers exercise... 
Checking connect exercise... 
Checking crypto-square exercise... 
Checking custom-set exercise... 
Checking darts exercise... 
Checking diamond exercise... 
Checking difference-of-squares exercise... 
Checking dnd-character exercise... 
Checking dominoes exercise... 
Checking eliuds-eggs exercise... 
Checking etl exercise... 
Checking flatten-array exercise... 
Checking food-chain exercise... 
Checking forth exercise... 
Checking game-of-life exercise... 
Checking gigasecond exercise... 
Checking grade-school exercise... 
Checking grains exercise... 
Checking grep exercise... 
Checking hamming exercise... 
Checking hello-world exercise... 
Checking high-scores exercise... 
Checking house exercise... 
Checking isbn-verifier exercise... 
Checking isogram exercise... 
Checking kindergarten-garden exercise... 
Checking knapsack exercise... 
Checking largest-series-product exercise... 
Checking leap exercise... 
Checking ledger exercise... 
Checking linked-list exercise... 
Checking list-ops exercise... 
Checking luhn exercise... 
Checking markdown exercise... 
Checking matching-brackets exercise... 
Checking matrix exercise... 
Checking meetup exercise... 
Checking minesweeper exercise... 
Checking nth-prime exercise... 
Checking nucleotide-count exercise... 
Checking ocr-numbers exercise... 
Checking palindrome-products exercise... 
Checking pangram exercise... 
Checking pascals-triangle exercise... 
Checking perfect-numbers exercise... 
Checking phone-number exercise... 
Checking pig-latin exercise... 
Checking poker exercise... 
Checking pov exercise... 
Checking prime-factors exercise... 
Checking protein-translation exercise... 
Checking proverb exercise... 
Checking pythagorean-triplet exercise... 
Checking queen-attack exercise... 
Checking rail-fence-cipher exercise... 
Checking raindrops exercise... 
Checking react exercise... 
Checking resistor-color-duo exercise... 
Checking resistor-color-trio exercise... 
Checking resistor-color exercise... 
Checking reverse-string exercise... 
Checking rna-transcription exercise... 
Checking robot-name exercise... 
Checking robot-simulator exercise... 
Checking roman-numerals exercise... 
Checking rotational-cipher exercise... 
Checking run-length-encoding exercise... 
Checking saddle-points exercise... 
Checking say exercise... 
Checking scrabble-score exercise... 
Checking secret-handshake exercise... 
Checking series exercise... 
Checking sieve exercise... 
Checking simple-cipher exercise... 
Checking simple-linked-list exercise... 
Checking space-age exercise... 
Checking spiral-matrix exercise... 
Checking square-root exercise... 
Checking state-of-tic-tac-toe exercise... 
Checking strain exercise... 
Checking sublist exercise... 
Checking sum-of-multiples exercise... 
Checking tournament exercise... 
Checking transpose exercise... 
Checking triangle exercise... 
Checking twelve-days exercise... 
Checking two-bucket exercise... 
Checking two-fer exercise... 
Checking variable-length-quantity exercise... 
Checking word-count exercise... 
Checking word-search exercise... 
Checking wordy exercise... 
Checking yacht exercise... 
Checking zebra-puzzle exercise... 
pete@DESKTOP-Q6C6MGM:~/phix$ 
 
pete@DESKTOP-Q6C6MGM:~/phix-test-runner$ bin/run-tests-in-docker.sh 
ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:  
 Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied 
 
pete@DESKTOP-Q6C6MGM:~/phix-test-runner$ sudo bin/run-tests-in-docker.sh 
[+] Building 0.4s (11/11) FINISHED                                                           docker:default 
 => [internal] load build definition from Dockerfile                                                   0.0s 
 => => transferring dockerfile: 727B                                                                   0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:24.04                                        0.2s 
 => [internal] load .dockerignore                                                                      0.0s 
 => => transferring context: 176B                                                                      0.0s 
 => [1/6] FROM docker.io/library/ubuntu:24.04@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176  0.0s 
 => [internal] load build context                                                                      0.0s 
 => => transferring context: 214B                                                                      0.0s 
 => CACHED [2/6] RUN apt update && apt install -y wget unzip                                           0.0s 
 => CACHED [3/6] RUN zipname="phix.1.0.5a.zip" &&     wget "http://phix.x10.mx/p64" &&     wget "http  0.0s 
 => CACHED [4/6] RUN p --version                                                                       0.0s 
 => CACHED [5/6] WORKDIR /opt/test-runner                                                              0.0s 
 => CACHED [6/6] COPY . .                                                                              0.0s 
 => exporting to image                                                                                 0.0s 
 => => exporting layers                                                                                0.0s 
 => => writing image sha256:318fc10ce074425d3a65e37827147c2c03d3c62bc7dc8b02a14c5493e827e29a           0.0s 
 => => naming to docker.io/exercism/phix-test-runner                                                   0.0s 
all-fail: testing... 
all-fail: done 
all-fail: comparing results.json to expected_results.json 
empty-file: testing... 
empty-file: done 
empty-file: comparing results.json to expected_results.json 
partial-fail: testing... 
partial-fail: done 
partial-fail: comparing results.json to expected_results.json 
success: testing... 
success: done 
success: comparing results.json to expected_results.json 
syntax-error: testing... 
syntax-error: done 
syntax-error: comparing results.json to expected_results.json 
pete@DESKTOP-Q6C6MGM:~/phix-test-runner$ 

I didn't do anything at all to fix all-your-base, presumably I've got the required permissions/directories,
though I might have found a completely different permissions error in docker.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu