question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis build fails for Conda package

See original GitHub issue

See: https://travis-ci.org/pydata/pandas-gbq/jobs/392794382

Per https://github.com/conda-forge/staged-recipes/wiki/Namespace-packages, I think we’ll probably need to create some empty google-namespace and google-cloud-namespace Conda packages.

Applying my previous fix of locking the miniconda version didn’t work this time. (https://github.com/pydata/pandas-gbq/pull/187)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tswastcommented, Dec 19, 2018
0reactions
tswastcommented, Nov 2, 2018

With CircleCI and the miniconda3 container, the packages are installing okay (that was the problem on Travis). Strangely, the pandas DataFrame is getting Nones instead of float.nans for NULL floating point values.

_____ TestReadGBQIntegration.test_should_properly_handle_null_floats[env] ______

self = <tests.system.test_gbq.TestReadGBQIntegration object at 0x7f9779df0ba8>
project_id = 'pandas-gbq-tests'

    def test_should_properly_handle_null_floats(self, project_id):
        query = "SELECT FLOAT(NULL) AS null_float"
        df = gbq.read_gbq(
            query,
            project_id=project_id,
            credentials=self.credentials,
            dialect="legacy",
        )
>       tm.assert_frame_equal(df, DataFrame({"null_float": [np.nan]}))
...
/opt/conda/envs/test-environment/lib/python3.6/site-packages/pandas/util/testing.py:1010: in assert_attr_equal
    left_attr, right_attr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = 'Attributes', message = 'Attribute "dtype" are different'
left = dtype('O'), right = dtype('float64'), diff = None

    def raise_assert_detail(obj, message, left, right, diff=None):
        if isinstance(left, np.ndarray):
            left = pprint_thing(left)
        if isinstance(right, np.ndarray):
            right = pprint_thing(right)
    
        msg = """{0} are different
    
    {1}
    [left]:  {2}
    [right]: {3}""".format(obj, message, left, right)
    
        if diff is not None:
            msg = msg + "\n[diff]: {diff}".format(diff=diff)
    
>       raise AssertionError(msg)
E       AssertionError: Attributes are different
E       
E       Attribute "dtype" are different
E       [left]:  object
E       [right]: float64

/opt/conda/envs/test-environment/lib/python3.6/site-packages/pandas/util/testing.py:1092: AssertionError

See: https://circleci.com/gh/tswast/pandas-gbq/11

I wonder if that is an issue for pandas 0.23.4 in general? It would be a surprising change of behavior if so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conda build errors on travis · Issue #254 · etal/cnvkit - GitHub
There seems to be some problems installing cnvkit using conda. It just hangs indefinitely. [micknudsen@work:~]$ conda create -n test cnvkit ...
Read more >
Travis CI suddenly fails: conda command not found
I've never had a problem with my conda environment in my travis-ci build, but it's suddenly started failing. Here's my script
Read more >
Common Build Problems - Travis CI Docs
If your build is failing due to unexpected segmentation faults in the language interpreter, this may be caused by corrupt or invalid caches...
Read more >
[#ARROW-4373] [Packaging] Travis fails to deploy conda packages ...
[Packaging] Travis fails to deploy conda packages on OSX. Status: Assignee: Priority: Resolution: Resolved. Krisztian Szucs.
Read more >
Using conda with Travis CI
If you are already using Travis CI, using conda is a preferable alternative ... This page describes how to use conda to test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found