Skip to content

Additional dependency - unzip, consider replacing with zlib? #24

@tur-ium

Description

@tur-ium

I tried running excel_to_ruby on a fresh install of Ubuntu 20.0.4 LTS, after installing ruby and bundler, and got the following error:

09:53   Excel to Code version 0.3.19
09:53   Removing old folders
/home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299: warning: Insecure world writable dir /home/tur-ium/.rvm/gems/ruby-2.5.8/bin in PATH, mode 040777
09:53   Unzipping the spreadsheet
Traceback (most recent call last):
        5: from translate_excel_into_c.rb:46:in `<main>'
        4: from translate_excel_into_c.rb:29:in `translate_excel_into_c'
        3: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:150:in `go!'
        2: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:294:in `unzip_excel'
        1: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299:in execute_system_command'
/home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299:in ': No such file or directory - unzip (Errno::ENOENT)

It looks like excel_to_code executes the system command unzip, but this is not installed by default on Ubuntu, and many other Linux distributions. It may be more robust to use a dedicated Ruby module for unzipping, such as zlib, or to ensure unzip is noted a dependency in the Ubuntu repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions