You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 14, 2018. It is now read-only.
yes everything is properly installed. as i said, its working with python.exe and it is not with IronPython. so i guess the problem must be somewhere with IronPython...
>>> from gmusicapi import Mobileclient
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\gmusicapi\__init__.py", line 4, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\gmusicapi\clients\__init__.py", line 4, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\gmusicapi\clients\webclient.py", line 16, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\gmusicapi\clients\shared.py", line 7, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\gmusicapi\utils\utils.py", line 24, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\google\protobuf\__init__.py", line 37, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\__init__.py", line 74, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\packaging\requirements.py", line 9, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\extern\__init__.py", line 43, in load_module
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\pyparsing.py", line 4715, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\pyparsing.py", line 1261, in setParseAction
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\pyparsing.py", line 1043, in _trim_arity
IndexError: index out of range: -1
This failure appears to have to do with the frame stack:
@radek673 It involves parts of the system which I'm not too familiar (frames). Other than trying to fix the C# code for frames I'm not sure if there's a workaround...
@slozier I doubt that IndexError inside pyparsing is the real root cause for this issue. It seems to be a rather sever problem, though, because it prevents me from using pip as I reported in #1572.
please fix it, this is basic functionality, blocker that makes IronPython USELESS.... you cannot even use simple 3rd party library with IronPython.... only statements "a := b" are compatible... pitty... :(
@pekkaklarck I am aware there are a number of issues with pip. However, I did not mean to imply that the pyparsing failure had anything to do with pip. I was just pointing out that even we got past the installation issue that would not be the end of it (getting gmusicapi to work).
Activity
radek673 commentedon Feb 2, 2017
Noone ? I'm willing to pay for resolving this issue, please contact me ! :) I believe gmusicapi could work with IronPython...
simplicbe commentedon Feb 2, 2017
Are you able to use
google-protobufin a kind of sample script? For example using the interpreter?radek673 commentedon Feb 2, 2017
just tried:
pyEngine.Execute("from google.protobuf.message import DecodeError", pyScope);
pyEngine.Execute("from google.protobuf.descriptor import FieldDescriptor", pyScope);
neither of these works, same exception...
radek673 commentedon Feb 2, 2017
but it works with python.exe
simplicbe commentedon Feb 2, 2017
Ok, but the the package is in
c:\python27\lib\site-packages?radek673 commentedon Feb 2, 2017
yes everything is properly installed. as i said, its working with python.exe and it is not with IronPython. so i guess the problem must be somewhere with IronPython...
radek673 commentedon Feb 2, 2017
here my directory structure...
radek673 commentedon Feb 2, 2017
my apologize, wrong image, here is correct one :)
slide commentedon Feb 2, 2017
Does that directory only contain .pyc files for the module? IronPython doesn't support .pyc files (precompiled python bytecode).
radek673 commentedon Feb 2, 2017
it contains .py for every .pyc....
slozier commentedon Feb 2, 2017
Doesn't look like it'll work without some work:
This failure appears to have to do with the frame stack:
radek673 commentedon Feb 3, 2017
thanks slozier for the investigation... but what does it mean ? i'm quite new to IronPython, what can i do with it ?
slozier commentedon Feb 4, 2017
@radek673 It involves parts of the system which I'm not too familiar (frames). Other than trying to fix the C# code for frames I'm not sure if there's a workaround...
radek673 commentedon Feb 4, 2017
ok, are there any chances it will be fixed (soon) ? :)
pekkaklarck commentedon Feb 6, 2017
@slozier I doubt that
IndexErrorinsidepyparsingis the real root cause for this issue. It seems to be a rather sever problem, though, because it prevents me from using pip as I reported in #1572.radek673 commentedon Feb 6, 2017
please fix it, this is basic functionality, blocker that makes IronPython USELESS.... you cannot even use simple 3rd party library with IronPython.... only statements "a := b" are compatible... pitty... :(
slozier commentedon Feb 6, 2017
@pekkaklarck I am aware there are a number of issues with pip. However, I did not mean to imply that the pyparsing failure had anything to do with pip. I was just pointing out that even we got past the installation issue that would not be the end of it (getting gmusicapi to work).
slide commentedon Feb 6, 2017
@radek673 you're welcome to debug and submit a fix yourself.
radek673 commentedon Feb 8, 2017
creating an empty init.py in \Lib\site-packages\google solved the problem, sadly, there are more issues :/
I think the condition could be fooled in IronPython sources if the file is missing...