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.

How to run on program without .py extension, and how to see usage message?

See original GitHub issue

My issues are best explained by looking at each of the commands I execute below and their output:

pc:~/my-prog ls -l
total 4
-rwxr-xr-x 1 mark mark 51 Oct 16 12:53 my-prog

pc:~/my-prog cat my-prog 
#!/usr/bin/env python3
print('This is my program')

pc:~/my-prog ../env/bin/vermin my-prog 
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin ./my-prog 
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin .
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin -h
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin --help
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin --version
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/vermin -v
Detecting python files..
No files specified to analyze!

pc:~/my-prog ../env/bin/pip list 
Package    Version
---------- -------
pip        19.3   
setuptools 40.8.0 
vermin     0.8.0  

So the issues I am asking about are:

  1. How can I run vermin on a python program without a .py extension?
  2. There seems to be no usage message? Nor a way to check the version?
  3. Also, I originally installed that env/ virtualenv dir within the source folder (like users normally do for a project) but there seems to be no way to stop vermin recursing through that dir?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
bulletmarkcommented, Oct 16, 2019

Thanks for that. Works much better.

Ran it as a test on my program and found a bug immediately!

0reactions
netromdkcommented, Oct 20, 2019

It gets shown because searching any number of possible folder structures can take time which is unknown before initiating the search. After the search is complete the concurrent analysis commences.

I guess it might be a verbose level one detail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does Python execute files without the .py extension?
You can use file extensions in order to know what file does what. A py file is known to run as Python and...
Read more >
How to run python files without typing python and extension
Step 2 : Make your python file executable. In terminal, go to your directory where your python file is located and type the...
Read more >
How to Run Python Programs ( .py files ) in Windows 10
In this tutorial you will learn How to run Python Programs ( . py files ) on windows 10 computer.We can use Python...
Read more >
How to Run a Python ( .py ) File in Windows 10 - YouTube
In this tutorial you will learn How to run Python ( . py ) files on windows 10 computer.Download and install Python in...
Read more >
Running python script from terminal without .py extension
In unix/linux everything is a file and responds to its file name. You can not call Script.py as script. Try renaming the file...
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