Giter Site home page Giter Site logo

Comments (11)

ethanwhite avatar ethanwhite commented on July 2, 2024

This doesn't seem to be an issue on Windows, and after opening a different copy of the file on my Ubuntu machine using gedit and switching the encoding to Western I can no longer produce the error. This is still true after deleting the copy of the file that I opened with the Western encoding...

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

This was apparently a shared hallucination.

from retriever.

ethanwhite avatar ethanwhite commented on July 2, 2024

Sadly this was apparently not a shared hallucination and is not isolated to the MCDB. Using the current RC I have this error on MCDB, Barnes et al. 2008, Woods et al. 2009, Zachmann et al. 2010, USDA Plants, McGlinn et al. 2010, and del Moral 2010.

It seems like this must be something that changed in Ubuntu 12.04 (or maybe Python 2.7.3) since we weren't seeing this before.

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

This is strange. It happened once to me yesterday, but disappeared immediately after upon trying again, with no change to the executable or data files. I haven't been able to consistently duplicate it.

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

I did also see it on del Moral. Afterward, though, I was able to download every single dataset successfully using the Windows executable.

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

I just attempted MCDB and del Moral with both Windows and Linux, and had no problem.

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

Also, I would've thought "sys.setdefaultencoding('latin-1')" in main.py would resolve this issue. ascii should no longer be the default codec.

Which version did you continue to have this issue with? Windows?

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

Interesting - Python actually deletes the sys.setdefaultencoding method upon startup. But "reload(sys)" will get it back. I'll make this change and see if it solves the problem.

http://blog.ianbicking.org/illusive-setdefaultencoding.html

from retriever.

ethanwhite avatar ethanwhite commented on July 2, 2024

This was always on Ubuntu for me.

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

I'm not getting the issue atm so I can't confirm - could you see if the latest change has solved the issue?

from retriever.

ethanwhite avatar ethanwhite commented on July 2, 2024

That seems to have solved it. Nice job tracking that down.

from retriever.

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.