Questions tagged [six]

Six provides simple utilities for wrapping over differences between Python 2 and Python 3.

Six provides simple utilities for wrapping over differences between and . It is intended to support codebases that work on both Python 2 and 3 without modification. six consists of only one Python file, so it is painless to copy into a project.

147 questions
0
votes
0 answers

ImportError: cannot import name add_metaclass

ImportError: cannot import name add_metaclass I'm getting this error. I'm using python27 and installed nltk and nltk_data, six but still the error is not solved. Please help. Traceback (most recent call last): File…
swati
  • 11
  • 1
  • 3
0
votes
0 answers

Cannot install python six module

I have a server in the AWS cloud. It was running a flask API which calls the Google STT API fine. I then attempted to 'productionise' the API by setting up a virtualenv and getting the API to run there, with the intent of running Gunicorn. When I…
Lee Melbourne
  • 407
  • 5
  • 20
0
votes
1 answer

python 2.7 - Requirement.parse('six>=1.6.0'))

Python ... why does this happen? All of a sudden I get this error: Traceback (most recent call last): File "setup.py", line 36, in zip_safe=False) File "/usr/lib/python2.7/distutils/core.py", line 111, in setup …
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
2 answers

Why isn't pip or easy_install working?

I'm trying to make something using the API tweepy and it says: ImportError: No module named 'six' When I try to install 'six' with pip or easy_install using the cmd, I get this error message: 'easy_install' is not recognized as an internal or…
Tom
  • 117
  • 2
  • 2
  • 15
0
votes
1 answer

Cannot upgrade six on mac os X Yosemite

I'm trying to upgrade six on my mac for TensorFlow, and I did: sudo pip install --ignore-installed six And I get: The directory '/Users/lingxiao/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has…
xiaolingxiao
  • 4,793
  • 5
  • 41
  • 88
0
votes
1 answer

Python3 six - AttributeError: custom object has no attribute 'items'

I have a list of dict objects of type Case which are initiated with a dict. When running in Python2, I could loop over keys and values, to facilitate both Python versions I'm using the six library. class Case: def __init__(self, obj): …
dh762
  • 2,259
  • 4
  • 25
  • 44
0
votes
0 answers

In using flask with soundcloud library , Why 'no module named moves'?

Trying to make use of the python-soundcloud package, imported it to implement its server side authentication for my app: $ python manage.py runserver Traceback (most recent call last): File "manage.py", line 5, in from mic import app,…
Austin
  • 19
  • 1
  • 8
0
votes
1 answer

Error 'Module_six_moves_urllib_parse' object has no attribute 'urlsplit'

Error Running Sphinx with Six. When I run Make HTML in project docs, I get the error Running Sphinx v1.4.1 making output directory... 1.4.1 loading pickled environment... not yet created Exception occurred: File…
0
votes
1 answer

Why does PyDev Eclipse editor reports errors in the code that do not exist?

My PyDev Eclipse project has only one file with these four lines: import os from six.moves.urllib.request import urlretrieve from six.moves import cPickle as pickle print("OK") Eclipse reports these "Problems": Unresolved import: pickle main.py…
Fanta
  • 2,825
  • 5
  • 26
  • 35
0
votes
1 answer

PyObjC app cannot find moves module

I am using this tutorial (from 2013) with PyObjC (http://blog.adamw523.com/os-x-cocoa-application-python-pyobjc/). However, when running after using python setup.py py2app, I am getting the following error when running…
sailor
  • 59
  • 1
  • 8
0
votes
1 answer

python-six misconfiguration?

This on CentOS 7 [root@dhcppc7 ~]# pip freeze | grep six six==1.10.0 [root@dhcppc7 ~]# python -c 'import six; print(six.__version__)' 1.2.0 How can I force my python script to use six 1.10.0?
masber
  • 2,875
  • 7
  • 29
  • 49
0
votes
1 answer

can't import six.moves.xmlrpc_client in python 2.7

Environment: CENTOS 7 my code: import six.moves.xmlrpc_client as xmlrpclib output: ImportError: No module named xmlrpc_client python interpreter: [root@dhcppc0 devstack]# python Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623…
masber
  • 2,875
  • 7
  • 29
  • 49
0
votes
2 answers

Problems getting Falcon to run on Mac

I'm having a challenge running Falcon on my Mac. I'm using python 2.7 along with pycharm for some time with no issues. There seems to be several related posts here , here, and here, but still seem to have the same problem. I've spent many hours…
DataG
  • 125
  • 2
  • 11
0
votes
3 answers

Python pip is not working

I am using Python 3.4 on Windows 7. I need to install the six module, I have pip installed on my C. The problem is, whenever I type pip on my cmd nothing happens. I made sure that my environment variables are set correctly but I am still facing the…
Ali.Wassouf
  • 309
  • 4
  • 21
0
votes
1 answer

ImportError: No module named 'urllib.request'

I have received the following error when trying to launch the python executable I have created. Below is how the code is being imported: from six.moves.urllib.request import Request, urlopen from six.moves.urllib.error import HTTPError from…
code_legend
  • 3,547
  • 15
  • 51
  • 95
1 2 3
9
10