GithubHelp home page GithubHelp logo

Comments (7)

hugoboss15 avatar hugoboss15 commented on August 15, 2024

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.

apitofme avatar apitofme commented on August 15, 2024

I'm not sure how this issue relates but I've had the same error come up whilst using the LiveCode extension for VSCode:
Screenshot from 2024-05-30 12-27-40

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.

hugoboss15 avatar hugoboss15 commented on August 15, 2024

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.

apitofme avatar apitofme commented on August 15, 2024

@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.

hugoboss15 avatar hugoboss15 commented on August 15, 2024

@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.

apitofme avatar apitofme commented on August 15, 2024

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.

hugoboss15 avatar hugoboss15 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.