
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
setuptools error when embbeding it into a frozen executable Β· Issue #841 Β· pypa/setuptools
Description:
Hi, We distribute our applications in Windows and Linux using cx-freeze. Recently we upgraded mock from 1.0.1 to 1.4.0, and one of the significant changes package-wise is that mock now uses setuptools to determine its __version__ attribu...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Mobile Technology & AI
- Education
Content Management System {π}
What CMS is github.com built with?
Github.com utilizes 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 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
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 {π}
issue, jaraco, setuptools, frozen, wmi, sign, version, getgeneratepath, behavior, projects, error, nicoddemus, application, commented, support, navigation, open, code, pull, requests, actions, security, embbeding, executable, closed, distribute, mock, problem, setuptoolssandbox, fails, assertionerror, import, importerror, module, readonly, store, member, packages, package, triggering, install, latest, drop, wincom, daff, github, labels, milestone, footer, skip,
Topics {βοΈ}
7daf18f jaraco closed packaging setuptools inside comment metadata assignees win32com generating interfaces longer imports wmi labels projects projects milestone frozen application poses code error search open drop support original issue jaraco added import wmi monkeypatched win32com dropping support frozen application cx-freeze appears pywin32 python modules implementation details blame history top level install time anti-pattern avoid importing [a-z0-9 latest version install step assigned labels milestone relationships del getgeneratepath def getgeneratepath latest wmi setuptools package-wise __version__ attribute r'__version__ = upgraded mock readonly store referencing distribute 118 wmi package github issue invoking behavior packages triggering sandbox fails
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:setuptools error when embbeding it into a frozen executable
articleBody:Hi,
We distribute our applications in Windows and Linux using [cx-freeze](https://bitbucket.org/anthony_tuininga/cx_freeze).
Recently we upgraded `mock` from `1.0.1` to `1.4.0`, and one of the significant changes package-wise is that `mock` now [uses setuptools to determine its `__version__` attribute](https://github.com/testing-cabal/mock/commit/e795a4a240df0039bca711999ec57f7856189547).
Packaging `setuptools` inside a frozen application poses a problem though: this code from [`setuptools.sandbox`](https://github.com/pypa/setuptools/blob/master/setuptools/sandbox.py#L376) fails with an `AssertionError`:
```python
try:
from win32com.client.gencache import GetGeneratePath
_EXCEPTIONS.append(GetGeneratePath())
del GetGeneratePath
except ImportError:
# it appears pywin32 is not installed, so no need to exclude.
pass
```
The problem is that `GetGeneratePath()` fails with an `AssertionError` when called from a frozen application because the module is on a read-only store (the zipfile with all python modules):
```python
def GetGeneratePath():
"""..."""
assert not is_readonly, "Why do you want the genpath for a readonly store?"
```
As a workaround which seems to work for us, we *monkeypatched* `win32com.client.gencache.GetGeneratePath` to always raise an `ImportError` when the application is frozen so the error is handled by `setuptools.sandbox`, but I'm not sure if there are any ramifications that we are not seeing of that.
Any thoughts or advice on this issue would be really appreciated.
author:
url:https://github.com/nicoddemus
type:Person
name:nicoddemus
datePublished:2016-11-08T16:33:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/841/setuptools/issues/841
context:https://schema.org
headline:setuptools error when embbeding it into a frozen executable
articleBody:Hi,
We distribute our applications in Windows and Linux using [cx-freeze](https://bitbucket.org/anthony_tuininga/cx_freeze).
Recently we upgraded `mock` from `1.0.1` to `1.4.0`, and one of the significant changes package-wise is that `mock` now [uses setuptools to determine its `__version__` attribute](https://github.com/testing-cabal/mock/commit/e795a4a240df0039bca711999ec57f7856189547).
Packaging `setuptools` inside a frozen application poses a problem though: this code from [`setuptools.sandbox`](https://github.com/pypa/setuptools/blob/master/setuptools/sandbox.py#L376) fails with an `AssertionError`:
```python
try:
from win32com.client.gencache import GetGeneratePath
_EXCEPTIONS.append(GetGeneratePath())
del GetGeneratePath
except ImportError:
# it appears pywin32 is not installed, so no need to exclude.
pass
```
The problem is that `GetGeneratePath()` fails with an `AssertionError` when called from a frozen application because the module is on a read-only store (the zipfile with all python modules):
```python
def GetGeneratePath():
"""..."""
assert not is_readonly, "Why do you want the genpath for a readonly store?"
```
As a workaround which seems to work for us, we *monkeypatched* `win32com.client.gencache.GetGeneratePath` to always raise an `ImportError` when the application is frozen so the error is handled by `setuptools.sandbox`, but I'm not sure if there are any ramifications that we are not seeing of that.
Any thoughts or advice on this issue would be really appreciated.
author:
url:https://github.com/nicoddemus
type:Person
name:nicoddemus
datePublished:2016-11-08T16:33:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/841/setuptools/issues/841
Person:
url:https://github.com/nicoddemus
name:nicoddemus
url:https://github.com/nicoddemus
name:nicoddemus
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:3
interactionType:https://schema.org/CommentAction
userInteractionCount:3
External Links {π}(4)
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