Code Monkey home page Code Monkey logo

Comments (11)

hjwp avatar hjwp commented on August 26, 2024 3

I fixed it by setting the LANG environment variable(s):

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8

But it might be nice to get it working without that...

from pymc2.

weijy026a avatar weijy026a commented on August 26, 2024 1

when I install pymc in windows platform use “pip install pymc", it will report this error:

 File "c:\Python34\lib\site-packages\numpy\f2py\crackfortran.py", line 336, in readfortrancode
    l=fin.readline()
  File "c:\Python34\lib\fileinput.py", line 363, in readline
    self._buffer = self._file.readlines(self._bufsize)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 6844: illegal multibyte sequence

from pymc2.

hjwp avatar hjwp commented on August 26, 2024

Happens for pymc==2.3.2 thru pymc==2.3.6, for Python 3.4 and 3.3. Python 2.7 installs ok.

from pymc2.

fonnesbeck avatar fonnesbeck commented on August 26, 2024

Can you post the code that generates this error? I'd like to try to replicate it here.

from pymc2.

hjwp avatar hjwp commented on August 26, 2024

Just pip install pymc (in a Python 3.3/3.4 virtualenv, or use pip-3.4, or whatever is available in your env to pip install for a particular python version...)

from pymc2.

fonnesbeck avatar fonnesbeck commented on August 26, 2024

I can't replicate this with Anaconda Python 3.3 in a virtualenv:

Collecting pymc
  Downloading pymc-2.3.6.tar.gz (348kB)
    100% |████████████████████████████████| 352kB 414kB/s 
Building wheels for collected packages: pymc
  Running setup.py bdist_wheel for pymc
  Stored in directory: /Users/fonnescj/Library/Caches/pip/wheels/b4/12/14/094b6184fc97f474640caba446f451335daaf32c5b547e1c87
Successfully built pymc
Installing collected packages: pymc
Successfully installed pymc-2.3.6

from pymc2.

hjwp avatar hjwp commented on August 26, 2024

I'm on Ubuntu. I think it's fairly consistent, not something to do with my setup. I can repro it in a minimal dockerfile:

FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -y python3-dev python3-pip 
RUN apt-get install -y python3-numpy python3-matplotlib
RUN pip3 install pymc

from pymc2.

hjwp avatar hjwp commented on August 26, 2024

Here's the full output from the minimal repro run: http://pastebin.com/9SEww4CT

from pymc2.

fonnesbeck avatar fonnesbeck commented on August 26, 2024

We do have a .cfg file for Debian installs. Would it work to put these there?

from pymc2.

mr-mcox avatar mr-mcox commented on August 26, 2024

Ran into the same issue myself on a Mac (10.11) using Python 3.5. hjwp's environment variable fix worked for me to successfully install. pymc-devs/pymc#62 (comment)

from pymc2.

mgdreamingstar avatar mgdreamingstar commented on August 26, 2024

#62 (comment) did't work for me. I got the same error:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 6844: illegal multibyte sequence

from pymc2.

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.