ftldat icon indicating copy to clipboard operation
ftldat copied to clipboard

python setup.py install not working

Open TheHeroBrine422 opened this issue 10 years ago • 5 comments

full log of error: Calebs-Mac:ftldat-master caleb$ python setup.py install Traceback (most recent call last): File "setup.py", line 8, in version=get_git_version(), File "/Users/caleb/Desktop/ftldat-master/get_git_version.py", line 90, in get_git_version raise ValueError("Cannot find the version number!") ValueError: Cannot find the version number!

TheHeroBrine422 avatar Mar 08 '15 03:03 TheHeroBrine422

Did you use git or did you download a ZIP from github?

bwesterb avatar Mar 08 '15 09:03 bwesterb

download ZIP

On Sun, Mar 8, 2015 at 4:21 AM, Bas Westerbaan [email protected] wrote:

Did you use git or did you download a ZIP from github?

— Reply to this email directly or view it on GitHub https://github.com/bwesterb/ftldat/issues/2#issuecomment-77740521.

TheHeroBrine422 avatar Mar 16 '15 23:03 TheHeroBrine422

'describe' wasn't working for me, so i changed it to '--version'... like so:

$ diff get_git_version.py.old get_git_version.py
41c41
<         p = Popen(['git', 'describe', '--abbrev=%d' % abbrev],
---
>         p = Popen(['git', '--version', '--abbrev=%d' % abbrev],

and it worked! :)

todlo avatar Mar 17 '15 19:03 todlo

There's function get_git_version() that reads file "RELEASE-VERSION", which is missing and call

Popen(['git', 'describe', '--abbrev=%d' % abbrev],
                  stdout=PIPE, stderr=PIPE)

assumes you have a git command line installed and, actually, git project cloned locally. I'd recommend to move that into a param file or global variables. Or update dependencies. [EDIT] Well you can't add it to dependencies and have it working since get_git_version is called before dependencies are checked (probably)

KamodaP avatar Sep 23 '16 09:09 KamodaP

This is a terrible installation instructions

Killbot69 avatar Jun 09 '19 00:06 Killbot69