Ubuntuで書いた(動いた)プログラムをRaspberry Piで実行したところエラーになりました。
エラーメッセージでいろいろ検索してみるもなにも得られませんでした。
OSの互換性がダメみたいなのはわかるんですが何をしたらいいのかわかりません。
具体的な原因または解決策等、もしありまいしたらご教授願います。
ソースコード
Python
1from requests_html import HTMLSession 2 3url = 'https://osu.ppy.sh/users/8341091' 4 5session = HTMLSession() 6response = session.get(url) 7response.html.render() 8 9element = response.html.find('div.value-display__value', first = True) 10 11ranking = element.text 12print (ranking)
ターミナル
$ python3.6 getRank.py
エラーメッセージ
Traceback (most recent call last): File "getRank.py", line 7, in <module> response.html.render() File "/home/pi/.local/lib/python3.6/site-packages/requests_html.py", line 572, in render self.session.browser # Automatycally create a event loop and browser File "/home/pi/.local/lib/python3.6/site-packages/requests_html.py", line 680, in browser self._browser = self.loop.run_until_complete(pyppeteer.launch(headless=True, args=['--no-sandbox'])) File "/usr/local/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete return future.result() File "/usr/local/lib/python3.6/site-packages/pyppeteer/launcher.py", line 311, in launch return await Launcher(options, **kwargs).launch() File "/usr/local/lib/python3.6/site-packages/pyppeteer/launcher.py", line 169, in launch **options, File "/usr/local/lib/python3.6/subprocess.py", line 707, in __init__ restore_signals, start_new_session) File "/usr/local/lib/python3.6/subprocess.py", line 1326, in _execute_child raise child_exception_type(errno_num, err_msg) OSError: [Errno 8] Exec format error

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/01/04 20:34