Closed speleo3 closed 4 years ago
Dumb question: under which circumstances should the try fail and use the except clause? I would have throught that for a normal installation, we will always take the bundled file.
@orbeckst good question, I don't know (I'm not familiar with the history of this code). The parameters file can be specified with the --parameters
option, and the default value is already the absolute path from the pkg_resources
lookup. Maybe this try/except should be the other way round, first try the path as-is, then look it up from resources as the fallback?
That would make a lot more sense if you could override it from the command line.
@speleo3 did pip install .
work or does it generate the same error? Were you using the latest from https://github.com/Electrostatics/propka-3.1/tree/nathan/v3.2 ?
FWIW, I plan to nuke the https://github.com/Electrostatics/propka-3.1/tree/nathan/v3.2 fork after the 3.2 release is out.
@sobolevnrm it works with pip install .
and also with python setup.py install --single-version-externally-managed
. The difference is that those two options don't install an "egg" (which is a zip file) but a regular site-packages/propka
directory.
Yes I'm using the latest nathan/v3.2
@speleo3 is it OK to delete the branch associated with this PR?
Fixes the following error:
Result: