Click here to Skip to main content
15,914,162 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,
I'm certainly not a python guy by trade - but I'm trying to run a sample execution of the project located at GitHub - vibansal/ancestry: program to estimate admixture coefficients from individual genotype or sequence data[^] .

The commands given in the "how to run" section are apparently incomplete. The first step is to run the make file, and I get that MAKE is a function in python to run a series of commands to set up the directory so that the actual runancestry.py file can run smoothly.

I have tried running the command to make from a variety of means... any way I try to execute it, it seems to get hung up on the function "make" itself. Here's what I get:

xxx@xxx MINGW64 ~/Documents/GitHub/ancestry (master)
$ python -c make
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'make' is not defined

Needless to say, this is not going well. Can I get some help? All the documentation or tutorials make it look so trivial and those commands are not working.

What I have tried:

I have tried running this from bash, cmd, and the python command line and in all cases the result is that it tries to open or run a file called make instead of recognizing that make is a function and running the Makefile.

I have the most up-to-date versions of python 3.x and 2.x installed. I started with 3 but what I see is syntactically a nightmare as it was written earlier and I don't have the wherewithal to try and monkey with the actual script too much. As such, assume that all my efforts to try have been using the 2.x syntax and where appropriate, command prompts.

In all cases I've changed the current working directory to the directory in which the python and makefile are both located... C:/Users/xxx/Documents/GitHub/ancestry
Posted
Updated 9-Apr-18 9:12am
Comments
Richard MacCutchan 10-Apr-18 4:02am    
Look at the README.md file which explains how to run it.

1 solution

make[^] is a build tool and has nothing to do with python... the python command line tool is intended to run python programs and not make... You run make without python (it is a pre compiled C application)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900