GithubHelp home page GithubHelp logo

Add debug/verbose logging about pyflow HOT 7 OPEN

david-oconnor avatar david-oconnor commented on June 25, 2024 1
Add debug/verbose logging

from pyflow.

Comments (7)

hms5232 avatar hms5232 commented on June 25, 2024 1

Leaving open to discuss logging.

I have same problem #139 and cmd show following info:

Found lockfile
thread 'main' panicked at 'Can't find a valid version for charset-normalizer', src\dep_resolution.rs:396:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Because I don't familiar with Rust, fail to show trace about this problem after attempting RUST_BACKTRACE=1 (tested on Windows 10).

In conclusion, I think that we should add some flag (like -v, -vv, -vvv, --debug, --show-backtrace or something else) to show backtrace and debug info. This can help user locate problem, and solve or report what they occurred.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

This certainly could be a bug; you're doing nothing wrong. Could you please post the [tool.pyflow.dependencies] section of pyproject.toml ?

from pyflow.

ciarancourtney avatar ciarancourtney commented on June 25, 2024

I doubt its a toml issue (unless it is..) you can recreate with in blank dir with:

pyflow init
pyflow install black

I'll try it out later on win/linux without msys

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Great. Are you able to install other dependencies?

Top pri: Fixing this error.
Secondary: Adding verbose logging. A quick option would be to replace the red error messages with full panic dumps. A more robust solution would be deliberately choosing what info to show at each failure point.

I'm leaning towards this being an error with the pydeps cache, but am curious why I can't reproduce.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Third option I like more: Once we knock out the bugs and get things running smooth, I think there's a relatively small surface error of failure points; may be able to just make these errors very descriptive and suggest fixes - it no PCLOADLETTERs, and no exposed panics. use custom-written error messages (ie the red text that shows from util::abort) vice expect to the max extent.

from pyflow.

ciarancourtney avatar ciarancourtney commented on June 25, 2024

Apologies, it was package related, assumed it was any package because bad package was in pyproject.yml all along, opened #16

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Leaving open to discuss logging.

from pyflow.

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.