Im trying to run some open source code I downloaded from github: https://github.com/augustoqm/MCLRE
The code is running from my mac shell. When it reaches the subprocess.Popen() function it raise an "OSError: [Errno 8] Exec format error".
The code:
Start the new process
mrbpr_cmd_args = '%s -m %s -d %s -u %s -n %s -o %s -k %d -s %d -h %d -l %f -f %d -i %d -a %s -e "%s" -r "%s" -M %s' \ % (mrbpr_bin_path, meta_file, train_files, test_users_file, test_candidates_file, output_dir, rank_size, \ save_model, algorithm, learn_rate, num_fact, num_iter, relation_weights, regularization_per_entity, \ regularization_per_entity, model_name)
proc = subprocess.Popen(shlex.split(mrbpr_cmd_args), shell=True)
When I print "mrbpr_cmd_args" variable the results are:
/Users/nastia/Desktop/MCLRE-master/src/recommender_execution/mrbpr/mrbpr.bin -m /Users/nastia/Desktop/MCLRE-master/data/experiments/recsys-15/bpr-net_meetup.meta -d /Users/nastia/Desktop/MCLRE-master/data/partitioned_data/san_jose/partition_12/mrbpr/user-event-rsvp_train.tsv,/Users/nastia/Desktop/MCLRE-master/data/partitioned_data/san_jose/partition_12/mrbpr/user-user-same-group_train.tsv,/Users/nastia/Desktop/MCLRE-master/data/partitioned_data/san_jose/partition_12/mrbpr/user-user-same-event_train.tsv -u /Users/nastia/Desktop/MCLRE-master/data/partitioned_data/san_jose/partition_12/mrbpr/users_test.tsv -n /Users/nastia/Desktop/MCLRE-master/data/partitioned_data/san_jose/partition_12/mrbpr/event-candidates_test.tsv -o /Users/nastia/Desktop/MCLRE-master/data/experiments/recsys-15/san_jose/recommendations/partition_12/mrbpr -k 100 -s 0 -h 0 -l 0.100000 -f 200 -i 600 -a 0.25,0.15,0.6 -e "" -r "" -M BPR-NET_200-0.1-600-0.25:0.15:0.6
Can anyone please tell me what is wrong with this args?