Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pandas-0.19.0rc1: 'global name tempita is not defined' #14204
Comments
|
you must have a really really old version of cython (or maybe cython is not installed). you are building from source so you need to have the development requirements. http://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source This is not recommended unless you are developing pandas. there are wheels and conda packages available. |
jreback
closed this
Sep 11, 2016
jreback
added Build Usage Question
labels
Sep 11, 2016
jreback
added this to the
0.19.0
milestone
Sep 11, 2016
jreback
removed the
Usage Question
label
Sep 11, 2016
|
acutally this should be a better reported error (meaning setup should fail) when cython is NOT installed (as is required), we cannot run tempita.
|
jreback
reopened this
Sep 11, 2016
jreback
closed this
in 461e0e9
Sep 12, 2016
TomSmithCGAT
referenced
this issue
in CGATOxford/UMI-tools
Sep 18, 2016
Closed
Improve non-conda setup #46
fungi
commented
Oct 4, 2016
|
It's unclear to me why this was implemented with the equivalent of an assertion in setup.py rather than adding cython to the setup_requires list. Pandas 0.19.0 upgrades via pip on Linux (due to lack of Linux wheels support on PyPI) collapse catastrophically, requiring someone to manually pip install cython into the env first. |
|
@fungi not sure what you are taking about this issue is fixed on 0.19.0 |
fungi
commented
Oct 4, 2016
|
Wheels are supported on Linux, but Linux wheels (the manylinux1 platform PEP aside) are not supported on PyPI. Thus, |
|
@fungi Have a look at PyPI, the linux wheels are definitely there: https://pypi.python.org/pypi/pandas. Maybe you need to update pip to download them? |
|
@fungi before you open an issue development building has always required cython |
fungi
commented
Oct 4, 2016
|
Those are the manylinux1 platform wheels to which I was referring. Support for manylinux1 was first added in pip 8.1.0 (March 2016), so yes this should work for anyone using a pip release from the past 7 months. I'm just curious why this was not added as a setup_requires so that it can work on a broader set of platforms which either may not automatically retrieve manylinux1 wheels or need to operate on sdists for other reasons. In contrast, you already have a setup_requires declared on numpy rather than simply aborting setup.py when you don't see it available in the environment. |
|
hmm, we are using |
fungi
commented
Oct 4, 2016
|
As to "development building has always required cython," prior to 0.19.0 development building must not have included installs from sdist since |
lmeyerov
commented
Oct 10, 2016
|
FWIW, we're hitting this in our various builds and are not sure how to treat. We're seeing the same error for both our internal jenkins & public usages, e.g., https://readthedocs.org/projects/pygraphistry/builds/4425847/ . |
|
The error message can be improved (but that is fixed in 0.19.0, which is released in the meantime), but, as explained in the above comments, this just means that you are trying to build pandas from source, which requires cython to be installed. And this has not changed in comparison to previous versions, this has always been the case. However, normally there should be wheels available. Not sure why readthedocs is downloading the zip source instead of the binary wheels. |
fungi
commented
Oct 19, 2016
|
I think there's probably still some confusion here. The "fix" in 0.19.0 makes it impossible to install the pandas sdist (.tar.gz or .zip) packages published on PyPI without manually preinstalling cython in the environment. The sdists of prior releases up to and including 0.18.1 could be installed without cython present. Digging deeper, it seems this worked because you were (and still are, in fact) shipping the cython-generated files in your sdists, which made them installable without cython present. So yes, creating the sdist does require cython (and this is what I assume you mean by "building from source," e.g. |
frol
added a commit
to frol/docker-alpine-python-machinelearning
that referenced
this issue
Oct 20, 2016
|
|
frol |
5eed01c
|
frol
commented
Oct 20, 2016
|
There is no wheel for Alpine Linux, so installing Pandas 0.19.0 from PyPi without Cython installed manually, the exception is raised and the installation breaks: https://hub.docker.com/r/frolvlad/alpine-python-machinelearning/builds/bfih8p7usyqibefhnsjk5be/ |
|
@fungi Aha, thanks, that clarifies the issue. We should try to solve that for 0.19.1 |
jorisvandenbossche
reopened this
Oct 20, 2016
jorisvandenbossche
modified the milestone: 0.19.1, 0.19.0
Oct 20, 2016
jorisvandenbossche
added the
Regression
label
Oct 22, 2016
chris-b1
referenced
this issue
Oct 22, 2016
Closed
BLD: don't require cython on sdist install #14475
jreback
closed this
in 192b1cd
Oct 24, 2016
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this issue
Nov 2, 2016
|
|
chris-b1 + jorisvandenbossche |
b2e8126
|
jreback
referenced
this issue
Nov 17, 2016
Closed
Regression: `pip wheel pandas` does not work any more with pandas 0.19.0 #14677
amolkahat
added a commit
to amolkahat/pandas
that referenced
this issue
Nov 26, 2016
|
|
chris-b1 + amolkahat |
f34b84f
|
frol
added a commit
to frol/docker-alpine-python-machinelearning
that referenced
this issue
May 26, 2017
|
|
frol |
5327d3c
|
jgerardsimcock commentedSep 11, 2016
I am running a Travis CI build in a python 2.7 min environment. Not sure why it is pulling from an unreleased version of pandas but it looks like the tempita needs to be imported.