
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
activate_this.py failed for python2 virtualenvs Β· Issue #1776 Β· pypa/virtualenv
Description:
Issue It seems recently pipenv introduced a new type of activate_this.py. On windows the content of activate_this.py has something like this: prev_length = len(sys.path) for lib in "'..\\L...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Telecommunications
- Mobile Technology & AI
- Technology & Computing
Content Management System {π}
What CMS is github.com built with?
Github.com is powered by 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,653,586 visitors per month in the current month.
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,316,011 paying customers.
The estimated monthly recurring revenue (MRR) is $22,327,244.
The estimated annual recurring revenues (ARR) are $267,926,929.
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 {π}
debug, virtualenv, sync, python, pyenvcfg, copy, info, gaborbernat, cpython, directory, nyamisty, output, activatethispy, path, lock, filelock, import, base, environment, virtual, wheel, lib, commented, builtin, file, code, pipenv, ive, bug, version, acquire, symlink, create, session, module, generated, sign, failed, issue, syspathprevlength, host, scripts, added, interpreter, msc, bit, amd, attempting, cuserswinappdatalocalpypavirtualenvpyinfocbfadadbfeacaadccaeadaefclock, cpythonpythonexe,
Topics {βοΈ}
users\win10\appdata\local\programs\python\python36\lib\site-packages\virtualenv\seed\embed\wheels\setuptools-44 users\win10\appdata\local\programs\python\python36\lib\site-packages\virtualenv\seed\embed\wheels\pip-20 users\win10\appdata\local\programs\python\python36\lib\site-packages\virtualenv\seed\embed\wheels\wheel-0 users\win10\appdata\local\programs\python\python36\lib\site-packages\virtualenv\create\debug users\win10\appdata\local\pypa\virtualenv\seed-app-data\v1 users\win10\appdata\local\programs\python\python36\python users\win10\appdata\local\pypa\virtualenv\py_info\20 users\win10\test\lib\site-packages\pkg_resources [debug _sync users\win10\test\lib\site-packages\setuptools [debug _sync users\win10\test\lib\site-packages\pip [debug _sync users\win10\test\lib\site-packages\wheel [debug _sync users\win10\test\lib\site-packages [debug _sync users\win10\test\lib\site-packages\_virtualenv users\win10\test\lib\site-packages\setuptools-44 users\win10\test\lib\site-packages\pip-20 users\win10\test\lib\site-packages\wheel-0 users\win10\test\lib\site-packages\easy_install users\\win10\\test\\lib\\site-packages users\win10\test\include [debug _sync users\win10\test\scripts [debug _sync users\win10\test\libs [debug _sync users\win10\test\scripts\python users\\win10\\test\\scripts\\python users\win10\test\lib\os users\win10\test\scripts\pythonw users\\win10\\test\\scripts users\win10\test\pyvenv src/virtualenv/activation/python/__init__ users\win10\test users\\win10\\test lib\\site-packages lib\site-packages lib\\site-packages ' import site site python27\\lib\\lib-tk virtualenvs\win10-obmjl69f python27\\lib\\plat-win users\win10 users\\win10 virtualenv [debug _sync dist-info [debug _sync python27\\lib\\json\\__init__ case-sensitive [debug info python27\\lib\\site io/en/latest/cli_interface 'site-packages' virtualenv bin/python org/project/virtualenv/20 nyamisty edits author bare virtualenv call
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Can you replicate this without pipenv by just doing virtualenv call?
- Link to this feature, description of this feature?
- What I wanted to mean is the change is happed in your PR, so instead of trying to be rude here, I'm suggesting you go over your code again, so it would be easier to understand (it's always easier to understand our own code, right?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:activate_this.py failed for python2 virtualenvs
articleBody:**Issue**
It seems recently pipenv introduced a new type of activate_this.py. On windows the content of activate_this.py has something like this:
```
prev_length = len(sys.path)
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)
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
```
As you can see the "'..\\Lib\\site-packages" is obviously wrong.
**Environment**
Provide at least:
- OS: Windows 10
- ``pip list`` of the host python where ``virtualenv`` is installed:
```console
virtualenv 20.0.18
virtualenv-clone 0.5.4
```
**Output of the virtual environment creation**
As I'm using virtualenv through pipenv, so I failed to grab the virtualenv output
```
[ ==] Creating virtual environment...created virtual environment CPython2.7.17.final.0-64 in 641ms
creator CPython2Windows(dest=C:\Users\win10\.virtualenvs\win10-obmjl69F, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\win10\AppData\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator
```
However I've located the related code and wrote out its runtime variable information:
The following is the output of _repr_unicode function in ```src/virtualenv/activation/python/__init__.py```
```
'(win10)
'C:\\Users\\win10\\.virtualenvs\\win10-obmjl69F
'win10-obmjl69F
'Scripts
';
'..\\Lib\\site-packages
'yes
```
As you can see, there's an additional ' before each item. I've done a small experiment on python 3.6 and 3.7:
```
>>> value = "..\\123456"
>>> repr(value.encode("utf-8"))
"b'..\\\\123456'"
>>> repr(value.encode("utf-8"))[1:-1]
"'..\\\\123456"
>>>
```
I believe there's something wrong with this function. This function is introduced in PR #1503
author:
url:https://github.com/NyaMisty
type:Person
name:NyaMisty
datePublished:2020-04-19T01:50:27.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/1776/virtualenv/issues/1776
context:https://schema.org
headline:activate_this.py failed for python2 virtualenvs
articleBody:**Issue**
It seems recently pipenv introduced a new type of activate_this.py. On windows the content of activate_this.py has something like this:
```
prev_length = len(sys.path)
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)
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
```
As you can see the "'..\\Lib\\site-packages" is obviously wrong.
**Environment**
Provide at least:
- OS: Windows 10
- ``pip list`` of the host python where ``virtualenv`` is installed:
```console
virtualenv 20.0.18
virtualenv-clone 0.5.4
```
**Output of the virtual environment creation**
As I'm using virtualenv through pipenv, so I failed to grab the virtualenv output
```
[ ==] Creating virtual environment...created virtual environment CPython2.7.17.final.0-64 in 641ms
creator CPython2Windows(dest=C:\Users\win10\.virtualenvs\win10-obmjl69F, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\win10\AppData\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator
```
However I've located the related code and wrote out its runtime variable information:
The following is the output of _repr_unicode function in ```src/virtualenv/activation/python/__init__.py```
```
'(win10)
'C:\\Users\\win10\\.virtualenvs\\win10-obmjl69F
'win10-obmjl69F
'Scripts
';
'..\\Lib\\site-packages
'yes
```
As you can see, there's an additional ' before each item. I've done a small experiment on python 3.6 and 3.7:
```
>>> value = "..\\123456"
>>> repr(value.encode("utf-8"))
"b'..\\\\123456'"
>>> repr(value.encode("utf-8"))[1:-1]
"'..\\\\123456"
>>>
```
I believe there's something wrong with this function. This function is introduced in PR #1503
author:
url:https://github.com/NyaMisty
type:Person
name:NyaMisty
datePublished:2020-04-19T01:50:27.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/1776/virtualenv/issues/1776
Person:
url:https://github.com/NyaMisty
name:NyaMisty
url:https://github.com/NyaMisty
name:NyaMisty
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:6
interactionType:https://schema.org/CommentAction
userInteractionCount:6
External Links {π}(5)
- How much does https://github.blog pull in monthly?
- What is the earnings of https://virtualenv.pypa.io/en/latest/cli_interface.html#environment-variables?
- How much does https://pypi.org/project/virtualenv/20.0.19/ rake in every month?
- Revenue of https://camo.githubusercontent.com/99d744998f60142fe3ce121046a15ce973ac79c5a1bf07f3b221c03a25568742/68747470733a2f2f6d656469612e74656e6f722e636f2f696d616765732f30313138303036663834376163666366643232653862663066643430356534322f74656e6f722e676966
- Get to know https://www.githubstatus.com/'s earnings
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- 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