Skip to content
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

crash when trying to import playlist #7

Open
Kostra0ne opened this issue Dec 15, 2023 · 13 comments
Open

crash when trying to import playlist #7

Kostra0ne opened this issue Dec 15, 2023 · 13 comments

Comments

@Kostra0ne
Copy link

Kostra0ne commented Dec 15, 2023

Hey, Xmas is coming soon ...

and that would be super cool if i could add my kid's favorite songs (thanx :)

I'm stuck when clicking on import playlist : 💥

Any idea please ?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80aa8e0b6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80a583231 objc_exception_throw + 48
2 CoreFoundation 0x00007ff80a9bd341 -[__NSArrayM insertObject:atIndex:] + 1762
3 libtk8.6.dylib 0x000000010bb3afed setAllowedFileTypes + 333
4 libtk8.6.dylib 0x000000010bb3bafb Tk_GetOpenFileObjCmd + 1451
5 libtcl8.6.dylib 0x000000010b4b6eb2 Tcl_EvalObjv + 354
6 _tkinter.cpython-312-darwin.so 0x000000010b48142f Tkapp_Call + 367
7 Python 0x000000010c7cf8a7 cfunction_call + 103
8 Python 0x000000010c75e8bf _PyObject_Call + 143
9 Python 0x000000010c8e0809 _PyEval_EvalFrameDefault + 64457
10 Python 0x000000010c761fc2 method_vectorcall + 466
11 Python 0x000000010c8e0809 _PyEval_EvalFrameDefault + 64457
12 Python 0x000000010c761fc2 method_vectorcall + 466
13 _tkinter.cpython-312-darwin.so 0x000000010b48478e PythonCmd + 174
14 libtcl8.6.dylib 0x000000010b4b9372 TclEvalObjEx + 130
15 libtk8.6.dylib 0x000000010bab1ee7 TkInvokeMenu + 471
16 libtk8.6.dylib 0x000000010bb4a68c -[TKMenu(TKMenuActions) tkMenuItemInvoke:] + 188
17 AppKit 0x00007ff80e20d970 -[NSApplication(NSResponder) sendAction:to:from:] + 337
18 AppKit 0x00007ff80e2fab55 -[NSMenuItem _corePerformAction] + 455
19 AppKit 0x00007ff80e940602 _NSMenuPerformActionWithHighlighting + 185
20 AppKit 0x00007ff80e33df8b -[NSMenu performActionForItemAtIndex:] + 113
21 AppKit 0x00007ff80e33df11 -[NSMenu _internalPerformActionForItemAtIndex:] + 82
22 AppKit 0x00007ff80e9367d7 +[NSCocoaMenuImpl _performActionForMenuItem:] + 54
23 AppKit 0x00007ff80e717375 -[NSMenuTrackingSession _performPostTrackingDismissalActions] + 381
24 AppKit 0x00007ff80e7170d7 -[NSMenuTrackingSession startRunningMenuEventLoop:] + 1056
25 AppKit 0x00007ff80e7d868b -[NSMenuBarTrackingSession _mouseDownEventHandler:] + 310
26 AppKit 0x00007ff80e7d853f -[NSMenuBarTrackingSession handleEvent:] + 224
27 AppKit 0x00007ff80e7d8438 __61-[NSMenuBarTrackingSession _addMouseDownEventMonitorIfNeeded]_block_invoke + 200
28 AppKit 0x00007ff80e2728bc _NSSendEventToDequeuingObservers + 323
29 AppKit 0x00007ff80e9127d5 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2973
30 libtk8.6.dylib 0x000000010bb51672 TkMacOSXEventsCheckProc + 466
31 libtcl8.6.dylib 0x000000010b57356b Tcl_DoOneEvent + 347
32 _tkinter.cpython-312-darwin.so 0x000000010b4850c4 _tkinter_tkapp_mainloop_impl + 228
33 Python 0x000000010c77011c method_vectorcall_FASTCALL + 108
34 Python 0x000000010c8de295 _PyEval_EvalFrameDefault + 54869
35 Python 0x000000010c8d09c5 PyEval_EvalCode + 309
36 Python 0x000000010c95df2e run_mod + 158
37 Python 0x000000010c95cff7 pyrun_file + 151
38 Python 0x000000010c95c010 _PyRun_SimpleFileObject + 304
39 Python 0x000000010c95bc50 _PyRun_AnyFileObject + 160
40 Python 0x000000010c98b612 pymain_run_file_obj + 226
41 Python 0x000000010c98b389 pymain_run_file + 89
42 Python 0x000000010c98aaea Py_RunMain + 1402
43 Python 0x000000010c98ad83 pymain_main + 35
44 Python 0x000000010c98af5a Py_BytesMain + 42
45 dyld 0x00007ff80a5b73a6 start + 1942
)
libc++abi: terminating due to uncaught exception of type NSException
[1] 11223 abort '/usr/local/bin/python3'


Here is the crash log when using short ctrl+i : 💥

Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/init.py", line 1948, in call
return self.func(args)
^^^^^^^^^^^^^^^^
File "/Users/kostra-one/Music/merlin/merlinator/src/treeviews.py", line 58, in enable_arrows
self.bind_class('Treeview', '', self.boundUp)
^^^^^^^^^^^^
AttributeError: 'MerlinMainTree' object has no attribute 'boundUp'
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '
** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80aa8e0b6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80a583231 objc_exception_throw + 48
2 CoreFoundation 0x00007ff80a9bd341 -[__NSArrayM insertObject:atIndex:] + 1762
3 libtk8.6.dylib 0x000000010811afed setAllowedFileTypes + 333
4 libtk8.6.dylib 0x000000010811bafb Tk_GetOpenFileObjCmd + 1451
5 libtcl8.6.dylib 0x0000000108373eb2 Tcl_EvalObjv + 354
6 _tkinter.cpython-312-darwin.so 0x0000000107e4342f Tkapp_Call + 367
7 Python 0x00000001090cf8a7 cfunction_call + 103
8 Python 0x000000010905e8bf _PyObject_Call + 143
9 Python 0x00000001091e0809 _PyEval_EvalFrameDefault + 64457
10 Python 0x0000000109061ec8 method_vectorcall + 216
11 _tkinter.cpython-312-darwin.so 0x0000000107e4678e PythonCmd + 174
12 libtcl8.6.dylib 0x0000000108373eb2 Tcl_EvalObjv + 354
13 libtcl8.6.dylib 0x000000010837577a TclEvalEx + 2810
14 libtcl8.6.dylib 0x0000000108374c7a Tcl_EvalEx + 26
15 libtk8.6.dylib 0x000000010804e252 Tk_BindEvent + 6946
16 libtk8.6.dylib 0x000000010805551a TkBindEventProc + 362
17 libtk8.6.dylib 0x000000010805d48f Tk_HandleEvent + 863
18 libtk8.6.dylib 0x000000010805da94 WindowEventProc + 100
19 libtcl8.6.dylib 0x00000001084302ac Tcl_ServiceEvent + 156
20 libtcl8.6.dylib 0x0000000108430578 Tcl_DoOneEvent + 360
21 _tkinter.cpython-312-darwin.so 0x0000000107e470c4 _tkinter_tkapp_mainloop_impl + 228
22 Python 0x000000010907011c method_vectorcall_FASTCALL + 108
23 Python 0x00000001091de295 _PyEval_EvalFrameDefault + 54869
24 Python 0x00000001091d09c5 PyEval_EvalCode + 309
25 Python 0x000000010925df2e run_mod + 158
26 Python 0x000000010925cff7 pyrun_file + 151
27 Python 0x000000010925c010 _PyRun_SimpleFileObject + 304
28 Python 0x000000010925bc50 _PyRun_AnyFileObject + 160
29 Python 0x000000010928b612 pymain_run_file_obj + 226
30 Python 0x000000010928b389 pymain_run_file + 89
31 Python 0x000000010928aaea Py_RunMain + 1402
32 Python 0x000000010928ad83 pymain_main + 35
33 Python 0x000000010928af5a Py_BytesMain + 42
34 dyld 0x00007ff80a5b73a6 start + 1942
)
libc++abi: terminating due to uncaught exception of type NSException
[1] 13626 abort python3 merlinator.py


Not sure if it's related but i got this error when 'opening new session"

Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/init.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "merlinator/src/main_gui.py", line 351, in new_session
self.load_thumbnails_from_zip(items, zfile)
File "merlinator/src/main_gui.py", line 254, in load_thumbnails_from_zip
image_small = image.resize((40, 40), Image.ANTIALIAS)
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

@PouPass
Copy link

PouPass commented Dec 15, 2023

Hey !
You should have a look on this issue #4.
I had troubles using merlinator with pillow 10.0.0 which were resolved by downgrading to pillow 9.5.0
Merry Christmas ! 🎄 🎁

@Kostra0ne
Copy link
Author

Thanx for your help
this is challenging, i don't know python env at all
get a ton of errors related to missing "wheels" when trying to install Pillow==9.50 : /

@PouPass
Copy link

PouPass commented Dec 15, 2023

Which command are you using ?
pip install pillow==9.5.0 is supposed to replace 10.0.0 with 9.5.0.

If not, maybe you should reinstall from scratch with a clean environment, following the installation guide and replace
python -m pip install --upgrade Pillow
by
python -m pip install pillow==9.5.0

@lucastucious
Copy link

this repo seems not up to date, i made a fork with PR in it

@Kostra0ne
Copy link
Author

Kostra0ne commented Dec 21, 2023

this repo seems not up to date, i made a fork with PR in it

Hey Thanks a lot, i'm gonna try your version.

@Kostra0ne
Copy link
Author

Kostra0ne commented Dec 21, 2023

Which command are you using ? pip install pillow==9.5.0 is supposed to replace 10.0.0 with 9.5.0.

If not, maybe you should reinstall from scratch with a clean environment, following the installation guide and replace python -m pip install --upgrade Pillow by python -m pip install pillow==9.5.0

python3 -m pip install pillow==9.5.0 user-me@foobarbaz
Collecting pillow==9.5.0
Using cached Pillow-9.5.0.tar.gz (50.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pillow
Building wheel for pillow (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pillow (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [203 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-312
creating build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageMode.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/TarIO.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageStat.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageColor.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/QoiImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ContainerIO.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/_version.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageQt.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageMath.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PaletteFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FontFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PdfParser.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ExifTags.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageCms.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageChops.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/_deprecate.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PSDraw.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageFilter.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImagePath.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/init.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/JpegPresets.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/features.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageDraw.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageWin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageMorph.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/WalImageFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageTk.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageOps.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageShow.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageGrab.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/TiffTags.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/_util.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/GdImageFile.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImagePalette.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageTransform.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FitsImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageSequence.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PyAccess.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/_binary.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/Image.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/main.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/ImageFont.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.9-universal2-cpython-312/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing requirements to src/Pillow.egg-info/requires.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c'
warning: no files found matching '
.h'
warning: no files found matching '.sh'
warning: no files found matching '
.txt'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'renovate.json'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
no previously-included directories found matching '.ci'
adding license file 'LICENSE'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext

  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  Traceback (most recent call last):
    File "<string>", line 993, in <module>
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 88, in run
      _build_ext.run(self)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "<string>", line 809, in build_extensions
  RequiredDependencyException: jpeg
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in build_wheel
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
      self.run_setup()
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
      super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
    File "/private/var/folders/ct/k019jkz566z3d5gcb0pt2_jh0000gn/T/pip-build-env-gmyb7v9s/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 1010, in <module>
  RequiredDependencyException:
  
  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pillow
Failed to build pillow
ERROR: Could not build wheels for pillow, which is required to install pyproject.toml-based projects

@Kostra0ne
Copy link
Author

this repo seems not up to date, i made a fork with PR in it

Hey Thanks a lot, i'm gonna try your version.

I get the same crash when clicking on import playlist/archive : /

@PouPass
Copy link

PouPass commented Dec 21, 2023

@Kostra0ne can you post the result of pip list and python3 -V commands ?

@Kostra0ne
Copy link
Author

Kostra0ne commented Dec 21, 2023

running on mac OS 14.0

@Kostra0ne can you post the result of pip list and python3 -V commands ?

Hey

python3 -V

python3 -V
Python 3.12.0


pip list

Package Version

distlib 0.3.7
filelock 3.12.4
idna 3.6
mutagen 1.47.0
pbr 5.11.1
Pillow 10.1.0
pip 23.3.2
platformdirs 3.11.0
pygame 2.5.2
requests 2.31.0
six 1.16.0
stevedore 5.1.0
urllib3 2.1.0
virtualenv 20.24.5
virtualenv-clone 0.5.7
virtualenvwrapper 4.8.4

thanx

@PouPass
Copy link

PouPass commented Dec 22, 2023

Don't know the consequences of working with python under mac OS.

You are still stuck with pillow 10. Have you tried to reinstall python and this project from scratch ?
Maybe you also can try pip uninstall pillow and then pip install pillow==9.5.0.

I'm pretty sure that your problem comes from the pillow version but I don't know how to help you more if you are not able to manage python environments... 😕

@Kostra0ne
Copy link
Author

Kostra0ne commented Dec 23, 2023

Hey, i downgraded Pillow version and still get the initial error when trying to import :

object cannot be nil'

python3 -V

Python 3.11.6

Package Version


certifi 2023.7.22
Pillow 9.5.0
pip 23.3.1
Pygments 2.16.1
setuptools 68.2.2
wheel 0.41.3


python3 merlinator.py

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80aa8e0b6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80a583231 objc_exception_throw + 48
2 CoreFoundation 0x00007ff80a9bd341 -[__NSArrayM insertObject:atIndex:] + 1762
3 libtk8.6.dylib 0x0000000108b56013 setAllowedFileTypes + 261
4 libtk8.6.dylib 0x0000000108b56ac2 Tk_GetOpenFileObjCmd + 1460
5 libtcl8.6.dylib 0x000000010895679a TclNRRunCallbacks + 79
6 _tkinter.cpython-311-darwin.so 0x000000010870d07c Tkapp_Call + 476
7 Python 0x0000000108e94026 cfunction_call + 80
8 Python 0x0000000108e4e9b3 _PyObject_Call + 122
9 Python 0x0000000108f291ce _PyEval_EvalFrameDefault + 54205
10 Python 0x0000000108f2b961 _PyEval_Vector + 92
11 Python 0x0000000108e51260 method_vectorcall + 426
12 Python 0x0000000108f291ce _PyEval_EvalFrameDefault + 54205
13 Python 0x0000000108f2b961 _PyEval_Vector + 92
14 Python 0x0000000108e51260 method_vectorcall + 426
15 _tkinter.cpython-311-darwin.so 0x0000000108710dfd PythonCmd + 205
16 libtcl8.6.dylib 0x000000010895679a TclNRRunCallbacks + 79
17 libtk8.6.dylib 0x0000000108ae448a TkInvokeMenu + 485
18 libtk8.6.dylib 0x0000000108b63cdd -[TKMenu(TKMenuActions) tkMenuItemInvoke:] + 172
19 AppKit 0x00007ff80e20d970 -[NSApplication(NSResponder) sendAction:to:from:] + 337
20 AppKit 0x00007ff80e2fab55 -[NSMenuItem _corePerformAction] + 455
21 AppKit 0x00007ff80e940602 _NSMenuPerformActionWithHighlighting + 185
22 AppKit 0x00007ff80e33df8b -[NSMenu performActionForItemAtIndex:] + 113
23 AppKit 0x00007ff80e33df11 -[NSMenu _internalPerformActionForItemAtIndex:] + 82
24 AppKit 0x00007ff80e9367d7 +[NSCocoaMenuImpl _performActionForMenuItem:] + 54
25 AppKit 0x00007ff80e717375 -[NSMenuTrackingSession _performPostTrackingDismissalActions] + 381
26 AppKit 0x00007ff80e7170d7 -[NSMenuTrackingSession startRunningMenuEventLoop:] + 1056
27 AppKit 0x00007ff80e7d868b -[NSMenuBarTrackingSession _mouseDownEventHandler:] + 310
28 AppKit 0x00007ff80e7d853f -[NSMenuBarTrackingSession handleEvent:] + 224
29 AppKit 0x00007ff80e7d8438 __61-[NSMenuBarTrackingSession _addMouseDownEventMonitorIfNeeded]_block_invoke + 200
30 AppKit 0x00007ff80e2728bc _NSSendEventToDequeuingObservers + 323
31 AppKit 0x00007ff80e9127d5 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2973
32 libtk8.6.dylib 0x0000000108b6a0e6 TkMacOSXEventsCheckProc + 316
33 libtcl8.6.dylib 0x0000000108a00373 Tcl_DoOneEvent + 299
34 _tkinter.cpython-311-darwin.so 0x000000010870eece _tkinter_tkapp_mainloop + 302
35 Python 0x0000000108e5aa6f method_vectorcall_FASTCALL + 89
36 Python 0x0000000108f26f2b _PyEval_EvalFrameDefault + 45338
37 Python 0x0000000108f1b11a PyEval_EvalCode + 188
38 Python 0x0000000108f7543c run_eval_code_obj + 72
39 Python 0x0000000108f753cc run_mod + 96
40 Python 0x0000000108f75259 pyrun_file + 133
41 Python 0x0000000108f74d67 _PyRun_SimpleFileObject + 275
42 Python 0x0000000108f7472a _PyRun_AnyFileObject + 143
43 Python 0x0000000108f907d6 pymain_run_file_obj + 226
44 Python 0x0000000108f901ce pymain_run_file + 85
45 Python 0x0000000108f8fbbe Py_RunMain + 844
46 Python 0x0000000108f90b60 Py_BytesMain + 42
47 dyld 0x00007ff80a5b73a6 start + 1942
)
libc++abi: terminating due to uncaught exception of type NSException
[1] 19345 abort python3 merlinator.py

@nonojob
Copy link

nonojob commented Jun 16, 2024

Bonjour à tous / hello everyone,

Je rencontre le même problème que vous, à peu de choses près :

  • lorsque j'utilise la GUI et que je clique sur "Fichier" -> "Importer playlist/archive (Ctrl-i)", rien de se passe (pas de log dans le terminal)
  • lorsque je tente d'utiliser le raccourci clavier Ctrl-i, je constate l'erreur ci-dessous :

2024-06-16 14:51:19.208 Python[25896:198182] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff81981b6e3 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff81957b8bb objc_exception_throw + 48
2 CoreFoundation 0x00007ff8198d6f5c _CFThrowFormattedException + 202
3 CoreFoundation 0x00007ff8198d4b90 -[__NSArrayM insertObject:atIndex:].cold.2 + 0
4 CoreFoundation 0x00007ff8197411cd -[__NSArrayM insertObject:atIndex:] + 990
5 libtk8.6.dylib 0x000000010a7b8c6d setAllowedFileTypes + 333
6 libtk8.6.dylib 0x000000010a7b9780 Tk_GetOpenFileObjCmd + 1456
7 libtcl8.6.dylib 0x000000010aa10f22 Tcl_EvalObjv + 354
8 _tkinter.cpython-312-darwin.so 0x000000010a53ad4d Tkapp_Call + 413
9 Python 0x0000000109b0c077 cfunction_call + 103
10 Python 0x0000000109a9b77f _PyObject_Call + 143
11 Python 0x0000000109bf1da0 _PyEval_EvalFrameDefault + 66704
12 Python 0x0000000109a9ec78 method_vectorcall + 216
13 _tkinter.cpython-312-darwin.so 0x000000010a53e53e PythonCmd + 174
14 libtcl8.6.dylib 0x000000010aa10f22 Tcl_EvalObjv + 354
15 libtcl8.6.dylib 0x000000010aa127ea TclEvalEx + 2810
16 libtcl8.6.dylib 0x000000010aa11cea Tcl_EvalEx + 26
17 libtk8.6.dylib 0x000000010a6eb54c Tk_BindEvent + 6924
18 libtk8.6.dylib 0x000000010a6f26aa TkBindEventProc + 362
19 libtk8.6.dylib 0x000000010a6fa62f Tk_HandleEvent + 863
20 libtk8.6.dylib 0x000000010a6fac34 WindowEventProc + 100
21 libtcl8.6.dylib 0x000000010aacd4cc Tcl_ServiceEvent + 156
22 libtcl8.6.dylib 0x000000010aacd798 Tcl_DoOneEvent + 360
23 _tkinter.cpython-312-darwin.so 0x000000010a53ef34 _tkinter_tkapp_mainloop_impl + 228
24 Python 0x0000000109aacbfc method_vectorcall_FASTCALL + 108
25 Python 0x0000000109bef73b _PyEval_EvalFrameDefault + 56875
26 Python 0x0000000109be1625 PyEval_EvalCode + 309
27 Python 0x0000000109c703ee run_mod + 158
28 Python 0x0000000109c6f497 pyrun_file + 151
29 Python 0x0000000109c6e478 _PyRun_SimpleFileObject + 312
30 Python 0x0000000109c6e052 _PyRun_AnyFileObject + 66
31 Python 0x0000000109c9e9fb pymain_run_file_obj + 187
32 Python 0x0000000109c9e799 pymain_run_file + 89
33 Python 0x0000000109c9daac Py_RunMain + 1404
34 Python 0x0000000109c9e203 pymain_main + 499
35 Python 0x0000000109c9e2cb Py_BytesMain + 43
36 dyld 0x000000010a62b52e start + 462
)
libc++abi: terminating with uncaught exception of type NSException
Abort trap: 6

Quelqu'un d'entre vous aurait-il trouvé une solution ou un contournement svp? Je suis prêt à vous aider pour faire des tests de mon côté (PS : j'ai tenté de downgrader Pillow en 9.5.0 mais je n'y arrive pas à cause de 'ERROR: Failed building wheel for pillow
Running setup.py clean for pillow
Failed to build pillow
ERROR: Could not build wheels for pillow, which is required to install pyproject.toml-based projects
')

Merci par avance !

@wi-tan
Copy link

wi-tan commented Sep 8, 2024

main_gui.py:271 : Il y a un bug avec l'appel filedialog.askopenfilename, j'ai remplacé avec la ligne ci-dessous :
filepath = filedialog.askopenfilename(initialfile="playlist.bin", filetypes=[('fichier *.bin', '*')])

Ca a l'air de fonctionner (évidemment il faut le Pillow en version 9.5 mais je n'ai pas eu le probleme avec Wheel).

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

5 participants