Skip to content

Python 3.14 incompatibility #686

@MilesCranmer

Description

@MilesCranmer

Affects: Both

Describe the bug

Python 3.14 is now released and seems to introduce the following error at import:

Python 3.14.0 | packaged by conda-forge | (main, Oct  7 2025, 20:20:06) [Clang 20.1.8 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import juliacall
[juliapkg] Found dependencies: /Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliapkg/juliapkg.json
[juliapkg] Found dependencies: /Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliacall/juliapkg.json
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import juliacall
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliacall/__init__.py", line 311, in <module>
    init()
    ~~~~^^
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliacall/__init__.py", line 178, in init
    CONFIG['exepath'] = juliapkg.executable()
                        ~~~~~~~~~~~~~~~~~~~^^
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliapkg/deps.py", line 610, in executable
    resolve()
    ~~~~~~~^^
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliapkg/deps.py", line 475, in resolve
    compat, pkgs = find_requirements()
                   ~~~~~~~~~~~~~~~~~^^
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliapkg/deps.py", line 351, in find_requirements
    compats[fn + " (OpenSSL_jll)"] = Compat.parse(jc)
                                     ~~~~~~~~~~~~^^^^
  File "/Users/mcranmer/PermaDocuments/SymbolicRegressionMonorepo/PySR/tmp/.pixi/envs/default/lib/python3.14/site-packages/juliapkg/compat.py", line 56, in parse
    if verstr.strip():
       ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

cc @cjdoris

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions