Title: AttributeError: 'NoneType' object has no attribute 'fileno' · Issue #64 · romilly/quick2wire-python-api · GitHub
Open Graph Title: AttributeError: 'NoneType' object has no attribute 'fileno' · Issue #64 · romilly/quick2wire-python-api
X Title: AttributeError: 'NoneType' object has no attribute 'fileno' · Issue #64 · romilly/quick2wire-python-api
Description: I can't seem to be able to access the file descriptor... >>> from quick2wire.gpio import pins, In, Out >>> pins.pin(0, direction=In) quick2wire.gpio.Pin(0) >>> pin = pins.pin(0, direction=In) >>> dir(pin) ['__class__', '__delattr__', '__...
Open Graph Description: I can't seem to be able to access the file descriptor... >>> from quick2wire.gpio import pins, In, Out >>> pins.pin(0, direction=In) quick2wire.gpio.Pin(0) >>> pin = pins.pin(0, direction=In) >>> d...
X Description: I can't seem to be able to access the file descriptor... >>> from quick2wire.gpio import pins, In, Out >>> pins.pin(0, direction=In) quick2wire.gpio.Pin(0) >>> pin = ...
Opengraph URL: https://github.com/romilly/quick2wire-python-api/issues/64
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'NoneType' object has no attribute 'fileno'","articleBody":"I can't seem to be able to access the file descriptor...\n\n```\n\u003e\u003e\u003e from quick2wire.gpio import pins, In, Out\n\u003e\u003e\u003e pins.pin(0, direction=In)\nquick2wire.gpio.Pin(0)\n\u003e\u003e\u003e pin = pins.pin(0, direction=In)\n\u003e\u003e\u003e dir(pin)\n['__class__', '__delattr__', '__dict__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__trigger__', '__weakref__', '_bank', '_check_open', '_direction', '_file', '_index', '_interrupt', '_pin_path', '_pull', '_soc_pin_number', '_write', 'bank', 'close', 'closed', 'direction', 'fileno', 'get', 'index', 'interrupt', 'open', 'pull', 'set', 'soc_pin_number', 'value']\n\u003e\u003e\u003e pin.fileno()\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/usr/local/lib/python3.2/dist-packages/quick2wire/gpio.py\", line 180, in fileno\n return self._file.fileno()\nAttributeError: 'NoneType' object has no attribute 'fileno'\n\u003e\u003e\u003e \n```\n","author":{"url":"https://github.com/sphaero","@type":"Person","name":"sphaero"},"datePublished":"2015-05-07T11:48:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/64/quick2wire-python-api/issues/64"}
| 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:02ee88c3-a083-ee66-b179-b02d61f2baf3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F64:4C064:44D160B:5D71CC3:6972F86C |
| html-safe-nonce | 820348ea549f6e6c08948afce2df057fc5422b67b0226b55bb41d15bb3acd8de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY0OjRDMDY0OjQ0RDE2MEI6NUQ3MUNDMzo2OTcyRjg2QyIsInZpc2l0b3JfaWQiOiI2NzAwMzMzODE3NDQ2NzI1NzQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a9c1a9a28dc1f9870592bf2e654b56200fccb8b81c9b8375958608e49ff4df3f |
| hovercard-subject-tag | issue:73956612 |
| 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/romilly/quick2wire-python-api/64/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bc31eb8b9873df47ba544a5cf21652e672adf8915fc8ab066a3c868afc546d0/romilly/quick2wire-python-api/issues/64 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bc31eb8b9873df47ba544a5cf21652e672adf8915fc8ab066a3c868afc546d0/romilly/quick2wire-python-api/issues/64 |
| og:image:alt | I can't seem to be able to access the file descriptor... >>> from quick2wire.gpio import pins, In, Out >>> pins.pin(0, direction=In) quick2wire.gpio.Pin(0) >>> pin = pins.pin(0, direction=In) >>> d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sphaero |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9946c12a4847916f32068429cb2ad536f7d8450fc8b70730d0e9aa7861057db8 |
| turbo-cache-control | no-preview |
| go-import | github.com/romilly/quick2wire-python-api git https://github.com/romilly/quick2wire-python-api.git |
| octolytics-dimension-user_id | 149310 |
| octolytics-dimension-user_login | romilly |
| octolytics-dimension-repository_id | 4207383 |
| octolytics-dimension-repository_nwo | romilly/quick2wire-python-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4207383 |
| octolytics-dimension-repository_network_root_nwo | romilly/quick2wire-python-api |
| 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 | f92f1208f12997e73ccb28d2f389b2adab0c98a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width