Closed emircanerkul closed 1 year ago
This project uses NodeJS, so additionally you'll need to do npm i
.
If you don't have npm
, install NodeJS from homebrew.
(venv) ➜ player git:(master) ✗ python make_release.py
> zeppplayer@1.5.6 build
> npm run browser:build && npm run cli:build
> zeppplayer@1.5.6 browser:build
> esbuild --bundle --outdir=app src/index.browser.js
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppPlayer.js:212:26:
212 │ const appJs = eval(str);
╵ ~~~~
You can read more about direct eval and bundling here:
https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppRuntime.js:70:24:
70 │ const fnc = eval(script)
╵ ~~~~
You can read more about direct eval and bundling here:
https://esbuild.github.io/link/direct-eval
2 warnings
app/index.browser.js 308.5kb
app/index.browser.css 2.1kb
⚡ Done in 26ms
> zeppplayer@1.5.6 cli:build
> esbuild --bundle --platform=node --external:canvas --outdir=app src/index.cli.js
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppPlayer.js:212:26:
212 │ const appJs = eval(str);
╵ ~~~~
You can read more about direct eval and bundling here:
https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppRuntime.js:70:24:
70 │ const fnc = eval(script)
╵ ~~~~
You can read more about direct eval and bundling here:
https://esbuild.github.io/link/direct-eval
2 warnings
app/index.cli.js 477.0kb
⚡ Done in 20ms
100 INFO: PyInstaller: 5.9.0
100 INFO: Python: 3.10.11
108 INFO: Platform: macOS-13.2.1-arm64-arm-64bit
111 INFO: UPX is not available.
111 INFO: Extending PYTHONPATH with paths
['/path/miband/player']
186 INFO: checking Analysis
192 INFO: Appending 'datas' from .spec
Unable to find "/path/miband/player/venv/lib/python3.11/site-packages/sv_ttk" when adding binary and data files.
Traceback (most recent call last):
File "/path/miband/player/make_release.py", line 79, in <module>
main()
File "/path/miband/player/make_release.py", line 25, in main
make_darwin()
File "/path/miband/player/make_release.py", line 56, in make_darwin
tar.add("dist/ZeppPlayer.app", recursive=True)
File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tarfile.py", line 1986, in add
tarinfo = self.gettarinfo(name, arcname)
File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tarfile.py", line 1865, in gettarinfo
statres = os.lstat(name)
FileNotFoundError: [Errno 2] No such file or directory: 'dist/ZeppPlayer.app'
(venv) ➜ player git:(master) ✗
Still getting error. After npm i
Fixed, do a git pull
and try python3 make_release.py
again
@melianmiko Thank you it worked. BTW same kind of problem there in zmake.
BTW same kind of problem there in zmake
I've seen your mail, will check later...
Thank you, one more @melianmiko
Executable and pkg does not work Should i do something else?
Executable and pkg does not work Should i do something else?
Looks like you're trying to launch files from the build
folder. Ready-to-use package should appear in dist
folder.
Oh, thats right thank you.
@melianmiko app does not open it does not say anything any crush any privacy request none. I also tried commandline one it also give
➜ ~ /Users/xx/Projects/miband/player/dist/ZeppPlayer/ZeppPlayer ; exit;
Traceback (most recent call last):
File "zp_server/__main__.py", line 1, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/main.py", line 17, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/web_server.py", line 10, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/user_config.py", line 5, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "tkinter/__init__.py", line 37, in <module>
ModuleNotFoundError: No module named '_tkinter'
[78456] Failed to execute script '__main__' due to unhandled exception: No module named '_tkinter'
[78456] Traceback:
Traceback (most recent call last):
File "zp_server/__main__.py", line 1, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/main.py", line 17, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/web_server.py", line 10, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "zp_server/user_config.py", line 5, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "tkinter/__init__.py", line 37, in <module>
ModuleNotFoundError: No module named '_tkinter'
Saving session...completed.
[Process completed]
By default, python in homebrew installs without tkinter. Check, is python-tk@3.10
package installed from brew...
Installed also recompiled it but same, should i add somewhere like requirement txt? @melianmiko ?
No, it should work as is..
I'll check later, I don't have access to osx for now. Have you tried to use pre-compiled version from my site? Maybe they will work?
@melianmiko Honestly, I do not trust closed apps
Ooooay, I can't check why this didn't build under fresh OSX releases, because my Monterey virtual machine died...
python3.10
Did you're used python3.10
from homebrew when creating virtualenv?
Because under Catalina with that version It's built successfully.
melianmiko@MelianMikos-iMac Documents % git clone https://github.com/melianmiko/ZeppPlayer.git
Cloning into 'ZeppPlayer'...
remote: Enumerating objects: 2370, done.
remote: Counting objects: 100% (691/691), done.
remote: Compressing objects: 100% (287/287), done.
remote: Total 2370 (delta 429), reused 649 (delta 391), pack-reused 1679
Receiving objects: 100% (2370/2370), 23.58 MiB | 1.98 MiB/s, done.
Resolving deltas: 100% (1477/1477), done.
melianmiko@MelianMikos-iMac Documents %
melianmiko@MelianMikos-iMac Documents % cd ZeppPlayer
melianmiko@MelianMikos-iMac ZeppPlayer % python3.10 -m venv venv
melianmiko@MelianMikos-iMac ZeppPlayer % source venv/bin/activate
(venv) melianmiko@MelianMikos-iMac ZeppPlayer % pip install -r requirements.txt
Ignoring PyGObject: markers 'sys_platform == "linux"' don't match your environment
Collecting pystray~=0.19.4
Using cached pystray-0.19.4-py2.py3-none-any.whl (48 kB)
Collecting bottle~=0.12.25
Downloading bottle-0.12.25-py3-none-any.whl (90 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.2/90.2 kB 296.1 kB/s eta 0:00:00
Collecting Pillow~=9.4.0
Using cached Pillow-9.4.0-2-cp310-cp310-macosx_10_10_x86_64.whl (3.3 MB)
Collecting sv_ttk==2.4.2
Downloading sv_ttk-2.4.2-py3-none-any.whl (49 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.1/49.1 kB 260.4 kB/s eta 0:00:00
Collecting requests==2.28.2
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting waitress~=2.1.2
Using cached waitress-2.1.2-py3-none-any.whl (57 kB)
Collecting pyinstaller==5.9
Downloading pyinstaller-5.9.0-py3-none-macosx_10_13_universal2.whl (924 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 924.5/924.5 kB 1.8 MB/s eta 0:00:00
Collecting mmk-updater==0.13.1
Using cached mmk_updater-0.13.1-py3-none-any.whl
Collecting watchdog==3.0.0
Downloading watchdog-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl (91 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.2/91.2 kB 704.9 kB/s eta 0:00:00
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 1.0 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl (124 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 124.8/124.8 kB 634.1 kB/s eta 0:00:00
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting altgraph
Using cached altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting macholib>=1.8
Using cached macholib-1.16.2-py2.py3-none-any.whl (38 kB)
Collecting pyinstaller-hooks-contrib>=2021.4
Downloading pyinstaller_hooks_contrib-2023.2-py2.py3-none-any.whl (261 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 262.0/262.0 kB 1.5 MB/s eta 0:00:00
Requirement already satisfied: setuptools>=42.0.0 in ./venv/lib/python3.10/site-packages (from pyinstaller==5.9->-r requirements.txt (line 8)) (65.6.3)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pyobjc-framework-Quartz>=7.0
Downloading pyobjc_framework_Quartz-9.1.1-cp310-cp310-macosx_10_9_universal2.whl (228 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 228.4/228.4 kB 788.2 kB/s eta 0:00:00
Collecting pyobjc-framework-Cocoa>=9.1.1
Downloading pyobjc_framework_Cocoa-9.1.1-cp310-cp310-macosx_10_9_universal2.whl (390 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 390.5/390.5 kB 1.4 MB/s eta 0:00:00
Collecting pyobjc-core>=9.1.1
Downloading pyobjc_core-9.1.1-cp310-cp310-macosx_10_9_universal2.whl (735 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 735.4/735.4 kB 2.0 MB/s eta 0:00:00
Installing collected packages: bottle, altgraph, watchdog, waitress, urllib3, sv_ttk, six, pyobjc-core, pyinstaller-hooks-contrib, Pillow, mmk-updater, macholib, idna, charset-normalizer, certifi, requests, pyobjc-framework-Cocoa, pyinstaller, pyobjc-framework-Quartz, pystray
Successfully installed Pillow-9.4.0 altgraph-0.17.3 bottle-0.12.25 certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 macholib-1.16.2 mmk-updater-0.13.1 pyinstaller-5.9.0 pyinstaller-hooks-contrib-2023.2 pyobjc-core-9.1.1 pyobjc-framework-Cocoa-9.1.1 pyobjc-framework-Quartz-9.1.1 pystray-0.19.4 requests-2.28.2 six-1.16.0 sv_ttk-2.4.2 urllib3-1.26.15 waitress-2.1.2 watchdog-3.0.0
[notice] A new release of pip available: 22.3.1 -> 23.1.1
[notice] To update, run: pip install --upgrade pip
(venv) melianmiko@MelianMikos-iMac ZeppPlayer % python make_release.py
(venv) melianmiko@MelianMikos-iMac ZeppPlayer % npm i
added 90 packages, and audited 91 packages in 11s
13 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.6.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.5
npm notice Run npm install -g npm@9.6.5 to update!
npm notice
(venv) melianmiko@MelianMikos-iMac ZeppPlayer % python make_release.py
> zeppplayer@1.5.6 build
> npm run browser:build && npm run cli:build
> zeppplayer@1.5.6 browser:build
> esbuild --bundle --outdir=app src/index.browser.js
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppPlayer.js:212:26:
212 │ const appJs = eval(str);
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppRuntime.js:70:24:
70 │ const fnc = eval(script)
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
2 warnings
app/index.browser.js 308.5kb
app/index.browser.css 2.1kb
⚡ Done in 48ms
> zeppplayer@1.5.6 cli:build
> esbuild --bundle --platform=node --external:canvas --outdir=app src/index.cli.js
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppPlayer.js:212:26:
212 │ const appJs = eval(str);
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
src/zepp_player/ZeppRuntime.js:70:24:
70 │ const fnc = eval(script)
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
2 warnings
app/index.cli.js 477.0kb
⚡ Done in 60ms
4403 INFO: PyInstaller: 5.9.0
4404 INFO: Python: 3.10.9
4479 INFO: Platform: macOS-10.15.7-x86_64-i386-64bit
4497 INFO: UPX is not available.
4500 INFO: Extending PYTHONPATH with paths
['/Users/melianmiko/Documents/ZeppPlayer']
4823 INFO: checking Analysis
4824 INFO: Building Analysis because Analysis-00.toc is non existent
4824 INFO: Initializing module dependency graph...
4852 INFO: Caching module graph hooks...
4863 INFO: Analyzing base_library.zip ...
6195 INFO: Loading module hook 'hook-heapq.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
6303 INFO: Loading module hook 'hook-encodings.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
7688 INFO: Loading module hook 'hook-pickle.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
9540 INFO: Caching module dependency graph...
9677 INFO: running Analysis Analysis-00.toc
9685 INFO: Analyzing /Users/melianmiko/Documents/ZeppPlayer/zp_server/__main__.py
9812 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-urllib3.packages.six.moves.py'.
10573 INFO: Loading module hook 'hook-charset_normalizer.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
10749 INFO: Loading module hook 'hook-certifi.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
10871 INFO: Loading module hook 'hook-PIL.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
10991 INFO: Loading module hook 'hook-PIL.Image.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
11707 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
12148 INFO: Loading module hook 'hook-platform.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
12186 INFO: Loading module hook 'hook-xml.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
12976 INFO: Loading module hook 'hook-pystray.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
16603 INFO: Processing pre-safe import module hook six.moves from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py'.
16683 INFO: Processing pre-safe import module hook gi from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-gi.py'.
17127 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
18184 INFO: Processing module hooks...
18441 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
18482 INFO: Loading module hook 'hook-_tkinter.py' from '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks'...
18486 INFO: checking Tree
18486 INFO: Building Tree because Tree-00.toc is non existent
18486 INFO: Building Tree Tree-00.toc
18526 INFO: checking Tree
18527 INFO: Building Tree because Tree-01.toc is non existent
18527 INFO: Building Tree Tree-01.toc
18540 INFO: checking Tree
18541 INFO: Building Tree because Tree-02.toc is non existent
18541 INFO: Building Tree Tree-02.toc
18685 INFO: Looking for ctypes DLLs
18696 INFO: Analyzing run-time hooks ...
18701 INFO: Including run-time hook '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/rthooks/pyi_rth_inspect.py'
18703 INFO: Including run-time hook '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/rthooks/pyi_rth__tkinter.py'
18705 INFO: Including run-time hook '/Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py'
18723 INFO: Looking for dynamic libraries
20660 INFO: Looking for eggs
20660 INFO: Using Python library /usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Python
20679 INFO: Warnings written to /Users/melianmiko/Documents/ZeppPlayer/build/ZeppPlayer.osx/warn-ZeppPlayer.osx.txt
20729 INFO: Graph cross-reference written to /Users/melianmiko/Documents/ZeppPlayer/build/ZeppPlayer.osx/xref-ZeppPlayer.osx.html
20779 INFO: Appending 'datas' from .spec
20825 INFO: checking PYZ
20825 INFO: Building PYZ because PYZ-00.toc is non existent
20825 INFO: Building PYZ (ZlibArchive) /Users/melianmiko/Documents/ZeppPlayer/build/ZeppPlayer.osx/PYZ-00.pyz
21381 INFO: Building PYZ (ZlibArchive) /Users/melianmiko/Documents/ZeppPlayer/build/ZeppPlayer.osx/PYZ-00.pyz completed successfully.
21400 INFO: EXE target arch: x86_64
21400 INFO: Code signing identity: None
21401 INFO: checking PKG
21401 INFO: Building PKG because PKG-00.toc is non existent
21401 INFO: Building PKG (CArchive) ZeppPlayer.pkg
21411 INFO: Building PKG (CArchive) ZeppPlayer.pkg completed successfully.
21413 INFO: Bootloader /Users/melianmiko/Documents/ZeppPlayer/venv/lib/python3.10/site-packages/PyInstaller/bootloader/Darwin-64bit/runw
21413 INFO: checking EXE
21413 INFO: Building EXE because EXE-00.toc is non existent
21413 INFO: Building EXE from EXE-00.toc
21413 INFO: Copying bootloader EXE to /Users/melianmiko/Documents/ZeppPlayer/build/ZeppPlayer.osx/ZeppPlayer
21414 INFO: Converting EXE to target arch (x86_64)
21546 INFO: Removing signature(s) from EXE
21723 INFO: Appending PKG archive to EXE
21729 INFO: Fixing EXE headers for code signing
21745 INFO: Rewriting the executable's macOS SDK version (12.1.0) to match the SDK version of the Python library (10.15.6) in order to avoid inconsistent behavior and potential UI issues in the frozen application.
21747 INFO: Re-signing the EXE
21842 INFO: Building EXE from EXE-00.toc completed successfully.
21846 INFO: checking COLLECT
21847 INFO: Building COLLECT because COLLECT-00.toc is non existent
21847 INFO: Building COLLECT COLLECT-00.toc
26907 INFO: Building COLLECT COLLECT-00.toc completed successfully.
26925 INFO: checking BUNDLE
26925 INFO: Building BUNDLE because BUNDLE-00.toc is non existent
26925 INFO: Building BUNDLE BUNDLE-00.toc
30817 INFO: Moving BUNDLE data files to Resource directory
31548 INFO: Signing the BUNDLE...
34011 INFO: Building BUNDLE BUNDLE-00.toc completed successfully.
(venv) melianmiko@MelianMikos-iMac ZeppPlayer % open dist
@melianmiko here is the build logs. 13.2.1 (22D68) Ventura M1 I'm using
⚡ Done in 21ms
183 INFO: PyInstaller: 5.9.0
183 INFO: Python: 3.10.11
191 INFO: Platform: macOS-13.2.1-arm64-arm-64bit
194 INFO: UPX is not available.
194 INFO: Extending PYTHONPATH with paths
['/Users/erkul/Projects/miband/player']
272 INFO: checking Analysis
279 INFO: Appending 'datas' from .spec
282 INFO: checking PYZ
285 INFO: EXE target arch: arm64
286 INFO: Code signing identity: None
286 INFO: checking PKG
286 INFO: Bootloader /Users/xx/Projects/miband/player/venv/lib/python3.10/site-packages/PyInstaller/bootloader/Darwin-64bit/runw
286 INFO: checking EXE
286 INFO: checking COLLECT
287 INFO: Building COLLECT COLLECT-00.toc
821 INFO: Building COLLECT COLLECT-00.toc completed successfully.
824 INFO: checking BUNDLE
825 INFO: Building BUNDLE BUNDLE-00.toc
1450 INFO: Moving BUNDLE data files to Resource directory
1524 INFO: Signing the BUNDLE...
1695 INFO: Building BUNDLE BUNDLE-00.toc completed successfully.
Terminal gives same error even i installed and restarted terminal and rebuilt the app
ModuleNotFoundError: No module named '_tkinter'
Warning: python-tk@3.10 3.10.11 is already installed and up-to-date.
I don't know why they don't build on your Mac. Looks like arm64
release of Tkinter or Pyinstaller is broken.
Possible solutions:
x86_64
versions of all dependencies;python3 -m zp_server
) and use it as is;I don't want to spend more time on that. For me, it would be easier to stop any support of macOS and tell 5 users of them to use wine
.
I always hate python due to such compatibility issues and unsupported backward capabilities. Actually, the best way is using docker to build and even run via vnc for such weird oldy languages...
No, this isn't a problem of Python. Windows and Linux versions work well. This is troubles created by Apple's limitations...
This application can ve successfully compiled with Python 3.10-3.11, but not for OSX.
I make dockerfile I built in linux then I copied It works.
FROM python:3.10.11
WORKDIR /app
COPY . .
LABEL maintainer="contact@emircanerkul.com"
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y libgirepository1.0-dev pkgconf gobject-introspection
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 14.18.1
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN pip install -r requirements.txt
RUN python make_release.py
to copy
id=$(docker create YOURCONTAINERID)
docker cp $id://app/dist/ZeppPlayer_v1.5.6_linux.tar.gz - > ZeppPlayer_v1.5.6_linux.tar.gz
docker rm -v $id
But another error. I'm using your https://github.com/melianmiko/SmartBand7-Apps yours does not work but firstly opened works good
errorSL:1Script load failedSyntaxError: Cannot use import statement outside a module
at ZeppRuntime.start (http://127.0.0.1:3195/app/index.browser.js:6581:26)
at async ChromeZeppPlayer.init (http://127.0.0.1:3195/app/index.browser.js:7466:9)
at async start2 (http://127.0.0.1:3195/app/index.browser.js:9118:5)
ZeppPlayerInit failed
ZeppPlayerSwitch toMainScreen.js(normal)
I have used
@melianmiko tried to create dockerfile which expose port and run simulator inside docker but at the end
this platform is not supported: Gtk could not be initialised
Got.
FROM python:3.10.11
WORKDIR /app
COPY . .
LABEL maintainer="contact@emircanerkul.com"
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y libgirepository1.0-dev pkgconf gobject-introspection python-tk libgtk-3-dev gir1.2-ayatanaappindicator3-0.1
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 14.18.1
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN pip install -r requirements.txt
RUN python make_release.py
WORKDIR /app/dist
RUN tar -xf ZeppPlayer_v1.5.6_linux.tar.gz
CMD python -m zp_server
EXPOSE 3195
another error. I'm using your
A big part of my apps should be compiled with esbuild before running. ZMake does it automatically on build.
this platform is not supported: Gtk could not be initialised
They tried to create a tray icon, but failed.
I make dockerfile I built in linux then I copied It works.
FROM python:3.10.11 WORKDIR /app COPY . . LABEL maintainer="contact@emircanerkul.com" RUN apt-get update && apt-get upgrade -y RUN apt-get install -y libgirepository1.0-dev pkgconf gobject-introspection RUN mkdir /usr/local/nvm ENV NVM_DIR /usr/local/nvm ENV NODE_VERSION 14.18.1 RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \ && . $NVM_DIR/nvm.sh \ && nvm install $NODE_VERSION \ && nvm alias default $NODE_VERSION \ && nvm use default ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH RUN pip install -r requirements.txt RUN python make_release.py
to copy
id=$(docker create YOURCONTAINERID) docker cp $id://app/dist/ZeppPlayer_v1.5.6_linux.tar.gz - > ZeppPlayer_v1.5.6_linux.tar.gz docker rm -v $id
But another error. I'm using your https://github.com/melianmiko/SmartBand7-Apps yours does not work but firstly opened works good
errorSL:1Script load failedSyntaxError: Cannot use import statement outside a module at ZeppRuntime.start (http://127.0.0.1:3195/app/index.browser.js:6581:26) at async ChromeZeppPlayer.init (http://127.0.0.1:3195/app/index.browser.js:7466:9) at async start2 (http://127.0.0.1:3195/app/index.browser.js:9118:5) ZeppPlayerInit failed ZeppPlayerSwitch toMainScreen.js(normal)
I have used
@melianmiko okay, could you look this one? I compile via linux and use compiled version in mac. It works but not totally
I answered, my apps should be compiled with zmake or esbuild to run...
Try to unpack someones other app or watch face, or use my prebuold smartband7 apps.
I answered, my apps should be compiled with zmake or esbuild to run...
Try to unpack someones other app or watch face, or use my prebuold smartband7 apps.
Oh okay then, I'll go with the same strategy for zmake too.
Thank you so much @melianmiko
History