melianmiko / zmake

Unofficial ZeppOS build system, for Smart Band 7
https://melianmiko.ru/en/zmake/
GNU General Public License v3.0
41 stars 5 forks source link

Could not find a version that satisfies the requirement PySide2==5.15.2.1 #5

Closed emircanerkul closed 1 year ago

emircanerkul commented 1 year ago

Hi @melianmiko

Trying to build zmake but got this error.

Collecting Pillow==9.4.0
  Using cached Pillow-9.4.0-cp310-cp310-macosx_11_0_arm64.whl (3.0 MB)
ERROR: Could not find a version that satisfies the requirement PySide2==5.15.2.1 (from versions: none)
ERROR: No matching distribution found for PySide2==5.15.2.1

Mac M1 Python 3.10.11

emircanerkul commented 1 year ago

BTW, idk but ZeppPlayer was built via Mac M1 today. I just wanted to try from scratch and it just worked. Trying to same for this zmake but it started with errors..

melianmiko commented 1 year ago

Looks like PySide2 isn't available for macOS on arm64, it's Intel-only.

Try to install and use Intel version of Python.

Screenshot_20230424_155653_Bromite_1.jpg

emircanerkul commented 1 year ago

@melianmiko okay, tried but this one but it automatically detect and install arm64 automatically how can i force to use intel version?

image

Can i use this version?

image
melianmiko commented 1 year ago

I don't know, I have only access to an Intel-based macOS emulator ¯⁠\⁠⁠(⁠ツ⁠)⁠⁠/⁠¯

Only thing that I know: already build binaries works well on M1-based mac's.

melianmiko commented 1 year ago

PySide6 is available for both Intel & ARM macOS, but migrating to that version will take... time. Mostly because 2 of 3 macOS virtual machines can't boot, again, and I'll need to reinstall OS at least in one of them.

I'll return to that later.

emircanerkul commented 1 year ago

@melianmiko I replaced and sent PR. But It does not built.

image

But I already have it

➜ ~ whereis esbuild
esbuild: /opt/homebrew/bin/esbuild

melianmiko commented 1 year ago

Looks like /opt/homebrew/bin isn't in system-level PATH variable.

I'll fix that in a few hours.

emircanerkul commented 1 year ago

@melianmiko okay, thank you

melianmiko commented 1 year ago

Do git pull and try to build & run again, added external tools lookup for /opt/homebrew/bin directory .

And also configured support of both PySide6 and PySide2, because Qt6 dropped support of macOS 10.15, which is used with a big part of Russian ZMake/ZeppPlayer users. (big part of macOS users of course, in total most of our people use windows 10-11)

emircanerkul commented 1 year ago

@melianmiko okay thank you now works really great

I think there is no --watch mode right? If that comes true that would be really great to see in live preview mode.

melianmiko commented 1 year ago

Btw if we do not needed why this package already there

It won't be included into the dist directory and build bundle.

--watch

Maybe, later...

emircanerkul commented 1 year ago

Thank you, have a good day..

melianmiko commented 1 year ago

I think this issue is fixed, and can be closed.

Upd. Ough, I didn't see previous messages...

emircanerkul commented 1 year ago

Yep