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.

"Could not determine minimum required versions!" <= is this really true?

See original GitHub issue

Describe the bug When vermin does not believe it determine minimum versions, the output is confusing and hard to interpret.

To Reproduce

$ vermin -v vermin/__init__.py vermin/printing.py
Detecting python files..
Analyzing 2 files using 4 processes..
             /c/Users/hwine/Desktop/wsl_test/vermin/vermin/__init__.py
2.0, 3.0     /c/Users/hwine/Desktop/wsl_test/vermin/vermin/printing.py
Minimum required versions: 2.0, 3.0

and

$ vermin -vvv vermin/__init__.py
Detecting python files..
Analyzing using 4 processes..
             /c/Users/hwine/Desktop/wsl_test/vermin/vermin/__init__.py
Could not determine minimum required versions!

Expected behavior I can’t discern the difference between the reports for the two files above. When I examine the files, I can not see any significant difference. I.e. why is one “2.0, 3.0” and the other “Could not determine…”.

That ambiguity makes the output harder to interpret. And harder to convince a coworker of the value. Which combines to make the tool seem less predictable. 😿

Environment (please complete the following information):

$ vermin
Vermin 0.6.2

Additional context

Here’s my use case: As a developer working on porting lots of legacy scripts and modules from py2 to py3, I want to know where to focus my effort.

With a slight change to the output, I think I’d have something I could not only explain easier to colleagues, but also drive a nice dashboard:

$ vermin -v vermin/__init__.py vermin/printing.py
Detecting python files..
Analyzing 2 files using 4 processes..
2    3       /c/Users/hwine/Desktop/wsl_test/vermin/vermin/__init__.py
2.0, 3.0     /c/Users/hwine/Desktop/wsl_test/vermin/vermin/printing.py
Minimum required versions: 2.0, 3.0

Where 2 & 3 means “vermin sees no reason this won’t work in that version”.

The value of the -vvv line/function output is tremendous in a large migration. But I need to be able to sell the outer layer as well.

I understand these are “sugar coating”, and may not fit your vision. Would there be any objection to finessing the output as above behind a --pretty flag? I could take a run at a PR for that.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
netromdkcommented, Aug 30, 2019

Thanks for the feedback, @hwine 😃

1reaction
netromdkcommented, Aug 30, 2019

I am using ~2 and ~3 already? !2 or !3 is already used if that version doesn’t support a given feature.

Hm yeah, I will change the wording somewhat. Good idea wrt. reporting: can just add the “https://github.com/netromdk/vermin/issues/” at the end of the line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I specify the required Node.js version in package.json?
You can set the engines field in your package.json and set requirements for either node or npm versions or both: "engines" : {...
Read more >
Dependency Management With Python Poetry
Learn how Python Poetry will help you start new projects, maintain existing ones, and master dependency management.
Read more >
Troubleshoot Tableau Server Install and Upgrade
Install fails due to hardware requirements. Tableau Server cannot install if the computer you are installing on does not meet the minimum hardware...
Read more >
Chrome browser system requirements - Google Support
Your computer should meet the minimum system requirements before you ... It's possible that Chrome might install on other platforms or versions not...
Read more >
What's new in 1.5.0 (September 19, 2022) - Pandas
The following table lists the lowest version per library that is currently being tested throughout the development of pandas. Optional libraries below the...
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