six Questions

4

Solved

I am using Python 2.7 and trying to use dateutil as follows: from dateutil import parser as _date_parser However, I get the following error: Traceback (most recent call last): File "<pyshel...
Absorbefacient asked 24/2, 2014 at 14:27

5

I'm running python 3.6 on Mac OS X El Capitan. I'm trying to run code that uses the six module, but am getting the following error: ImportError: No module named six. When I search for six it appear...
Archaeological asked 20/6, 2017 at 16:18

3

I noticed that something was wrong when I first wanted to install the tqdm package for python3. Running pip install tqdm i revieved ImportError: cannot import name 'ensure_str' from 'six' (/home/...
Yorkist asked 11/5, 2020 at 10:38

2

Solved

I'm using numpy and mlrose, and all i have written so far is: import numpy as np import mlrose However, when i run it, it comes up with an error message: File "C:\Users\<my username>\App...
Jala asked 18/5, 2020 at 10:52

3

Solved

Versions Python : 2.7.14 six : 1.9.0 & 1.11.0(tried on both) OS : mac(10.13.3) & ubuntu(16.04) [tried on both] Error from six.moves import http_client ImportError: No module nam...

3

$ pip install tld Collecting tld Using cached https://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whl Collecting six...
Illustrious asked 20/6, 2018 at 17:44

10

Solved

I am trying to install latest version of six python package but I have following issues. Can't get rid of six 1.4.1 in mac OSX 10.10.2 sudo pip install six --upgrade Requirement already up-to-date...
Bouldon asked 7/4, 2015 at 7:4

4

I am trying to use scrape, but I have a problem. from six.moves import xmlrpc_client as xmlrpclib ImportError: cannot import name xmlrpc_client Then, I tried pip install --upgrade six scrape, but...
Irredeemable asked 17/10, 2015 at 9:47

2

Solved

I wrote a metaclass that automatically registers its classes in a dict at runtime. In order for it to work properly, it must be able to ignore abstract classes. The code works really well in Pytho...
Archangel asked 1/8, 2016 at 20:12

1

Solved

I'm writing cross-compatible Python 2 and 3 code with some help from this cheatsheet. I've noticed there are different packages and modules that help to do this: the future package (e.g. future.uti...
Bria asked 8/2, 2017 at 10:38

3

Solved

Cannot import anything from six. Both of these lines yield errors: from six.moves.urllib.request import urlretrieve --> Unresolved reference "urlretrieve" from six.moves import cPickle as pickl...
Iota asked 21/5, 2016 at 16:47

2

Solved

This is my first question on stack overflow. Recently I want to use linked-in-scraper, so I downloaded and instruct "scrapy crawl linkedin.com" and get the below error message. For your information...
Kumiss asked 25/5, 2016 at 16:27

1

Is it possible to get imports for the six module to work in PyCharm? I realize the module does some playing with imports that confuses PyCharm but I was hoping there was some type of workaround. Fo...
Baron asked 25/3, 2016 at 4:26

3

Solved

I'm making a program using Python2.7 and Kivy1.9.2-dev, and trying to package it with PyInstaller-3.0 for different systems as a single executable. The systems I'm trying to package it for are the...
Depersonalization asked 21/1, 2016 at 10:42

2

Solved

I've written some scripts, which run either only with Version 2.x or some only with Version 3.x of Python. How can I detect inside the script, if it's started with fitting Python Version? Is ther...
Soria asked 9/12, 2014 at 10:40
1

© 2022 - 2024 — McMap. All rights reserved.