Comments (7)
Update 20.05.24 18:58 GMT+2: After using "pip3 uninstall textract" for uninstalling textract and using "pip3 install --upgrade six" for upgrading to six 1.16.0 Jupyter notebook runs.
from six.
I'm not sure how this issue relates but I've had the same error come up whilst using the LiveCode extension for VSCode:
Which I initially thought was cause by the astunparse module, given the error output:
Traceback (most recent call last):
File "c:\Users\leandre.vscode\extensions\xirider.livecode-1.3.10\node_modules\arepl-backend\python\arepl_python_evaluator.py", line 11, in
import astunparse
File "c:\Users\leandre.vscode\extensions\xirider.livecode-1.3.10\node_modules\arepl-backend\python\astunparse_init_.py", line 3, in
from six.moves import cStringIO
ModuleNotFoundError: No module named 'six.moves'
However (given this thread) it appears that this may not be the case, so I don't know what the problem is with six that is causing the 'missing' moves module in this situation.
All I can say is that editing astunparse.__init__.py
to change the import line from this from six.moves import cStringIO
to this from io import StringIO
and updating the references seems to fix the immediate problem running the LiveCode extension.
Basically what I'm asking is:
-- Is this an issue with six itself, or is it an issue with how these other libraries / applications are using it?
from six.
Thanks for the reply! Since my last comment "Update 20.05.24 18:58 GMT+2: After using "pip3 uninstall textract" for uninstalling textract and using "pip3 install --upgrade six" for upgrading to six 1.16.0 Jupyter notebook runs." this prooblem is resolved.
from six.
@hugoboss15 That may be the case for you but other people may still be having an issue related to this error, and whilst I found a patch to fix my immediate problem I was reporting here to try to ascertain if this is part of a larger problem or if anyone here can shed light on why this error happened and where it needs to be addressed -- Thanks
from six.
@apitofme When using the version six1.12.0, the six.moves module did not launch. six1.16.0 was automatically uninstalled right after I installed textract1.6.5 library. I had to manually uninstall textract1.6.5 library and upgrade to the most recent six1.16.0 version to use it with six.moves. The best possible outcome would be being able to use six1.16.0 with six.moves and textract1.6.5 library. So this is still not completely satisfactory.
Besides that, textract1.6.5 library only worked on .csv files, and I want to suggest .pdf, .db and .ipynb filename exentions. You can suggest filename extension here: https://github.com/deanmalmgren/textract/issues. Some of them such as .pdf have already been suggested. In the meantime I'll probably keep it uninstalled, as it keeps me from progressing in my workflow.
from six.
Thanks @hugoboss15 but I'm not sure how that is relevant to my issue, unless python-textract
is some kind of hidden dependency to the python-six
module?
If it is helps I can confirm that I do not have the textract library installed on my system and (to the best of my knowledge) never have.
The title to this thread is:
ModuleNotFoundError: No module named 'six.moves'
My error code stated:
ModuleNotFoundError: No module named 'six.moves'
...ergo I felt this was the right place to post my issue, rather than start a new thread?!
Could this not be a case of: Same error -- Different cause ?
I was just posting in case a maintainer or contributor could determine whether this is or isn't an issue with this module, or if the issue is being caused elsewhere (e.g. by reference in an external module due to incorrect usage, deprecated features or version mismatch).
from six.
I actually do not know if six1.16.0 or six1.12.0 is even necessary for running textract1.6.5 on Python 3.12.3. At least six1.12.0 was automatically installed, when I installed textract1.6.5, that's the dependency. After Upgrading to six1.16.0, six.moves stopped working, if I recall this correctly.
from six.
Related Issues (20)
- Please make a new release with the py3.10 fixes
- bad magic number in 'six' HOT 4
- What version of collections_abc is supported? HOT 2
- Different versions of packages (geckodriver) can be installed on linux and windows
- can i use six just like run command on cmd like six filename.py? HOT 1
- ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
- RuntimeError: restricted attribute setting __doc__ when being imported in python2.7 in a restricted frame
- Module MD5 could be moved to hashlib.md5? HOT 1
- Python:3.11 failing to install six (pip version: 22.3.1)
- Version 1.16.0 vulnerable to OS Command Injection
- Failure when using six.with_metaclass in python 2.7 when metaclass doesn't directly inherit from type
- SIX new version HOT 4
- six.reraise fails
- repr(six.moves) throws an AttributeError for cpython 3.12 HOT 5
- Why name the tool six ? six = 2x3 ? HOT 2
- Undefined reference to unicode
- Getting Code Vulnerability in "six.py" module file HOT 11
- ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' HOT 1
- Feature request: Add shlex_join
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from six.