Giter Site home page Giter Site logo

cryptopunksnotdead / programming-cryptopunks Goto Github PK

View Code? Open in Web Editor NEW
422.0 12.0 127.0 4.46 MB

Crypto Collectibles Book(let) Series. Programming (Crypto) Pixel Punk Profile Pictures & (Generative) Art - Step-by-Step Book / Guide. Inside Unique 24×24 Pixel Art on the Blockchain...

Home Page: https://cryptopunksnotdead.github.io

License: Creative Commons Zero v1.0 Universal

Ruby 91.28% Makefile 3.42% TeX 4.64% Lua 0.66%
cryptopunks cryptopunk cryptotulips 10000 24x24 cryptozombies punkverse pixelart 24px

programming-cryptopunks's Issues

Failure at 1st step... No such file or directory @ rb_sysopen - ./punks.png

Hey there, got no prior knowledge of Ruby. A noob pretty much. Calling 'require 'cryptopunks' ' on Interactive Ruby returns "true". Proceeding with reading 'punks.png' gives an error pasted below. What am I doing wrong? I tried copying the punks.png into gem lib but that didn't change anything.

Thanks!

irb(main):002:0> require 'cryptopunks'
pixelart/0.2.2 on Ruby 2.7.3 (2021-04-05) [x64-mingw32] in (C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pixelart-0.2.2)
cryptopunks/1.2.1 on Ruby 2.7.3 (2021-04-05) [x64-mingw32] in (C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/cryptopunks-1.2.1)
=> true
irb(main):003:0> punks = Punks::Image::Composite.read( './punks.png' )
Traceback (most recent call last):
7: from C:/Ruby27-x64/bin/irb.cmd:31:in <main>' 6: from C:/Ruby27-x64/bin/irb.cmd:31:in load'
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in <top (required)>' 4: from (irb):3 3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/cryptopunks-1.2.1/lib/cryptopunks/composite.rb:13:in read'
2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/cryptopunks-1.2.1/lib/cryptopunks/composite.rb:13:in open' 1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/cryptopunks-1.2.1/lib/cryptopunks/composite.rb:13:in initialize'
Errno::ENOENT (No such file or directory @ rb_sysopen - ./punks.png)
irb(main):004:0>

Trouble with require 'pixelart'

How's it going? I have a similar question to the previous issue.

I am trying to run 'generate.rb' and I am getting this error.
internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in require': cannot load such file -- pixelart (LoadError) from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in require'
from ./generate.rb:6:in `

'

On line 6, where the "require 'pixelart'" import is. I do not see a Pixelart class anywhere to be imported?
Am I missing something?

Thank you for your time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.