Giter Site home page Giter Site logo

Comments (6)

smacke avatar smacke commented on May 21, 2024

Hi @shreyashankar, thanks so much for opening an issue. As you mentioned, these cryptic back-end error messages won't affect your ability to get work done etc, but they are definitely an annoyance.

I'm unfortunately having trouble reproducing the issue. This project is still a little bit in wild west land, so it's possible it was hotfixed already and should start behaving after an upgrade. What version are you on? (Latest is 0.0.56). You can check by running the following:

>>> import nbsafety
>>> nbsafety.version.__version__
'0.0.56'

from ipyflow.

smacke avatar smacke commented on May 21, 2024

(Also, it might go away after running pip install --upgrade nbsafety)

from ipyflow.

shreyashankar avatar shreyashankar commented on May 21, 2024

nbsafety.version.__version__ gives me AttributeError: module 'nbsafety' has no attribute 'version' but looking in my venv directory, I see that the version is 0.0.56. Sorry you are unable to reproduce the error, though! I will keep tinkering around slowly and let you know if I learn more about this issue.

from ipyflow.

smacke avatar smacke commented on May 21, 2024

Woops! I should have suggested import nbsafety.version

That's very interesting that the broken behavior is present on 0.0.56. Based on the example code to reproduce, I believe this is related to a stack unwinding mechanism used by nbsafety, in which case there could be some platform-dependent behavior depending on whether one is on Windows and which exact version of Python is being used.

Toward this end, I've tried testing on Windows, Ubuntu, and MacOS for all of 3.6, 3.7, 3.8, and 3.9, and unfortunately no dice. I bet I could reproduce if I knew the Python minor revision though.

Along those lines, could I trouble you for:
(a) the OS you're using, and
(b) the exact version of Python you're using?

Finally, I made an educated guess and published a new version, which can be installed via pip install --upgrade nbsafety. If you do happen to have a spare moment, would you be willing to run through your example code again and see whether the issue is still present?

Either way thank you so much for trying out nbsafety and for taking the time to open the issue in the first place! As you can probably see it's pretty tricky to support this functionality in a performant manner across a lot of different environments, so the more folks who take the time to report bugs, the less we're operating with a blindfold during development :)

from ipyflow.

shreyashankar avatar shreyashankar commented on May 21, 2024

I just upgraded to nbsafety-0.0.57 and do not see the problem anymore. Thanks for being super responsive! Closing the issue. :)

from ipyflow.

smacke avatar smacke commented on May 21, 2024

Awesome! Glad the fix did the trick.

from ipyflow.

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.