Giter Club home page Giter Club logo

Comments (10)

joachimmetz avatar joachimmetz commented on July 16, 2024

Adding:

reload(sys)
sys.setdefaultencoding('utf-8')

Seems to fix it on Ubuntu 14.04

from plaso.

theraven82 avatar theraven82 commented on July 16, 2024

Fixes it in fedora 20 as well (coincidentally encountered this issue as well at the same time)

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

Chaging the path passed to find_packages to Unicode:

    packages=find_packages(u'.'),

Results in, while trying to build a deb:

TypeError: 'package' must be a string (dot-separated), list, or tuple
dh_auto_build: python setup.py build --force returned exit code 1
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

69aca25

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

Issues due to change:
https://build.opensuse.org/package/live_build_log/home:gregfreemyer:Tools-for-forensic-boot-cd/python-plaso/openSUSE_13.2/x86_64

[   57s] + python setup.py build
[   57s] Traceback (most recent call last):
[   57s]   File "setup.py", line 89, in <module>
[   57s]     sys.setdefaultencoding(sys.stdin.encoding)
[   57s] TypeError: must be string, not None

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

https://codereview.appspot.com/175320043/

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

Let's see if this c8fe2db fixes the side effect

from plaso.

gregfreemyer avatar gregfreemyer commented on July 16, 2024

In setup.py line 96, you still have it calling: sys.setdefaultencoding(sys.stdin.encoding)

Changing that to: sys.setdefaultencoding(encoding)

Makes it work for me. I assume you meant to do that.

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

My bad, yeah was early this morning, fixing in: http://codereview.appspot.com/175990043

from plaso.

joachimmetz avatar joachimmetz commented on July 16, 2024

1938431

from plaso.

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.