katholt / srst2

Short Read Sequence Typing for Bacterial Pathogens
Other
123 stars 65 forks source link

file scores_vs_expected.py seems missing #66

Closed PWSmit closed 8 years ago

PWSmit commented 8 years ago

Hi Kat and others,

I tried to install srst2 today and run into some issues which seems to be related to missing file called scores_vs_expected.py. using the git clone command, followed by pip install.

When I copied that file from srst2-0.1.7.zip version and placed in into my directory I got it installed (i.e. it says it got installed). However, the installation is not very successful as, when asking for the current version, it gives out random things (see below).

Could you please direct me to the right version of that file? Many thanks in advance,

Pieter Smit

Traceback (most recent call last): File "/usr/local/bin/srst2", line 9, in load_entry_point('srst2==0.1.8', 'console_scripts', 'srst2')() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python3.4/dist-packages/srst2/srst2.py", line 306 print "Warning! MLST delimiter is " + delimiter + " but these genes may violate the pattern and cause problems:" ^ SyntaxError: Missing parentheses in call to 'print' Traceback (most recent call last): File "/usr/local/bin/srst2", line 9, in load_entry_point('srst2==0.1.8', 'console_scripts', 'srst2')() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python3.4/dist-packages/srst2/srst2.py", line 306 print "Warning! MLST delimiter is " + delimiter + " but these genes may violate the pattern and cause problems:" ^ SyntaxError: Missing parentheses in call to 'print'

PWSmit commented 8 years ago

downloading rather than cloning version 1.8 contained the right files.. solved. Sorry!

stephenturner commented 8 years ago

Should probably reopen this. The installation instructions call for a git clone, and for whatever reason, this script is not tracked/pushed, and build fails.

katholt commented 8 years ago

This occurred because this script was removed from the repo, but still referenced in setup.py. This has now been fixed.