IndexError in type_enc.pxi
- Dominant language
- Python
- Stars
- 192
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
On OS X Yosemite using a PyInstaller packaged app looking like this:
``` python
#!/usr/bin/env python
from plyer import filechooser
print(filechooser.choose_dir())
```
I get:
``` python
Traceback (most recent call last):
File "", line 4, in
File "/usr/local/lib/python2.7/site-packages/plyer/facades/filechooser.py", line 53, in choose_dir
File "/usr/local/lib/python2.7/site-packages/plyer/platforms/macosx/filechooser.py", line 104, in _file_selection_dialog
File "/usr/local/lib/python2.7/site-packages/plyer/platforms/macosx/filechooser.py", line 48, in run
File "pyobjus.pyx", line 439, in pyobjus.ObjcMethod.__call__ (pyobjus/pyobjus.c:31580)
File "pyobjus_conversions.pxi", line 239, in pyobjus.convert_cy_ret_to_py (pyobjus/pyobjus.c:20238)
File "pyobjus_conversions.pxi", line 180, in pyobjus.convert_to_cy_cls_instance (pyobjus/pyobjus.c:19322)
File "pyobjus.pyx", line 669, in pyobjus.autoclass (pyobjus/pyobjus.c:34152)
File "pyobjus.pyx", line 482, in pyobjus.class_get_methods (pyobjus/pyobjus.c:32077)
File "pyobjus.pyx", line 474, in pyobjus.objc_method_to_py (pyobjus/pyobjus.c:31931)
File "pyobjus.pyx", line 181, in pyobjus.ObjcMethod.__init__ (pyobjus/pyobjus.c:28225)
File "type_enc.pxi", line 15, in pyobjus.parse_signature (pyobjus/pyobjus.c:4228)
File "type_enc.pxi", line 4, in pyobjus.seperate_encoding (pyobjus/pyobjus.c:3999)
IndexError: list index out of range
```
Did I maybe miss to package a library?
##
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28985982-indexerror-in-type_enc-pxi?utm_campaign=plugin&utm_content=tracker%2F77137&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F77137&utm_medium=issues&utm_source=github).
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the PyInstaller-packaged filechooser example on OS X Yosemite, then inspect type_enc.pxi, especially parse_signature and seperate_encoding, using the traceback as the entry point. Compare the packaged and un-packaged runs to determine why the Objective-C method encoding produces an empty list; done means the example no longer raises IndexError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100