Skip to content

fletd issue ‘dyld: Symbol not found: _utimensat’ on macOS 10.12.6 #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ybz-zh opened this issue Dec 28, 2022 · 4 comments
Closed

Comments

@ybz-zh
Copy link

ybz-zh commented Dec 28, 2022

Description

Code example to reproduce the issue:

import flet as ft
def main(page: ft.Page):
    # add/update controls on Page
    pass
ft.app(target=main)

Error message

Flet version:
flet-0.2.4

Python version:
Python-3.7.5

macOS version:
10.12.6

@ndonkoHenri
Copy link
Contributor

Can you try this instead please?

import flet as ft

def main(page: ft.Page):
    t = ft.Text(value="Hello, world!", color="green")
    page.controls.append(t)
    page.update()

ft.app(target=main)

You should be able to see a "Hello World".
Let me have your feedback if your said issue persists.

@FeodorFitsner
Copy link
Contributor

I don't think Flutter 3.x is compatible with macOS Sierra.

Despite the official docs are saying "macOS 10.11 and later" I think that was for Flutter 2.x or docs are just not updated. Look, there is an issue to increase macOS requirements from 10.11 to 10.13 which is merged on July and there is even another issue (still open) to bump it even further from 10.13 to 10.14 (Mojave which is EOT a year ago).

@ybz-zh
Copy link
Author

ybz-zh commented Dec 29, 2022

Thanks :) @ndonkoHenri @FeodorFitsner

Looks like a incompatibility issue.

$ ./fletd -v
0.2.4
$ ./fletd
INFO[2022-12-29T20:47:01+08:00] Using in-memory cache
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release
  • using code: gin.SetMode(gin.ReleaseMode)
    ...
    $ sw_vers
    ProductName: Mac OS X
    ProductVersion: 10.14.6

$ ./fletd -v
dyld: Symbol not found: _utimensat
Referenced from: /Users/xxx/.flet/bin/fletd-0.2.4/./fletd
Expected in: flat namespace

Abort trap: 6
$ ./fletd
dyld: Symbol not found: _utimensat
Referenced from: /Users/xxx/.flet/bin/fletd-0.2.4/./fletd
Expected in: flat namespace

Abort trap: 6
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.6

@ybz-zh ybz-zh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2022
@ybz-zh ybz-zh reopened this Dec 29, 2022
@FeodorFitsner
Copy link
Contributor

Go is in the same situation: golang/go#50855 - recent versions of Go are not compatible with macOS 10.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants