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

TypeError: Error when calling the metaclass bases #2259

Open
zarinraim opened this issue Sep 19, 2017 · 15 comments · May be fixed by #2379
Open

TypeError: Error when calling the metaclass bases #2259

zarinraim opened this issue Sep 19, 2017 · 15 comments · May be fixed by #2379

Comments

@zarinraim
Copy link

Hi,
I'm getting this error while trying to register phone number

Traceback (most recent call last):
  File "/usr/bin/yowsup-cli", line 5, in <module>
    pkg_resources.run_script('yowsup2==2.5.2', 'yowsup-cli')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1455, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/yowsup2-2.5.2-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 6, in <module>
    from yowsup.env import YowsupEnv
  File "/usr/lib/python2.7/site-packages/yowsup2-2.5.2-py2.7.egg/yowsup/env/__init__.py", line 1, in <module>
    from .env import YowsupEnv
  File "/usr/lib/python2.7/site-packages/yowsup2-2.5.2-py2.7.egg/yowsup/env/env.py", line 15, in <module>
    class YowsupEnv(with_metaclass(YowsupEnvType, object)):
  File "/usr/lib64/python2.7/abc.py", line 87, in __new__
    cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
@ykguCoder
Copy link

the same problem

@alvarollmenezes
Copy link

same here

1 similar comment
@plam4u
Copy link

plam4u commented Sep 20, 2017

same here

@thaihau
Copy link

thaihau commented Sep 20, 2017

dont use python2.7, change to use python3.X

sudo apt-get install python3-setuptools
sudo python3  setup.py install

@plam4u
Copy link

plam4u commented Sep 20, 2017

thanks @thaihau
this solved the issue for me.

@JackLeo
Copy link

JackLeo commented Sep 27, 2017

This is because of benjaminp/six#210
Downgrading six is a temporary workaround

pip install six==1.10

@filipemontt
Copy link

same... not solve with python3 and not pip install six==1.10

@r0alt
Copy link

r0alt commented Nov 9, 2017

dont use python2.7, change to use python3.X

sudo apt-get install python3-setuptools
sudo apt-get install python3-pip <-- dev-packages also needed
sudo python3 setup.py install

@filipemontt
Copy link

Works with 2.7

@vlad2
Copy link

vlad2 commented Nov 13, 2017

@JackLeo using python 2.7 and six 1.10 solved the problem.

@jupitercl
Copy link

Solved Downgrading six
Thanks @JackLeo

@lucasthecodes
Copy link

Same issue, solved with

pip install six==1.10

@noahfx
Copy link

noahfx commented Jan 3, 2018

Hi
I've submitted a PR that fixes the compatibility with six >= 1.11 #2379

@GaboDotCodes
Copy link

@thaihau Thanks!

@rodrigolopezguerra
Copy link

@JackLeo thanks, that did it!

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

Successfully merging a pull request may close this issue.