
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Broken activation in Windows for python3 Β· Issue #1710 Β· pypa/virtualenv
Description:
virtualenv activation through activate_this.py is broken in Windows for python3. Check this very simple piece of code import os import subprocess import sys from distutils.spawn import find_executable venv = find_executable("virtualenv")...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- DIY & Home Improvement
- Technology & Computing
- Automotive
Content Management System {π}
What CMS is github.com built with?
Github.com uses WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,013,426 paying customers.
The estimated monthly recurring revenue (MRR) is $21,056,387.
The estimated annual recurring revenues (ARR) are $252,676,649.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
virtualenv, svillar, python, asottile, commented, windows, contributor, issue, path, sign, activation, activatethispy, import, bug, fix, author, gaborbernat, code, broken, mentioned, constant, pythonx, executable, create, searchpath, navigation, pull, requests, actions, security, closed, findexecutable, findexecutablevirtualenv, testdir, ospathjointestdir, scripts, file, str, decode, lib, error, decodepath, assigned, webplatformtestswpt, correct, host, yeah, script, case, workaround,
Topics {βοΈ}
/pypa/virtualenv/blob/master/src/virtualenv/activation/python/activate_this virtualenv/src/virtualenv/activation/python/__init__ io/en/latest/changelog fix cross-major creation support virtualenv activation org/project/virtualenv/20 svillar mentioned fix manifest writing py code comment metadata assignees py2 virtualenv lib\site-packages virtualenv executable platform open host python python version broken major release projects milestone pypa py3 search_path = os simple piece subprocess pretty limitted report back unexpected bugs milestone relationships issue python attribute 'decode' calling decode virtualenv virtualenv 'virtualenv' virtualenv 20 //virtualenv bin_path = os 'str' object concat scripts testdir = os py2 path = os fix path variable windows knowledge venv error bug
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Yeah so the thing is why is it "yes" when executing the above script using python3 ?
- Py#L28 is assigned to "yes"?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Broken activation in Windows for python3
articleBody:virtualenv activation through `activate_this.py` is broken in Windows for python3. Check this very simple piece of code
```
import os
import subprocess
import sys
from distutils.spawn import find_executable
venv = find_executable("virtualenv")
testdir = os.path.join(os.path.curdir, 'testenv')
subprocess.check_output((venv, testdir, "-p", sys.executable))
bin_path = os.path.join(testdir, "Scripts") if sys.platform in ("win32", "cygwin") else os.path.join(testdir, "bin")
path = os.path.join(bin_path, "activate_this.py")
with open(path) as f:
exec(f.read(), {"__file__": path})
```
This generates a `AttributeError: 'str' object has no attribute 'decode'`. Taking a look at the `activate_this.py` code:
```
for lib in "..\Lib\site-packages".split(os.pathsep):
path = os.path.realpath(os.path.join(bin_dir, lib))
site.addsitedir(path.decode("utf-8") if "yes" else path)
```
it's indeed normal that we get the error because we're always calling `decode()` over a str. Question is where the `__DECODE_PATH__` from https://github.com/pypa/virtualenv/blob/master/src/virtualenv/activation/python/activate_this.py#L28 is assigned to `"yes"`?
author:
url:https://github.com/svillar
type:Person
name:svillar
datePublished:2020-03-10T15:56:22.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:10
url:https://github.com/1710/virtualenv/issues/1710
context:https://schema.org
headline:Broken activation in Windows for python3
articleBody:virtualenv activation through `activate_this.py` is broken in Windows for python3. Check this very simple piece of code
```
import os
import subprocess
import sys
from distutils.spawn import find_executable
venv = find_executable("virtualenv")
testdir = os.path.join(os.path.curdir, 'testenv')
subprocess.check_output((venv, testdir, "-p", sys.executable))
bin_path = os.path.join(testdir, "Scripts") if sys.platform in ("win32", "cygwin") else os.path.join(testdir, "bin")
path = os.path.join(bin_path, "activate_this.py")
with open(path) as f:
exec(f.read(), {"__file__": path})
```
This generates a `AttributeError: 'str' object has no attribute 'decode'`. Taking a look at the `activate_this.py` code:
```
for lib in "..\Lib\site-packages".split(os.pathsep):
path = os.path.realpath(os.path.join(bin_dir, lib))
site.addsitedir(path.decode("utf-8") if "yes" else path)
```
it's indeed normal that we get the error because we're always calling `decode()` over a str. Question is where the `__DECODE_PATH__` from https://github.com/pypa/virtualenv/blob/master/src/virtualenv/activation/python/activate_this.py#L28 is assigned to `"yes"`?
author:
url:https://github.com/svillar
type:Person
name:svillar
datePublished:2020-03-10T15:56:22.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:10
url:https://github.com/1710/virtualenv/issues/1710
Person:
url:https://github.com/svillar
name:svillar
url:https://github.com/svillar
name:svillar
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:10
interactionType:https://schema.org/CommentAction
userInteractionCount:10
External Links {π}(5)
- What's the financial gain of https://github.blog?
- How much revenue does https://pypi.org/project/virtualenv/20.0.11/ produce monthly?
- Monthly income for https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-11-2020-03-18
- How much does https://camo.githubusercontent.com/8c452dfd85952020f1b9a40a7eca287458efaa2afe120a543ea265d40d42274e/68747470733a2f2f6d656469612e74656e6f722e636f2f696d616765732f31313134303637383831333239626234323138383830656562376563333466642f74656e6f722e676966 pull in monthly?
- What's the monthly money flow for https://www.githubstatus.com/?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net