私の持っているMacではこうなりました。ちゃんと読み込めているみたいです。
(依存パッケージがなくてエラーになってますが)
結論としては、Mac OS Xならそこそこ動きそうです。
最初、64bitと32bitでは結果が異なるかも・・・とおもいましたが、ユニバーサルバイナリなので両方の環境で動きそうですね。
sh
1$ file YouTube_API.so
2YouTube_API.so: Mach-O universal binary with 2 architectures
3YouTube_API.so (for architecture x86_64): Mach-O 64-bit bundle x86_64
4YouTube_API.so (for architecture i386): Mach-O bundle i386
- MacBook Pro (Retina, 13-inch, Mid 2014) OS X El Capitan
python
1Python 2.7.10 (default, Oct 23 2015, 18:05:06)
2[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
3Type "help", "copyright", "credits" or "license" for more information.
4>>> import YouTube_API
5Traceback (most recent call last):
6 File "<stdin>", line 1, in <module>
7 File "YouTube_API.pyx", line 2, in init YouTube_API (/Users/regolith/Desktop/YouTube_API.c:1827)
8ImportError: No module named pafy
9>>>
- Mac mini (Mid 2011) OS X El Capitan
python
1Python 2.7.10 (default, Aug 22 2015, 20:33:39)
2[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)] on darwin
3Type "help", "copyright", "credits" or "license" for more information.
4>>> import YouTube_API
5Traceback (most recent call last):
6 File "<stdin>", line 1, in <module>
7 File "YouTube_API.pyx", line 2, in init YouTube_API (/Users/regolith/Desktop/YouTube_API.c:1827)
8ImportError: No module named pafy
9>>>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。