strohne / Facepager

Facepager was made for fetching public available data from YouTube, Twitter and other websites on the basis of APIs and webscraping.
https://github.com/strohne/Facepager/releases
506 stars 198 forks source link

'Shiboken.ObjectType' object is not iterable on linux #137

Closed adelgado7 closed 3 years ago

adelgado7 commented 4 years ago

python3 Facepager.py Traceback (most recent call last): File "Facepager.py", line 36, in from datatree import * File "/home/adelgado/Downloads/Facepager/src/datatree.py", line 309, in class TreeModel(QAbstractItemModel): TypeError: 'Shiboken.ObjectType' object is not iterable

jobdiogenes commented 3 years ago

I get the same problem, after some dig, I found that its a problem with install of datatree module its not really compatible with python3, due something StringIO.

mrmvergeer commented 3 years ago

I have the same issue, and see that installing datatree indeed gives an error. See Below. Any indication whether this can be solved?

`ERROR: Command errored out with exit status 1: command: /home/mrmvergeer/Facepager/pyenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u1tkfik2/datatree/setup.py'"'"'; file='"'"'/tmp/pip-install-u1tkfik2/datatree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-u1tkfik2/datatree/pip-egg-info cwd: /tmp/pip-install-u1tkfik2/datatree/ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-u1tkfik2/datatree/setup.py", line 4, in from datatree import VERSION File "/tmp/pip-install-u1tkfik2/datatree/datatree/init.py", line 1, in from .tree import Tree, n, Node, Name, __ File "/tmp/pip-install-u1tkfik2/datatree/datatree/tree.py", line 1, in from StringIO import StringIO ModuleNotFoundError: No module named 'StringIO'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`

strohne commented 3 years ago

Hi. Not sure where this comes from but I guess it is related to incompatibility between Python 3.8 and PySide2. I suggest you create the pyenv with Python 3.7...see https://github.com/strohne/Facepager/issues/128 for a related issue. Does this work?

strohne commented 3 years ago

Can you please try: pip3 install PySide2==5.14.2 ?

strohne commented 3 years ago

I close the issue since there are no updates. The problem can probably be solved by installing the above mentioned package. Feel free to reopen the issue if necessary.