Title: Index error when using Python 3.11 · Issue #1 · python-ffmpegio/python-ffmpegio-example-audioplayer · GitHub
Open Graph Title: Index error when using Python 3.11 · Issue #1 · python-ffmpegio/python-ffmpegio-example-audioplayer
X Title: Index error when using Python 3.11 · Issue #1 · python-ffmpegio/python-ffmpegio-example-audioplayer
Description: When plugging in my own link to music (replacing: with testfiles() as files: file = files[0] With file = "path/to/my/music" It raises an error: File "F:\Projects\Python Projects\punge\audio_player.py", line 50, in callback data = f.read(...
Open Graph Description: When plugging in my own link to music (replacing: with testfiles() as files: file = files[0] With file = "path/to/my/music" It raises an error: File "F:\Projects\Python Projects\punge\audio_player....
X Description: When plugging in my own link to music (replacing: with testfiles() as files: file = files[0] With file = "path/to/my/music" It raises an error: File "F:\Projects\Python Projects\pung...
Opengraph URL: https://github.com/python-ffmpegio/python-ffmpegio-example-audioplayer/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Index error when using Python 3.11","articleBody":"When plugging in my own link to music\r\n\r\n(replacing:\r\n\r\nwith testfiles() as files:\r\n file = files[0]\r\n \r\nWith\r\n`file = \"path/to/my/music\"`\r\nIt raises an error:\r\n`\r\nFile \"F:\\Projects\\Python Projects\\punge\\audio_player.py\", line 50, in callback\r\n data = f.read(nblk)[\"buffer\"]\r\n ~~~~~~~~~~~~^^^^^^^^^^\r\nIndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices\r\nTraceback (most recent call last):\r\n File \"F:\\Projects\\Python Projects\\punge\\audio_player.py\", line 79, in \u003cmodule>\r\n mine.play(mus)\r\n File \"F:\\Projects\\Python Projects\\punge\\audio_player.py\", line 63, in play\r\n self.exited.wait(0.1)\r\n File \"C:\\Users\\Spencer\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\threading.py\", line 622, in wait\r\n signaled = self._cond.wait(timeout)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Spencer\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\threading.py\", line 324, in wait\r\n gotit = waiter.acquire(True, timeout)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nIndexError\r\n`\r\n\r\nI tried this exact code in a Python 3.10 environment, and it worked as expected. Moved over to a python 3.11, and error.\r\n\r\nI would appreciate help 'cause I would like to write my project in 3.11 :)\r\n\r\n","author":{"url":"https://github.com/nednoodlehead","@type":"Person","name":"nednoodlehead"},"datePublished":"2022-12-01T23:22:51Z","url":"https://github.com/python-ffmpegio/python-ffmpegio-example-audioplayer/issues/1"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:bd35755b-e9c2-52ca-3b40-1dd3238e8092 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98D0:1DB96C:1007D4:167916:6AFD6C8A |
| html-safe-nonce | 22e9d510e33424abad688623975801bff7f59c387f1cadf575daa23f3699df73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEQwOjFEQjk2QzoxMDA3RDQ6MTY3OTE2OjZBRkQ2QzhBIiwidmlzaXRvcl9pZCI6IjkwNTMyMzcxOTk5NjAzNzAzMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a94efa078fdd8659772c3684c931b27befbf83961165d954bb4b63e09eb366f |
| hovercard-subject-tag | issue:1472091690 |
| 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/python-ffmpegio/python-ffmpegio-example-audioplayer/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8d7edf43c748c2ff38afb93a7359f58d6f0a87e1eead8987a63dea2b10adc85/python-ffmpegio/python-ffmpegio-example-audioplayer/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8d7edf43c748c2ff38afb93a7359f58d6f0a87e1eead8987a63dea2b10adc85/python-ffmpegio/python-ffmpegio-example-audioplayer/issues/1 |
| og:image:alt | When plugging in my own link to music (replacing: with testfiles() as files: file = files[0] With file = "path/to/my/music" It raises an error: File "F:\Projects\Python Projects\punge\audio_player.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nednoodlehead |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9985ca2e21b59673104d4d830d4afeb946c67f248f273ab2e824c31c8db46e4a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ffmpegio/python-ffmpegio-example-audioplayer git https://github.com/python-ffmpegio/python-ffmpegio-example-audioplayer.git |
| octolytics-dimension-user_id | 98168493 |
| octolytics-dimension-user_login | python-ffmpegio |
| octolytics-dimension-repository_id | 532095560 |
| octolytics-dimension-repository_nwo | python-ffmpegio/python-ffmpegio-example-audioplayer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 532095560 |
| octolytics-dimension-repository_network_root_nwo | python-ffmpegio/python-ffmpegio-example-audioplayer |
| 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 | 0db9e8d463c3f4540570e6ad3c501a06db9dc02a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width