damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Providing an error message and creating an empty requirements.txt file

GG-Delta opened this issue · comments

Hey there,
I just installed your tool, but unfortunately I keep running into the following error: when typing the command pigar (being within the project folder) I get the following error:

12:21:14 parse /Users/user123/Coding/dwork01/ML_Pocket_Reference_M.H.ipynb:1 failed: SyntaxError('invalid syntax', ('', 78, 1, '!{sys.executable} -m pip install --upgrade setuptools\n', 78, 2))
Writing requirements to "/Users/user123/Coding/dwork01/requirements.txt"
Requirements file has been overwritten, no difference.

The resulting requirements.txt files is empty except for the following generic comment:
"# Automatically generated by https://github.com/damnever/pigar."

I am using pigar version 1.0.0 and I am running an virtual environment using virtualenvwrapper. I would be very grateful to you if you could point me to any solution or correcting any misunderstanding on my side.
Thanks a lot & all the best,
Gernot

Possible solution: #102

Try the main branch: pip install git+https://github.com/damnever/pigar.git@main --upgrade