Coder Social home page Coder Social logo

Support for FreeBSD OS ? about imageio HOT 8 CLOSED

imageio avatar imageio commented on April 30, 2024
Support for FreeBSD OS ?

from imageio.

Comments (8)

almarklein avatar almarklein commented on April 30, 2024

We should at least allow using ffmpeg using the system executable.

from imageio.

almarklein avatar almarklein commented on April 30, 2024

Actually, when the platform is not supported, imageio will fallback to the system ffmpeg executable. Isn't that enough? Alternatively, we should wrap up that PR of yours that allows setting the ffmpeg executable.

from imageio.

almarklein avatar almarklein commented on April 30, 2024

If just ffmpeg does not work, the user can now do `os.environ['IMAGEIO_FFMPEG_EXE'] = '/path/to/my/ffmpeg'.

from imageio.

Zulko avatar Zulko commented on April 30, 2024

Very cool, thanks.

from imageio.

dapperfu avatar dapperfu commented on April 30, 2024

I'm using PC-BSD and decided to give this a try.

It still fails on the init of imagio since it is directly referencing a dictionary from get_platform().

Traceback (most recent call last):
  File "myFirstMovie.py", line 2, in <module>
    import moviepy.editor as mpy
  File "/usr/local/lib/python3.4/site-packages/moviepy/editor.py", line 22, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "/usr/local/lib/python3.4/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "/usr/local/lib/python3.4/site-packages/moviepy/video/VideoClip.py", line 17, in <module>
    from imageio import imread
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/__init__.py", line 36, in <module>
    from . import plugins  # noqa
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/plugins/__init__.py", line 81, in <module>
    from . import freeimage  # noqa
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/plugins/freeimage.py", line 17, in <module>
    from ._freeimage import fi, IO_FLAGS, FNAME_PER_PLATFORM  # noqa
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/plugins/_freeimage.py", line 1261, in <module>
    fi = Freeimage()
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/plugins/_freeimage.py", line 404, in __init__
    self._load_freeimage()
  File "/usr/local/lib/python3.4/site-packages/imageio-1.2-py3.4.egg/imageio/plugins/_freeimage.py", line 428, in _load_freeimage
    fname = FNAME_PER_PLATFORM[get_platform()]
KeyError: None

I haven't yet gotten my BSD machine up to being a dev environment yet but I can take a look at it in a few days. (Once I re-install FreeBSD11-CURRENT)

from imageio.

almarklein avatar almarklein commented on April 30, 2024

@jedediahfrey Thanks for testing! I'll make some changes to deal more flexible with "exotic" platforms :)

from imageio.

almarklein avatar almarklein commented on April 30, 2024

Fixed it. Could you please try the latest master?

from imageio.

almarklein avatar almarklein commented on April 30, 2024

I am assuming that this works. Please reopen if this is not the case.

from imageio.

Related Issues (20)

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.