Tenrec-Builders / pi-scan

Pi Scan is a simple, robust capture appliance for book scanners. It runs on a Raspberry Pi 2.
BSD 2-Clause "Simplified" License
264 stars 37 forks source link

Add docs for how to build a new image #17

Open decentral1se opened 4 years ago

decentral1se commented 4 years ago

Seen from https://github.com/Tenrec-Builders/pi-scan/blob/master/make/README.md, we know that there is a build process to produce a new image but it is not clear how to do that process immediately. I remember messing with debian packaging and chroots before and ending up with getting into difficulty for some $reason on my host computer with mounts. I'd really appreciate some instructions for producing a new pi-scan image.

duerig commented 4 years ago

The build process is just a variant of the pi-gen system for making normal Raspberry Pi images. This has been mostly a one-person project and so there was little need to urgently publish the build process. But if there is interest , I can create a resository for the build scripts that is publicly available.

In addition to these issues, you have also emailed me personally. So ping me when you are comfortable with the vanilla pi-gen process and I'll link you the repo for building these variant images.

On Sun, Jan 19, 2020, at 4:59 AM, decentral1se wrote:

Seen from https://github.com/Tenrec-Builders/pi-scan/blob/master/make/README.md, we know that there is a build process to produce a new image but it is not clear how to do that process immediately. I remember messing with debian packaging and chroots before and ending up with getting into difficulty for some $reason on my host computer with mounts. I'd really appreciate some instructions for producing a new pi-scan image.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tenrec-Builders/pi-scan/issues/17?email_source=notifications&email_token=AAGWYTBN3HRE2SJIKQOWO7LQ6Q6BLA5CNFSM4KIY2MY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHFQLHA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWYTH74MWS6E5JD5NVWI3Q6Q6BLANCNFSM4KIY2MYQ.

abevoelker commented 1 year ago

I started working on this here: https://github.com/abevoelker/pi-gen

I got pretty far, however currently Pi Scan is failing to start due to this error:

lupa._lupa.LuaError: [string "<python>"]:2: module 'chdkptp' not found:

It seems to be an issue reported with chdkptp.py:

However I'm not sure how to resolve it at the moment. python --version is 2.7.18 so it shouldn't be a Python 3 issue (I think).

abevoelker commented 1 year ago

Okay I got past that error. Very weird but apparently pip install wasn't running chdkptp.py's setup.py instructions to build chdkptp.so, so it couldn't be found. I switched to python setup.py install and it works and Pi Scan is booting up now. Haven't tested actually scanning anything yet though

geneb commented 1 year ago

On Tue, 13 Sep 2022, Abe Voelker wrote:

Okay I got past that error. Very weird but apparently pip install wasn't running chdkptp.py's setup.py instructions to build chdkptp.so, so it couldn't be found. I switched to python setup.py install and it works and Pi Scan is booting up now. Haven't tested actually scanning anything yet though

Thanks for your work on this! It's hugely appreciated.

g.

-- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind. http://www.diy-cockpits.org/coll - Go Collimated or Go Home. Some people collect things for a hobby. Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment A Multi-Value database for the masses, not the classes. http://scarlet.deltasoft.com - Get it today!