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

getting this error when running zsteg on a png #11

Closed
rosidae opened this issue May 3, 2021 · 1 comment
Closed

getting this error when running zsteg on a png #11

rosidae opened this issue May 3, 2021 · 1 comment

Comments

@rosidae
Copy link

rosidae commented May 3, 2021

C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/file_cmd.rb:106:in `stop!': undefined method `close' for nil:NilClass (NoMethodError)
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:119:in `ensure in check'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:119:in `check'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in `check'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:162:in `block (2 levels) in run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `each'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `block in run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each_with_index'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in `run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/bin/zsteg:8:in `<top (required)>'
        from C:/Ruby30-x64/bin/zsteg:23:in `load'
        from C:/Ruby30-x64/bin/zsteg:23:in `<main>'
C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in `spawn': No such file or directory - file -n -b -f - (Errno::ENOENT)
        from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in `popen_run'
        from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:102:in `popen3'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/file_cmd.rb:67:in `start!'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:68:in `check'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in `check'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:162:in `block (2 levels) in run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `each'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `block in run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each_with_index'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in `run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/bin/zsteg:8:in `<top (required)>'
        from C:/Ruby30-x64/bin/zsteg:23:in `load'
        from C:/Ruby30-x64/bin/zsteg:23:in `<main>'
@Darth-Carrotpie
Copy link

Darth-Carrotpie commented Jun 13, 2024

Same issue. Why is it closed? How did you solve it?
Version: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13
OS: Windows

Full error:

C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/file_cmd.rb:106:in `stop!': undefined method `close' for nil (NoMethodError)

      @stdin.close
            ^^^^^^
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:138:in `ensure in check'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:138:in `check'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:258:in `check'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:172:in `block (2 levels) in run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `each'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `block in run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each_with_index'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg.rb:26:in `run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/bin/zsteg:8:in `<top (required)>'
        from C:/Ruby33-x64/bin/zsteg:32:in `load'
        from C:/Ruby33-x64/bin/zsteg:32:in `<main>'
C:/Ruby33-x64/lib/ruby/3.3.0/open3.rb:534:in `spawn': No such file or directory - file -n -b -f - (Errno::ENOENT)
        from C:/Ruby33-x64/lib/ruby/3.3.0/open3.rb:534:in `popen_run'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open3.rb:235:in `popen3'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/file_cmd.rb:67:in `start!'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:73:in `check'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:258:in `check'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:172:in `block (2 levels) in run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `each'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `block in run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each_with_index'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/lib/zsteg.rb:26:in `run'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/zsteg-0.2.13/bin/zsteg:8:in `<top (required)>'
        from C:/Ruby33-x64/bin/zsteg:32:in `load'
        from C:/Ruby33-x64/bin/zsteg:32:in `<main>'

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