GithubHelp home page GithubHelp logo

Comments (8)

enielse avatar enielse commented on June 16, 2024

Thanks for alerting us to this! I think I've located and fixed the problem in the new 0.9.4.1 release. The only change in this release is the fix that should allow the PyPi install to work properly on all platforms. So doing pip install --upgrade pygsti should fix this issue.

from pygsti.

AdriaanRol avatar AdriaanRol commented on June 16, 2024

@enielse I tested your updated pypi version of pygsti.

Installation seems to work OK however when I try to import it import pygsti I get a bunch of import errors (see below). Again, these occur both on our online test builds (that depend on pygsti) and should emulate a linux system as well as on my laptop (mac)

screenshot 2018-03-20 09 18 51

screenshot 2018-03-20 09 19 00

For completeness, this is PyGSTi 0.9.4.1

from pygsti.

enielse avatar enielse commented on June 16, 2024

Ok, we're making progress. I think I've fixed the ModuleNotFoundError in the new version 0.9.4.3 (I had fixed most of the issues in 0.9.4.2 then realized I missed one, hence the 0.9.4.3 - sorry for all the version number shenanigans). Please try pip install --upgrade pygsti again and let me know if the import works.

from pygsti.

AdriaanRol avatar AdriaanRol commented on June 16, 2024

I just tested version 0.9.4.3 from PyPi. It works fine on my laptop but my online builds (e.g., https://travis-ci.org/DiCarloLab-Delft/PycQED_py3/jobs/355364326) are still failing on pygsti.

It looks like it is because one of the requirements for pygsti (ply ) is missing. I checked that pypi lists this as a requirement and that my online build correctly reported 0.9.4.3 .

My guess is that somehow the pip install pygsti does not correctly install the requirements but I'm not sure.

A temporary workaround could be me adding ply to the requirements of our package but that seems a bit hacky.

from pygsti.

enielse avatar enielse commented on June 16, 2024

Adriaan - I haven't forgotten about this and even think I may have figured out the problem. After I do a few more checks I should get a 0.9.4.4 version for you to try, and hopefully that will fix your TravisCI builds.

from pygsti.

enielse avatar enielse commented on June 16, 2024

Ok - version 0.9.4.4 is up. I've been improving the way we test the pypi distributions, and this one seems to correctly pull in ply in all the tests I've run -- let me know if it does for you (fingers crossed).

from pygsti.

AdriaanRol avatar AdriaanRol commented on June 16, 2024

@enielse I can confirm that the new release solved my problem. Tests are passing again. Thanks!

from pygsti.

enielse avatar enielse commented on June 16, 2024

Great - so just to summarize for folks looking at this later on:

  • pip install is broken in pyGSTi 0.9.4 (in various ways; see above posts)
  • after 4 minor releases we've been able to get our act together, and pyGSTi 0.9.4.4 (and later hopefully!) fixes this issue.

from pygsti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.