successful usage on Raspberry Pi? #20536
Replies: 4 comments 4 replies
-
Could you show the instructions your colleague gave you? I just realized, I never tried on a Pi, but I have like 4 on my desk - could give it a shot, if I can find my SD cards |
Beta Was this translation helpful? Give feedback.
-
Can I ask a more overarching question... Why are you developing on a Pi specifically? Does it have to do with your output architecture? Is cross-compiling an option? |
Beta Was this translation helpful? Give feedback.
-
Without knowing the details for sure, I wonder if it's sort-of a memory capacity issue: if the system is running a 32-bit operating system, there's only 4GiB of addressable memory for things like "memory-mapping" of files (basically, pretending a file is an array of bytes in memory)... and I wonder if Pants' cache does this internally. If Pants attempts to mmap a file that's larger than 4GiB, that's impossible: there's not enough memory addresses to fit it. (This works fine with a 64-bit operating system, even with the same amount of physical memory: the operating system doesn't need to pull the whole file into memory at a time, it can insert magic behaviour for a particular range of addresses to go off and read the file as required, paging sections in and out of physical memory.) What does |
Beta Was this translation helpful? Give feedback.
-
I encountered the same error while using a Raspberry Pi 4B with 8GB RAM that had Bookworm installed. After switching to Ubuntu 22.04 LTS on the Raspberry Pi, the issue no longer occurred, and everything has been working fine since. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to follow directions that a colleague wrote up for starting pantsd in a repository on a Raspberry Pi. The directions are proofed out with something more like a NUC. I'm running into
pi@ZDC2:~/repos/test_repo $ source activate.sh --print-stacktrace 16:32:38.37 [INFO] waiting for pantsd to start... 16:32:53.42 [INFO] pantsd started 16:32:54.78 [INFO] Initializing scheduler... 16:32:54.85 [ERROR] Could not initialize store for cache: "Error making env for store at \"/home/pi/.cache/pants/lmdb_store/cache/2\": Cannot allocate memory"
I can't find any references to this error that could give me a hint on where to turn next. Also, full disclosure: I'm a mechanical engineer, not a linux magician. But I'm hoping for some quick responses on:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions