Skip to content

Fpy compilation issue fpy v0.3.1 #4609

@Brian-Campuzano

Description

@Brian-Campuzano
F´ Version v4.1.2*
Affected Component Fpy compiler

Problem Description

I was attempting to compile an Fpy sequence with a pre-release version of the F' GDS and ran into a compilation error. It looks like some path changes were missed when Fpy was split from the fprime-gds repo to a standalone repo.

Traceback (most recent call last):
  File "/home/campuzan/projects/monarch/.venv/bin/fprime-fpyc", line 4, in <module>
    from fpy.main import compile_main
  File "/home/campuzan/projects/monarch/.venv/lib/python3.11/site-packages/fpy/main.py", line 23, in <module>
    from fpy.compiler import text_to_ast, ast_to_directives
  File "/home/campuzan/projects/monarch/.venv/lib/python3.11/site-packages/fpy/compiler.py", line 20, in <module>
    from fprime_gds.common.fpy.bytecode.directives import Directive
ModuleNotFoundError: No module named 'fprime_gds.common.fpy'

Context / Environment

Execute fprime-util version-check and share the output.

Operating System: Linux
CPU Architecture: x86_64
Platform: Linux-6.6.87.2-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python version: 3.11.0rc1
CMake version: 3.26.0
Pip version: 25.3
Pip packages:
    fprime-tools==4.1.0
    fprime-gds==4.1.1a2
    fprime-fpp==3.1.0
Project submodules:
    https://github.com/nasa/fprime.git @ v4.1.1-25-gc5200308e

How to Reproduce

  1. Attempt to compile an fpy seqeunce using fpy v0.3.1

Expected Behavior

Expect to be able to compile an fpy sequence

Metadata

Metadata

Labels

FpyIssues pertaining to the FpySequencerbug

Type

No type

Projects

Status

CCB

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions