python-librtmp
python-librtmp copied to clipboard
"fatal error: 'librtmp/rtmp.h' file not found", multiple installs failed, Mac OS X 10.9,
"fatal error: 'librtmp/rtmp.h' file not found"
Hi, another one having troubles installing python-librtmp to Mac OS X, I tried a few different calls/methods for the install (pip, easy_install, etc) but always get the same error:
librtmp_ffi/__pycache__/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file not found
I'm using Mac OS X, Mavericks 10.9.4, and am needing to install python-librtmp as requested by 'livestreamer' when trying to access UStream:
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/11655601 [plugin.ustreamtv][warning] python-librtmp is not installed, but is needed to access the desktop streams [cli][info] Available streams: mobile_240p (worst), mobile_360p, mobile_480p (best)
...then it only offers the 'mobile' streams, which work well enough, I'm just not allowed to access the 'desktop' streams/resolutions..
cffi installed fine, but python-librtmp does not.
I've read somewhere to try to install it to Mac OS X with homebrew, but so far I've not been successful with that method either.. (total n00b to Homebrew), still looking into that method.
Any help would be amazing, I'm only new to all of this, I've only ever done ultra basic terminal etc coding before. Already so damn happy to get livestreamer sending live video streams to VLC, and being able to record live events that are on at like 2am here in Sydney, Australia, so I can sleep and watch later.
PS- Massive props to all of you guys who put so much effort in to these communities for the greater good and to help us all out!!
I am having the same issue. I even tried to do it all on a clean install with cffi, cc, homebrew and just about any method and it is always missing librtmp/rtmp.h
Anybody have some advice, help, trick, fix or just about anything that might get it installed?
Anybody have some advice, help, trick, fix or just about anything that might get it installed?
Does the workaround described here work?
Actually it didn't. It kept giving me the exact same mistake despite me pointing the correct folders.
jimmys-mbp:python-librtmp jimmy$ python setup.py build_ext -I /Users/jimmy/python-librtmp/rtmpdump/rtmpdump/librtmp -L usr/local/lib install running build_ext building '_binding' extension cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/Users/jimmy/python-librtmp/rtmpdump/rtmpdump/librtmp -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c librtmp_ffi/pycache/_binding.c -o build/temp.macosx-10.9-intel-2.7/librtmp_ffi/pycache/_binding.o librtmp_ffi/pycache/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file not found #include <librtmp/rtmp.h> ^ 1 error generated. error: command 'cc' failed with exit status 1
Those paths doesn't look correct... According to the homebrew docs it should be installing things in /usr/local, so perhaps this will work:
sudo python setup.py build_ext -I /usr/local/include -L /usr/local/lib install
Nope. Didn't work either. I'm already accepting my fate. I'll just keep going to the site I guess. Everything else works without any problems though so keep up the good work :) Good luck with the Twitch VoD issue.
I just wanted to chime in that I am having this exact same issue. My machine is OSX 10.8.2 and I just can't figure out how to install. Shriukan if you found a solution please do report back. For now I am having to fire up a virtual box of Windows just to get higher resolution and would rather do it through osx.
Any status updates? I'm also experiencing this issue at the moment.
Nope. Still nothing. Wouldn't it be possible to have that file added with the installer right away?
Any updates? Sill broken on OSX for me :(
Tried yesterday on Yosemite 10.10.3 and still broken. I was able to manually find librtmp/rtmp.h in the /usr/local/include path. Not sure why the build script can't find it.
same here
i've installed rtmpdump via brew
brew install rtmpdump
it works for me
I'll check it out this weekend
Can confirm brew install rtmp dump works !
pip install --global-option=build_ext --global-option="-I/usr/local/include" --global-option="-L/usr/local/lib" python-librtmp
This works for me!
@theo-ptz thanks!
I was having this problem because I was using the brew python/pip to install python-librtmp. After brew install rtmpdump, I usedeasy_install to install pip and then pip to install python-librtmp.
I used
sudo apt-get install librtmp-dev sudo pip install python-librtmp
Worked like a charm
Thanks @dpappas very cool...
I have the same problem。 It's need install librtmp. Following this: git clone git://git.ffmpeg.org/rtmpdump cd rtmpdump/librtmp/ make && make install cp librtmp.so.1 /usr/lib64/
I used
sudo apt-get install librtmp-dev sudo pip install python-librtmp
Worked like a charm
Thank you. That actually works. I should be mentioned in the ReadMe.
from the terminal: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null $ brew install rtmpdump
@Akagi201 trick didn't quite work for me. I suspect it might be I have an M1 MacBook. However, the following did:
pip install --global-option=build_ext --global-option="-I/opt/homebrew/opt/rtmpdump/include/" --global-option="-L/opt/homebrew/opt/rtmpdump/lib" python-librtmp
Note that the location of the library and includes are different.