nedbat / cog

Small bits of Python computation for static files
MIT License
340 stars 26 forks source link

bash: /cygdrive/f/Python/Scripts/cog.py: No such file or directory #10

Closed evandrocoan closed 4 years ago

evandrocoan commented 4 years ago

I just installed this and it does not run:

Professional@PROFESSIONAL-PC$ cog.py -r tinyformat.h
F:\python\python.exe: can't open file '/cygdrive/f/Python/Scripts/cog.py': [Errno 2] No such file or directory

Professional@PROFESSIONAL-PC$ pip3 uninstall cogapp
Uninstalling cogapp-3.0.0:
  Would remove:
    f:\python\lib\site-packages\cogapp-3.0.0.dist-info\*
    f:\python\lib\site-packages\cogapp\*
    f:\python\scripts\cog.exe
    f:\python\scripts\cog.py
Proceed (y/n)? y
  Successfully uninstalled cogapp-3.0.0

Professional@PROFESSIONAL-PC$ /usr/bin/pip3.6 install cogapp
Collecting cogapp
  Downloading https://files.pythonhosted.org/packages/83/16/463c1487939f55f5f5f13d82b9928762692bd8cf59db711f2345fed9ad0e/cogapp-3.0.0-py2.py3-none-any.whl
Installing collected packages: cogapp
Successfully installed cogapp-3.0.0
WARNING: You are using pip version 19.1.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Professional@PROFESSIONAL-PC$ cog.py -r tinyformat.h
bash: /cygdrive/f/Python/Scripts/cog.py: No such file or directory

Professional@PROFESSIONAL-PC$ /usr/bin/pip3.6 uninstall cogapp
Uninstalling cogapp-3.0.0:
  Would remove:
    /usr/bin/cog
    /usr/bin/cog.py
    /usr/lib/python3.6/site-packages/cogapp-3.0.0.dist-info/*
    /usr/lib/python3.6/site-packages/cogapp/*
Proceed (y/n)? y
  Successfully uninstalled cogapp-3.0.0

Professional@PROFESSIONAL-PC$ /usr/bin/pip2.7 install cogapp
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting cogapp
  Using cached https://files.pythonhosted.org/packages/83/16/463c1487939f55f5f5f13d82b9928762692bd8cf59db711f2345fed9ad0e/cogapp-3.0.0-py2.py3-none-any.whl
Installing collected packages: cogapp
Successfully installed cogapp-3.0.0
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Professional@PROFESSIONAL-PC$ cog.py -r tinyformat.h
bash: /cygdrive/f/Python/Scripts/cog.py: No such file or directory

Professional@PROFESSIONAL-PC$
evandrocoan commented 4 years ago

Fixed by calling cog -r tinyformat.h instead of cog.py -r tinyformat.h