hindsight icon indicating copy to clipboard operation
hindsight copied to clipboard

Hinsight.py not executable after pypi installation

Open aarontp opened this issue 3 years ago • 0 comments

Describe the problem hindisght.py isn't executable directly from pypi package. There are a couple small issues: The first one is that it doesn't have the executable bit set. After making it executable though, it still complains about the interpreter not existing, which looks like it comes from windows newlines in the file. Executing directly with python works just fine.

Screenshots or Console Output

$ virtualenv hindsighttest
$ . hindsighttest/bin/activate
$ pip install pyhindsight
$ which hindsight
$ chmod 755 hindsighttest/bin/hindsight.py
$ hindsight.py -h
/usr/bin/env: ‘python3\r’: No such file or directory

$ hexdump -C hindsighttest/bin/hindsight.py | head -n 2
00000000  23 21 2f 75 73 72 2f 62  69 6e 2f 65 6e 76 20 70  |#!/usr/bin/env p|
00000010  79 74 68 6f 6e 33 0d 0a  0d 0a 22 22 22 48 69 6e  |ython3...."""Hin|

Expected behavior Hindsight being executable after installation.

To Reproduce See console output.

hindsight.log Snippet N/A

System Details

$ uname -a
Linux myhostname 5.7.17-1-amd64 #1 SMP Debian 5.7.17-1 (2020-09-16) x86_64 GNU/Linux

Additional context N/A

aarontp avatar Nov 05 '20 21:11 aarontp