Giter Site home page Giter Site logo

Compatability with Python 3 about libpgm HOT 3 OPEN

cyberpoint avatar cyberpoint commented on July 17, 2024 1
Compatability with Python 3

from libpgm.

Comments (3)

EricSchles avatar EricSchles commented on July 17, 2024

I just found the tests folder and ran the tests. It seems I missed one of the bugs but caught it with after running the unit tests. My changes now pass all unit tests for Python 3! :)

from libpgm.

Minzhe avatar Minzhe commented on July 17, 2024

Hi, I try to install the libpgm in my anaconda python3 environment, but got error.

$sudo python setup.py install
and it gave me like this:
byte-compiling /Applications/anaconda/lib/python3.5/site-packages/utils/bntextutils.py to bntextutils.cpython-35.pyc
File "/Applications/anaconda/lib/python3.5/site-packages/utils/bntextutils.py", line 22
print "%s --> %s" % (e[0], e[1])
^
SyntaxError: invalid syntax

running install_egg_info
Removing /Applications/anaconda/lib/python3.5/site-packages/libpgm-1.3-py3.5.egg-info
Writing /Applications/anaconda/lib/python3.5/site-packages/libpgm-1.3-py3.5.egg-info

I think there is still some bug about the print compatibility. Could you check that?

from libpgm.

cs224 avatar cs224 commented on July 17, 2024

@Minzhe : I have the same issue as you mentioned above. I've just created a pull request for the fix.

from libpgm.

Related Issues (19)

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.