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

Fails on FreeBSD #756

Closed
yurivict opened this issue Apr 8, 2018 · 5 comments
Closed

Fails on FreeBSD #756

yurivict opened this issue Apr 8, 2018 · 5 comments
Labels
stale For issues lacking activity, whose creators have become unresponsive,...

Comments

@yurivict
Copy link

yurivict commented Apr 8, 2018

This line from moviepy.editor import VideoFileClip fails:

$ python2.7 x.py 
Traceback (most recent call last):
  File "x.py", line 1, in <module>
    from moviepy.editor import VideoFileClip
  File "/usr/local/lib/python2.7/site-packages/moviepy/editor.py", line 22, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "/usr/local/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "/usr/local/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 21, in <module>
    from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
  File "/usr/local/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_writer.py", line 11, in <module>
    from moviepy.config import get_setting
  File "/usr/local/lib/python2.7/site-packages/moviepy/config.py", line 35, in <module>
    FFMPEG_BINARY = get_exe()
  File "/usr/local/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 99, in get_exe
    if plat.startswith('win'):
AttributeError: 'NoneType' object has no attribute 'startswith'

py27-moviepy-0.2.3.2_1

@tburrows13
Copy link
Collaborator

I think you are missing some of the error? Please make sure you’ve got everything.

@yurivict
Copy link
Author

yurivict commented Apr 8, 2018

Yes, sorry, I updated the message.

@tburrows13
Copy link
Collaborator

If you go to https://github.com/imageio/imageio/blob/73dadda9d93f9e2c4724095f91a2acd4ecd13c4a/imageio/core/util.py#L539, you’ll see that the function is returning None. That’s your problem. Try editing that function to make it return a string, and that will stop the error mentioned. However, if FreeBSD isn’t supported by imageio, then you may encounter other problems elsewhere.

Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this issue Jul 29, 2018
- Bump PORTREVISION for package change

PR:		227363
Reported by:	yuri
Reference:	Zulko/moviepy#756
		https://github.com/sunpoet/imageio/commit/0a4562bfee1efd7ccb95a98f16ad1519dc2e2f63


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@475820 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 29, 2018
- Bump PORTREVISION for package change

PR:		227363
Reported by:	yuri
Reference:	Zulko/moviepy#756
		https://github.com/sunpoet/imageio/commit/0a4562bfee1efd7ccb95a98f16ad1519dc2e2f63


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@475820 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 29, 2018
swills pushed a commit to swills/freebsd-ports that referenced this issue Jul 30, 2018
- Bump PORTREVISION for package change

PR:		227363
Reported by:	yuri
Reference:	Zulko/moviepy#756
		https://github.com/sunpoet/imageio/commit/0a4562bfee1efd7ccb95a98f16ad1519dc2e2f63


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@475820 35697150-7ecd-e111-bb59-0022644237b5
@keikoro
Copy link
Collaborator

keikoro commented Dec 16, 2018

@yurivict Did you manage to solve your problem? Can we close this issue?

@keikoro keikoro added the stale For issues lacking activity, whose creators have become unresponsive,... label Dec 16, 2018
@yurivict
Copy link
Author

The problem is gone, closing, thanks!

svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this issue Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale For issues lacking activity, whose creators have become unresponsive,...
Projects
None yet
Development

No branches or pull requests

3 participants