Skip to content

symbol not found in flat namespace #216

@chipkent

Description

@chipkent

On a MacOS: 15.6.1

#!/bin/sh

rm -rf venv
python3.12 -m venv venv
./venv/bin/pip install mypy jpy

source venv/bin/activate
python

Then run:

import jpy

This results in:

chip@Chips-MacBook-Pro py-typehints % source venv/bin/activate
((venv) ) chip@Chips-MacBook-Pro py-typehints % python
Python 3.12.11 (main, Jun  3 2025, 15:41:47) [Clang 17.0.0 (clang-1700.0.13.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/chip/TEMP/DELETE_ME/py-typehints/venv/lib/python3.12/site-packages/jpy.cpython-312-darwin.so, 0x0002): symbol not found in flat namespace '_JNI_CreateJavaVM'
((venv) ) chip@Chips-MacBook-Pro py-typehints % pip list | grep jpy
jpy               1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions