Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unzipping lib.zip #2

Closed
carey-james opened this issue Nov 12, 2020 · 12 comments
Closed

Unzipping lib.zip #2

carey-james opened this issue Nov 12, 2020 · 12 comments

Comments

@carey-james
Copy link

carey-james commented Nov 12, 2020

I ran into some trouble unzipping lib.zip on my Matrix Portal M4 using macOS Catalina, getting errors when I attempted to unzip using the default method of double-clicking with Archive Utility. Instead, I had to go to the storage in terminal and use the 'unzip' command there. Think it has to do with filesize and the limited ram on the Matrix Portal. Might be worth adding to the README if this is a common issue.

@metro-sign
Copy link
Owner

Thanks for letting me know! Added a section in the documentation to provide a workaround: Commit 734e5f

@gazunder
Copy link

gazunder commented Nov 15, 2020

cc: @metro-sign @carey-james
I also had this same issue (Matrix Portal M4 on macOS). For me the issue was that 5x7.bdf would not copy over. This file is relatively large (25905 lines long) and would cause the Matrix Portal M4 to reboot. I had to write this file out in 10k line increments. I did this by running:

sed -n -e 1,10000p 5x7.bdf >> /Volumes/CIRCUITPY/lib/5x7.bdf
sed -n -e 10001,20000p 5x7.bdf >> /Volumes/CIRCUITPY/lib/5x7.bdf
sed -n -e 20001,30001p 5x7.bdf >> /Volumes/CIRCUITPY/lib/5x7.bdf

Maybe this can help someone else who is having this issue.

@carey-james
Copy link
Author

It looks like adafruit has some info about this on their troubleshooting page, attributing it to the hidden files made by macOS during copying/unzipping, their suggested solution is to stop the OS from making hidden files on the drive altogether.
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51/troubleshooting (scroll down to "MacOS loves to add extra files.")

@curleebs
Copy link

curleebs commented Jan 8, 2021

Hi, I'm having difficulty on step 3. The folder lib is completely empty, and there isn't a zip folder. I'm on a computer with Windows 10, so I don't know if that's the issue. Please help!

@laurentruong
Copy link

Similar issue as @curleebs . Help would be great!

@k5cents
Copy link

k5cents commented Mar 20, 2023

@curleebs @laurentruong Pretty late, but if anybody is running into the same problem the instructions refer to lib.zip in this repository (not in the new CIRCUITPY directory). You need to clone this repository to your computer and move the files over from there!

@Mathiasgyjr
Copy link

@kiernann Im hitting the snag where the lib folder is empty. How do I clone the repository?

@k5cents
Copy link

k5cents commented Mar 24, 2023

The lib folder on the device is supposed to be empty. Clone this repository and move the contents of this lib.zip file onto the device.

Cloning the repository simply means downloading it to your computer where you can move the files around.

https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository

@Mathiasgyjr
Copy link

@kiernann thanks for the last tip. Hoping last question/issue is I cant figure out how to: Copy all of the Python files from src in this repository into the root of the CIRCUITPY volume._

@k5cents
Copy link

k5cents commented Mar 25, 2023

Once you clone the repository to your computer, that means the src folder in this repository will also be on your machine. Take all the files in there (*.py python files) and move them onto the device. The "root" just means the very top, so they aren't inside a folder. That means they should be next to the new lib folder on the device (not inside it).

@Mathiasgyjr
Copy link

Screenshot 2023-03-24 at 8 57 24 PM

@kiernann I moved all the files over but nothing happened on the screen.....

@k5cents
Copy link

k5cents commented Mar 25, 2023

I would explore the solutions in issue #9 or #10.

Either use the older firmware or the newer libraries like those found in the forked version by @ScottKekoaShay (ScottKekoaShay/dc-metro).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants