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

Problem with zip #5

Closed
rubyFeedback opened this issue Oct 20, 2023 · 3 comments
Closed

Problem with zip #5

rubyFeedback opened this issue Oct 20, 2023 · 3 comments

Comments

@rubyFeedback
Copy link

uninitialized constant Zip::File (NameError)

Zip::File.open(tempfile){ |zip| zip.extract "PressStart2P-Regular.ttf", "PressStart2P-Regular.ttf" }
^^^^^^

^^^ I get the above error.

Could the main .rb file perhaps be rewritten? That is an unusual error. I did install zip
but even after a gem install it still did not work.

@Nakilon
Copy link
Owner

Nakilon commented Oct 20, 2023

Are you sure you launch it via bundle exec? There are two different zip gems in rubygems with conflicting module names.

@rubyFeedback
Copy link
Author

rubyFeedback commented Oct 20, 2023

I see; I thought I could just run the .rb file as-is and skipped bundle exec. So it's a user error.

Thanks for the pointer - I seem to keep on running into similar issues. :)

(As explanation: I started with ruby before bundler, so I never fully adjusted to it. I
still use the old japanese setup.rb many times, though I also use gem install when
I have to.)

@Nakilon
Copy link
Owner

Nakilon commented Oct 20, 2023

rubyzip/rubyzip#132

the old japanese setup.rb

I'm curious what is that.

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

2 participants