Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing momentum2.mps.gz file #167

Open
smoretti opened this issue Jun 21, 2018 · 6 comments
Open

Missing momentum2.mps.gz file #167

smoretti opened this issue Jun 21, 2018 · 6 comments

Comments

@smoretti
Copy link

Hi

I got an error when running python2 setup.py test:

ERROR: Failure: IOError ([Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz')

python2 version 2.7.12

@KristianJensen
Copy link
Contributor

Hi. Thanks for the report. Do you get a longer traceback, or just this line?

@smoretti
Copy link
Author

Here is the traceback:

ERROR: Failure: IOError ([Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/software/lib/python2.7/site-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/builddir/build/BUILD/optlang-1.4.2/slow_tests/test_miplib_glpk_interface.py", line 74, in test_miplib
    glpk_problem, model = load_problem(problem_file)
  File "/builddir/build/BUILD/optlang-1.4.2/slow_tests/test_miplib_glpk_interface.py", line 39, in load_problem
    f = gzip.open(mps_file, 'rb')
  File "/software/lib64/python2.7/gzip.py", line 34, in open
    return GzipFile(filename, mode, compresslevel)
  File "/software/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz'
----------------------------------------------------------------------

@smoretti
Copy link
Author

With python 2.7.12 and glpk 4.59 I have also this error during tests (not with python3):

ERROR: Failure: Exception (No optimal solution found for netlib model SIERRA)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/software/lib/python2.7/site-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/builddir/build/BUILD/optlang-1.4.2/optlang/tests/test_netlib_glpk_exact_interface.py", line 91, in test_netlib
    raise Exception('No optimal solution found for netlib model %s' % netlib_id)
Exception: No optimal solution found for netlib model SIERRA

@KristianJensen
Copy link
Contributor

Thanks. We will look into it. There are currently some problems with our miplib tests, but if all the other tests pass everything should be in order.

If you encounter the missing file error, you can try running the tests with nosetests optlang instead

@smoretti
Copy link
Author

OK, thanks
nosetests optlang skips the file error test.

Only my "No optimal solution found for netlib model SIERRA" remains

@smoretti
Copy link
Author

I have excluded the netlib model SIERRA to skip it, and after that for Python 2 I got errors for the netlib model WOOD1P.

Skipping both let me complete tests successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants