Page 1 of 1

Error building for windows

Posted: Tue Jul 29, 2014 10:09 pm
by lokro
I have cloned the lastest from git developer branch.

Windows 8.1 64bit
Python 2.7 32 bit (all dependencies install)

When I run python setup.py clean -a or python setup.py build I get the following error.

Code: Select all

Traceback (most recent call last):
  File "setup.py", line 338, in <module>
    version = get_version(prefix='deluge-', suffix='.dev0'),
  File "c:\Users\Matt\GitHub\deluge\version.py", line 61, in get_version
    raise ValueError("Cannot find the version number!")
ValueError: Cannot find the version number!
I also tried to build from your repo at http://git.deluge-torrent.org/deluge and got the same error with deluge-1.4.0.dev0

Re: Error building for windows

Posted: Wed Jul 30, 2014 9:18 am
by Cas
Are you running that from a git bash cmd prompt?

The version script requires git to create a RELEASE_VERSION file, you could create the file manually but using git prompt should work.

Re: Error building for windows

Posted: Wed Jul 30, 2014 3:53 pm
by lokro
That worked, thanks for the help!

Re: Error building for windows

Posted: Tue Sep 11, 2018 9:31 pm
by hyyz17200
Cas wrote:Are you running that from a git bash cmd prompt?

The version script requires git to create a RELEASE_VERSION file, you could create the file manually but using git prompt should work.
I tried with git pulled folder, use git bash, it works.
But, If I download the zip source file, extract, then it doesn't work. Still "Cannot find the version number!".
How to solve?

Re: Error building for windows

Posted: Tue Sep 11, 2018 10:10 pm
by DjLegolas
Try creating a new text file named "RELEASE-VERSION" and enter the value "2.0.0.dev7192" to it.