Title: Can't find portaudio in alpine docker container · Issue #467 · spatialaudio/python-sounddevice · GitHub
Open Graph Title: Can't find portaudio in alpine docker container · Issue #467 · spatialaudio/python-sounddevice
X Title: Can't find portaudio in alpine docker container · Issue #467 · spatialaudio/python-sounddevice
Description: I was having trouble locating the portaudio library inside an alpine docker container. It appears that this is because ctypes.util.find_library has trouble finding libraries in some cases. The workaround is to make a symlink to the libra...
Open Graph Description: I was having trouble locating the portaudio library inside an alpine docker container. It appears that this is because ctypes.util.find_library has trouble finding libraries in some cases. The work...
X Description: I was having trouble locating the portaudio library inside an alpine docker container. It appears that this is because ctypes.util.find_library has trouble finding libraries in some cases. The work...
Opengraph URL: https://github.com/spatialaudio/python-sounddevice/issues/467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't find portaudio in alpine docker container","articleBody":"I was having trouble locating the portaudio library inside an alpine docker container. It appears that this is because `ctypes.util.find_library` has trouble finding libraries in some cases. The workaround is to make a symlink to the library without the digit:\r\n\r\n`apk add portaudio`\r\n`cd /usr/lib \u0026\u0026 ln -s [library.name.[0-9]] [library.name]`\r\nI found this solution here: https://bugs.python.org/issue43642\r\n\r\nIt looks like maybe this issue on the cpython repo has some further discussion:\r\nfrom: https://github.com/python/cpython/pull/18380\r\n\r\nLeaving this issue here for anyone else who is looking for a workaround.\r\n\r\n\r\n\r\nexample error text (for searches)\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"/usr/local/lib/python3.11/site-packages/sounddevice.py\", line 71, in \u003cmodule\u003e\r\n raise OSError('PortAudio library not found')\r\nOSError: PortAudio library not found\r\n```\r\nlibportaudio alpine docker python portaudio","author":{"url":"https://github.com/FX-Wood","@type":"Person","name":"FX-Wood"},"datePublished":"2023-05-11T21:39:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/467/python-sounddevice/issues/467"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df0e81b5-687f-3b34-7edd-379cff111ee0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC0A:4832B:0934:0D49:6A553079 |
| html-safe-nonce | 3469746153f794115c4fdd1da60d4cdfa0a126529d1e25710866ecfb959f9e81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzBBOjQ4MzJCOjA5MzQ6MEQ0OTo2QTU1MzA3OSIsInZpc2l0b3JfaWQiOiI1NTA2Mzc2MjY2ODY4NDA0MzQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cffcd6f1908d5347705dcd42455e777669ef196897c2c9736dcb7d05169dc3e1 |
| hovercard-subject-tag | issue:1706595403 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/spatialaudio/python-sounddevice/467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5868b38ae8c5e60bd4def9cf57b7a10e4706fd65eebf08d2c8085bdfe63adea2/spatialaudio/python-sounddevice/issues/467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5868b38ae8c5e60bd4def9cf57b7a10e4706fd65eebf08d2c8085bdfe63adea2/spatialaudio/python-sounddevice/issues/467 |
| og:image:alt | I was having trouble locating the portaudio library inside an alpine docker container. It appears that this is because ctypes.util.find_library has trouble finding libraries in some cases. The work... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FX-Wood |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| go-import | github.com/spatialaudio/python-sounddevice git https://github.com/spatialaudio/python-sounddevice.git |
| octolytics-dimension-user_id | 7491513 |
| octolytics-dimension-user_login | spatialaudio |
| octolytics-dimension-repository_id | 37774726 |
| octolytics-dimension-repository_nwo | spatialaudio/python-sounddevice |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37774726 |
| octolytics-dimension-repository_network_root_nwo | spatialaudio/python-sounddevice |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf96660b44878f418b09d3d6ecde00ad62332910 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width