Closed
Description
> julia --version
julia version 1.8.0-DEV
> python -m juliacall
Traceback (most recent call last):
...
File "/home/lapeyre/code/github/cjdoris/PythonCall/juliacall/semver.py", line 59, in __init__
self.parts = tuple(map(int, src))
ValueError: invalid literal for int() with base 10: '0-DEV'
PythonCall.jl master branch 05237b2
This appears to have been introduced in EDIT: cb207df the most recent commit.
The following prevents the error:
elif isinstance(src, str):
src = src.strip().split('.')
if len(src) == 3:
prerel = src[2].split('-')
if len(prerel) == 2:
src[2] = prerel[0]
self.prerel = prerel[1]
But, this just ignores the prerelease DEV
. And the version is accepted. Also, the string being processed "1.8.0-DEV" does not include the prerelease number. That is:
julia> VERSION
v"1.8.0-DEV.1455"
Metadata
Metadata
Assignees
Labels
No labels