Closed lemonkey closed 4 years ago
hiya why are you trying to build it locally? you want a new mpy?
@ladyada I forked the repo in order to implement my own local Node.JS version of the image conversion service normally hosted on Adafruit.IO since I have local webcams that use the older style HTTP basic authentication for their image URLs.
hiya no need to do that, you can use mpycross here https://github.com/adafruit/circuitpython/releases/3.1.1/ or, on m4 boards, you can delete the old mpy file, you dont need mpy for m4/samd51 chips!
@ladyada Oh I wasn't aware that mpy wasn't needed for the m4/samd51 chips since the latest auto-release only has the .mpy versions of the libraries, thanks!
When copying over the latest version of the adafruit_pyportal.py file into my lib folder on the pyportal, on startup it complains about "no module named 'adafruit_touchscreen' since it in fact doesn't exist in the latest Adafruit_CircuitPython_Bundle that I originally installed (4.x).
Nevermind, I had a storage space issue on the pyportal such that a few of the libraries failed to copy over.
On a macOS machine with Xcode 10.2.1 installed, attempting to build from source by following the instructions on https://github.com/adafruit/Adafruit_CircuitPython_PyPortal#building-locally results in the following error:
If you look at ./build_deps/circuitpython/py/nlrx64.c, on line 37 it has:
On a Mac without Cygwin installed, neither _WIN32 nor CYGWIN will be defined, which leads to the "macro expansion producing 'defined' has undefined behavior" error, failing the build.
If I replace the offending define with
#define NLR_OS_WINDOWS 0
, everything builds successfully.However, if I try to install the compiled adafruit_pyportal.mpy file onto my PyPortal device using the newly built adafruit-circuitpython-pyportal-4.x-mpy-3.0.4 bundle, I get the incompatible .mpy error on soft boot. This doesn't happen with the same bundle version as downloaded from the official release.
Thoughts?