Skip to content

BUG: #38

@Austinthemighty

Description

@Austinthemighty

when running ork2json --filepath RocketPyTest.ork --ork_jar ../OpenRocket-24.12.jar --verbose True on Mac this error is reported:

2026-03-20 15:24:33,483 - WARNING - [ork2json] Output folder not specified. Using '.' instead.
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.jpype.JPypeContext in an unnamed module (file:/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/org.jpype.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.14/bin/ork2json", line 7, in <module>
    sys.exit(ork2json())
             ~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/click/core.py", line 1485, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/click/core.py", line 1406, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/click/core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/click/core.py", line 824, in invoke
    return callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/rocketserializer/cli.py", line 167, in ork2json
    with orhelper.OpenRocketInstance(ork_jar, log_level="OFF") as instance:
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/orhelper/_orhelper.py", line 53, in __enter__
    self.openrocket = jpype.JPackage("net").sf.openrocket
                      ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: Java package 'net' has no attribute 'sf'```

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