Title: Does not work on OSX qsize(): not supported · Issue #16 · breenmachine/httpscreenshot · GitHub
Open Graph Title: Does not work on OSX qsize(): not supported · Issue #16 · breenmachine/httpscreenshot
X Title: Does not work on OSX qsize(): not supported · Issue #16 · breenmachine/httpscreenshot
Description: On OSX Queue.qsize() breaks for multiprocessor queues. There are two calls to this function in httpscreenshot. Locally I was able to get httpscreenshot to run on OSX by changing these to use the .empty() method, but this results in not g...
Open Graph Description: On OSX Queue.qsize() breaks for multiprocessor queues. There are two calls to this function in httpscreenshot. Locally I was able to get httpscreenshot to run on OSX by changing these to use the .e...
X Description: On OSX Queue.qsize() breaks for multiprocessor queues. There are two calls to this function in httpscreenshot. Locally I was able to get httpscreenshot to run on OSX by changing these to use the .e...
Opengraph URL: https://github.com/breenmachine/httpscreenshot/issues/16
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Does not work on OSX qsize(): not supported","articleBody":"On OSX Queue.qsize() breaks for multiprocessor queues. There are two calls to this function in httpscreenshot.\n\nLocally I was able to get httpscreenshot to run on OSX by changing these to use the .empty() method, but this results in not getting any stdout feedback on how many items left in the queue... unless you hack some external global counter... but then you have to contend with thread-safe (and multi-processor safe) access to that... so I'm not sure its worth a pull request. Hopefully someone will update the OSX libs to implement qsize(), but in the meantime if anyone wants to run this on OSX, here is what worked for me:\n\n```\n@@ -194,12 +194,12 @@ def worker(urlQueue, tout, debug, headless, doProfile, vhosts, subs, extraHosts,\n\n while True:\n #Try to get a URL from the Queue\n- if urlQueue.qsize() \u003e 0:\n+ if not urlQueue.empty():\n try: \n curUrl = urlQueue.get(timeout=tout)\n except Queue.Empty:\n continue\n- print '[+] '+str(urlQueue.qsize())+' URLs remaining'\n+ print '[+] more URLs remaining'\n screenshotName = quote(curUrl[0], safe='')\n if(debug):\n print '[+] Got URL: '+curUrl[0]\n```\n","author":{"url":"https://github.com/JGillam","@type":"Person","name":"JGillam"},"datePublished":"2015-11-01T13:18:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/16/httpscreenshot/issues/16"}
| 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:968f8890-343b-7187-98c9-caf4dfe9358a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFEA:1E82C3:21E8AB1:2E60788:69735C7E |
| html-safe-nonce | cf56aad308edc8faefe647f44e7b9c5dd6fbe7aa4bfb275255acf4c33be2a450 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkVBOjFFODJDMzoyMUU4QUIxOjJFNjA3ODg6Njk3MzVDN0UiLCJ2aXNpdG9yX2lkIjoiMjA3Njc3NzIwNTE5NzkyMTQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6c81ecc0bf88b98a29e703c24437e75aa978ef972f2bd14ba13e628f9c7ce42a |
| hovercard-subject-tag | issue:114469117 |
| 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/breenmachine/httpscreenshot/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c44e535d7cb39ad04b3c477685004cd13acb7e03f97ec39d83def80a05002a40/breenmachine/httpscreenshot/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c44e535d7cb39ad04b3c477685004cd13acb7e03f97ec39d83def80a05002a40/breenmachine/httpscreenshot/issues/16 |
| og:image:alt | On OSX Queue.qsize() breaks for multiprocessor queues. There are two calls to this function in httpscreenshot. Locally I was able to get httpscreenshot to run on OSX by changing these to use the .e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JGillam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/breenmachine/httpscreenshot git https://github.com/breenmachine/httpscreenshot.git |
| octolytics-dimension-user_id | 6730611 |
| octolytics-dimension-user_login | breenmachine |
| octolytics-dimension-repository_id | 29396193 |
| octolytics-dimension-repository_nwo | breenmachine/httpscreenshot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29396193 |
| octolytics-dimension-repository_network_root_nwo | breenmachine/httpscreenshot |
| 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 | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width