GithubHelp home page GithubHelp logo

Python 3.5 support about apertium-recursive HOT 4 CLOSED

apertium avatar apertium commented on August 15, 2024
Python 3.5 support

from apertium-recursive.

Comments (4)

mr-martian avatar mr-martian commented on August 15, 2024

If I simply remove encoding="utf-8" the tests run under Python 3.5.0. Apparently the encoding parameter is redundant with universal_newlines=True.

from apertium-recursive.

TinoDidriksen avatar TinoDidriksen commented on August 15, 2024

The tests now run, but these 2 fail on Ubuntu Xenial and Debian Stretch:

test_output (__main__.GlobalVars) ... ERROR
test_output (__main__.GlobalVarsClipping) ... ERROR

======================================================================
ERROR: test_output (__main__.GlobalVars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./run_tests.py", line 26, in test_output
    actual = subprocess.check_output(args, input=self.input, universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['../src/rtx-proc', '-a', 'GlobalVars.bin']' returned non-zero exit status -11

======================================================================
ERROR: test_output (__main__.GlobalVarsClipping)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./run_tests.py", line 26, in test_output
    actual = subprocess.check_output(args, input=self.input, universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['../src/rtx-proc', '-a', 'GlobalVarsClipping.bin']' returned non-zero exit status -11

from apertium-recursive.

mr-martian avatar mr-martian commented on August 15, 2024

As of 39ed56d the tests pass on Mint 17.2 which is Ubuntu Trusty Tahr. Given which tests are failing I would expect the Xenial build to be the same issue.

from apertium-recursive.

TinoDidriksen avatar TinoDidriksen commented on August 15, 2024

Yup, fixed in 39ed56d - and packaged in Nightly for all platforms except Windows.

from apertium-recursive.

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.