Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] [conda] [xnd/label/dev] Functions don't work with xnd.array #38

Open
hameerabbasi opened this issue May 27, 2019 · 8 comments
Open

Comments

@hameerabbasi
Copy link
Contributor

gumath functions don't work on xnd.array currently.

>>> import gumath.functions as fn
>>> import xnd
>>> a = xnd.array(5.0)
>>> a
array(5.0, type='float64')
>>> fn.add(a, a, cls=xnd.array)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid dtype
@skrah
Copy link
Member

skrah commented May 27, 2019

I did a fresh checkout of all three libraries and I cannot reproduce this:

>>> import gumath.functions as fn
>>> import xnd
>>> a = xnd.array(5.0)
>>> a
array(5.0, type='float64')
>>> fn.add(a, a, cls=xnd.array)
array(10.0, type='float64')

Same in xnd-all:

>>> import gumath.functions as fn
>>> import xnd
>>> a = xnd.array(5.0)
>>> a
array(5.0, type='float64')
>>> fn.add(a, a, cls=xnd.array)
array(10.0, type='float64')

@skrah skrah closed this as completed May 27, 2019
@hameerabbasi
Copy link
Contributor Author

Are the packages uploaded to conda?

@skrah
Copy link
Member

skrah commented May 27, 2019

They are, after passing the unit tests (which should hopefully catch this). I'm also getting the latest revisions from xnd/label/dev:

https://travis-ci.org/xnd-project/xnd-all/jobs/537698718#L4247

@skrah skrah reopened this May 27, 2019
@skrah skrah changed the title Functions don't work with xnd.array [conda] [xnd/label/dev] Functions don't work with xnd.array May 27, 2019
@skrah
Copy link
Member

skrah commented May 27, 2019

Weird, perhaps something like --skip-existing is broken in the upload.

@skrah skrah changed the title [conda] [xnd/label/dev] Functions don't work with xnd.array [CI] [conda] [xnd/label/dev] Functions don't work with xnd.array May 27, 2019
@skrah
Copy link
Member

skrah commented May 27, 2019

Okay, if one builds the conda packages manually according to xnd-all/.travis.yml the example works, too.

So it looks like an upload/anaconda.org issue. I'll print the sha256sum of the packages in the next build.

@skrah
Copy link
Member

skrah commented May 27, 2019

It seems to have been "fixed" by the following steps:

  1. I removed all previous dev packages from anaconda.org.

  2. I cleaned all xnd related packages from miniconda3/pkgs/, which for some reason were not removed by conda-build purge xnd etc.

  3. I reinstalled conda install -c xnd/label/dev gumath.

I'm not sure why it works now, because conda install has always showed the correct latest GitHub revisions when installing.

@hameerabbasi
Copy link
Contributor Author

Yes, usually conda update —all does it but this time I needed to update them manually by specifying the name and the channel.

I’ll keep this open in case there are any update issues but my immediate issue has been resolved.

@hameerabbasi
Copy link
Contributor Author

What’s even weirder is that I first got the packages in the environment after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants