Installer Fail

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
qstyk
Posts: 2
Joined: Mon Aug 13, 2018 12:13 am

Installer Fail

Post by qstyk » Mon Aug 13, 2018 12:29 am

Team, I was wanting to delve into the IoT world by leveraging Python. I picked up an Adafruit CircuitPlayground Express and followed the below steps:

Step 1) https://learn.adafruit.com/building-circuitpython/macos

Step 2) https://learn.adafruit.com/building-cir ... cuitpython

In the "Build mpy-cross" section, it fails as per below:

rtp-jonhar-nitro6:circuitpython Jon.Hartman$ make -C mpy-cross
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
QSTR updated
python3 ../py/makeqstrdata.py build/genhdr/qstrdefs.preprocessed.h > build/genhdr/qstrdefs.enum.h
make: msgfmt: No such file or directory
make: *** [build/genhdr/en_US.mo] Error 1

I'm open to the possibility that I'm missing something simple, but I've been unable to ascertain what that would be. Is there something obvious I'm missing? ../py/makeqstrdata.py doesn't exist, but py/makeqstrdata.py does. Likewise, build/genhdr/qstrdefs.preprocessed.h doesn't exist, by mpy-cross/build/genhdr/qstrdefs.preprocessed.h does. I tried changing to the mpy-cross directory, but that wasn't successful, either:

rtp-jonhar-nitro6:mpy-cross Jon.Hartman$ make --debug
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
Updating goal targets....
File `all' does not exist.
File `mpy-cross' does not exist.
File `FORCE' does not exist.
Must remake target `FORCE'.
Successfully remade target file `FORCE'.
Prerequisite `FORCE' of target `build/genhdr/mpversion.h' does not exist.
Must remake target `build/genhdr/mpversion.h'.
Successfully remade target file `build/genhdr/mpversion.h'.
File `build/py/qstr.o' does not exist.
File `build/genhdr/qstrdefs.generated.h' does not exist.
File `build/genhdr/en_US.mo' does not exist.
Must remake target `build/genhdr/en_US.mo'.
make: msgfmt: No such file or directory
make: *** [build/genhdr/en_US.mo] Error 1

Many thanks in advance, for the help!

qstyk
Posts: 2
Joined: Mon Aug 13, 2018 12:13 am

Re: Installer Fail

Post by qstyk » Mon Aug 13, 2018 12:18 pm

After investigating further, it appears that it is solely failing on a dependency of build/genhdr/en_US.mo, which doesn't exist. These are apparently some sort of binary localization files, which are specific to the program and in this case don't appear to exist with the source code.

At this point, I'd settle for disabling localization. Any thoughts?

tannewt
Posts: 29
Joined: Thu Aug 25, 2016 2:43 am

Re: Installer Fail

Post by tannewt » Tue Aug 14, 2018 6:01 pm

Hi qstyk,
Please ask for CircuitPython support on the Adafruit forum here only: https://forums.adafruit.com/viewforum.php?f=60 and on Discord: https://adafru.it/discord.

Let's not bother the MicroPython folks with CircuitPython specifics.
Thanks!
~Scott

Post Reply