Title: Script fails with misleading message if python command is not available · Issue #54 · python-virtualenvwrapper/virtualenvwrapper · GitHub
Open Graph Title: Script fails with misleading message if python command is not available · Issue #54 · python-virtualenvwrapper/virtualenvwrapper
X Title: Script fails with misleading message if python command is not available · Issue #54 · python-virtualenvwrapper/virtualenvwrapper
Description: If the command python is not available the following code fails to detect the location of python and continues with VIRTUALENVWRAPPER_PYTHON=''. # Locate the global Python where virtualenvwrapper is installed. if [ "${VIRTUALENVWRAPPER_P...
Open Graph Description: If the command python is not available the following code fails to detect the location of python and continues with VIRTUALENVWRAPPER_PYTHON=''. # Locate the global Python where virtualenvwrapper i...
X Description: If the command python is not available the following code fails to detect the location of python and continues with VIRTUALENVWRAPPER_PYTHON=''. # Locate the global Python where virtualenvw...
Opengraph URL: https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/54
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Script fails with misleading message if python command is not available","articleBody":"If the command python is not available the following code fails to detect the location of python and continues with VIRTUALENVWRAPPER_PYTHON=''.\r\n\r\n``` bash\r\n# Locate the global Python where virtualenvwrapper is installed.\r\nif [ \"${VIRTUALENVWRAPPER_PYTHON:-}\" = \"\" ]\r\nthen\r\n VIRTUALENVWRAPPER_PYTHON=\"$(command \\which python)\"\r\nfi\r\n```\r\n\r\nThe result is the following output:\r\n```\r\nCommand '' not found.\r\nIf Python could not import the module virtualenvwrapper.hook_loader,\r\ncheck that virtualenvwrapper has been installed for\r\nVIRTUALENVWRAPPER_PYTHON= and that PATH is\r\nset properly.\r\n```\r\n\r\nThe issue can occur even if python is installed. In my case python3 was installed in WSL Ubuntu 22.04. But per default there is no link from python to python3. For this link to exists the package python-is-python3 must be installed.","author":{"url":"https://github.com/HoT-1","@type":"Person","name":"HoT-1"},"datePublished":"2023-03-05T20:45:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/54/virtualenvwrapper/issues/54"}
| 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:66cdf70a-fefe-97cb-1628-6be0d16294c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D12A:29957D:27AFF33:35D04A8:696AE19D |
| html-safe-nonce | 2aa73acbc7c234b1a257868f383423a140f93014ac78aad911ccb6bc9fd594e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTJBOjI5OTU3RDoyN0FGRjMzOjM1RDA0QTg6Njk2QUUxOUQiLCJ2aXNpdG9yX2lkIjoiMTkzMzU5NDE4ODIzMzQ5OTAzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df3e2c69b879ce1bb22ccf12ff9d7ea2afcbc89797fa1059d1899b1548855b29 |
| hovercard-subject-tag | issue:1610357183 |
| 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-virtualenvwrapper/virtualenvwrapper/54/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff1350f38df627000e69e5ed2f02523de6a77b308227dfc3aad7a2430039ee0d/python-virtualenvwrapper/virtualenvwrapper/issues/54 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff1350f38df627000e69e5ed2f02523de6a77b308227dfc3aad7a2430039ee0d/python-virtualenvwrapper/virtualenvwrapper/issues/54 |
| og:image:alt | If the command python is not available the following code fails to detect the location of python and continues with VIRTUALENVWRAPPER_PYTHON=''. # Locate the global Python where virtualenvwrapper i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HoT-1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-virtualenvwrapper/virtualenvwrapper git https://github.com/python-virtualenvwrapper/virtualenvwrapper.git |
| octolytics-dimension-user_id | 122572748 |
| octolytics-dimension-user_login | python-virtualenvwrapper |
| octolytics-dimension-repository_id | 589228542 |
| octolytics-dimension-repository_nwo | python-virtualenvwrapper/virtualenvwrapper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 589228542 |
| octolytics-dimension-repository_network_root_nwo | python-virtualenvwrapper/virtualenvwrapper |
| 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 | 3d84d50b3c75fa36755c3cf392edbc09e626f979 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width