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

0.3.10 errors when executing rails commands in OSX: Errno::EISDIR: Is a directory @ io_fillbuf #158

Open
Rovel opened this issue Apr 5, 2021 · 3 comments

Comments

@Rovel
Copy link

Rovel commented Apr 5, 2021

bundle goes well, but when I try some other rails commands it generates some error:
Errno::EISDIR: Is a directory @ io_fillbuf - fd:10 /Localpath/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
the env var FREEDESKTOP_MIME_TYPES_PATH is already set.
if I rollback to 0.3.9 it works as expected.
using ruby 2.6.5 with asdf and rails 5.2.5

@kul1
Copy link

kul1 commented Dec 13, 2021

I have the same issue.
Any solution ?
Thanks
PK

@dlupu
Copy link

dlupu commented Feb 16, 2022

Same here. Any solution ?

@Bodata
Copy link

Bodata commented Mar 25, 2022

So i have the same problem on windows.
Seem the code it opening a path instead of a file.

  def self.open_mime_database
    path = MimeMagic::DATABASE_PATH    
    File.open(path)
  end

  def self.parse_database
    file = open_mime_database  #  <-- this is where a file is expected...

In order to get it to work i have to change it to:

 def self.open_mime_database
    path = MimeMagic::DATABASE_PATH
    path += "/freedesktop.org.xml"   # <-- add file to path
    File.open(path)
  end

changing the FREEDESKTOP_MIME_TYPES_PATH seems not to work i expected adding the filename to the path would solve the problem, but so far i tried it does not work.

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

4 participants