Skip to content

Python 3.14 incompatibility #686

Closed
Closed

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

Activity

  1. cjdoris commented on Oct 8, 2025

    @cjdoris
    Member

    Ack my earlier fix in juliapkg for Julia 1.12 contained a bug. I'm on it.

    On the plus side it means Python 3.14 will work with Julia 1.12!

  2. cjdoris commented on Oct 8, 2025

    @cjdoris
    Member

    juliapkg 0.1.22 released - two releases in a day! 😄

  3. MilesCranmer commented on Oct 8, 2025

    @MilesCranmer
    ContributorAuthor

    Amazing, thank you @cjdoris !! 🫡

  4. cjdoris commented on Oct 8, 2025

    @cjdoris
    Member

    My pleasure! Please verify it works and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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