alphageometry icon indicating copy to clipboard operation
alphageometry copied to clipboard

error solving imo_2005_p5

Open unhandyandy opened this issue 1 year ago • 8 comments

When running AG on imo_2005_p5, got this error.

TypeError: cannot unpack non-iterable Point object:

Traceback (most recent call last):
  File "/N/soft/sles15/python/gnu/3.10.5/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/N/soft/sles15/python/gnu/3.10.5/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/alphageometry.py", line 651, in <module>
    app.run(main)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/lib/python3.10/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/alphageometry.py", line 638, in main
    run_alphageometry(
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/alphageometry.py", line 521, in run_alphageometry
    g, _ = gh.Graph.build_problem(p, DEFINITIONS)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/graph.py", line 523, in build_problem
    check = nm.check(pr.goal.name, args)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/numericals.py", line 649, in check
    return fun(args)
  File "/geode2/home/u020/dabrowsa/BigRed200/alphageometry/numericals.py", line 705, in check_cyclic
    (a, b, c), *ps = points
TypeError: cannot unpack non-iterable Point object

unhandyandy avatar Feb 01 '24 17:02 unhandyandy

I will try and run this problem and see what happens

Ehisnet avatar Feb 06 '24 11:02 Ehisnet

It's happening for all the problems which involves proving cyclic points (i.e. ? cyclic a b c d). Any work around for this?

DataStunner avatar Feb 08 '24 15:02 DataStunner

@DataStunner That's an interesting lead, thanks.

unhandyandy avatar Feb 08 '24 15:02 unhandyandy

OK, it seems there's a mistake in line 705 of alphageometry.py. Try changing (a, b, c), *ps = points to a, b, c, *ps = points That seems to work for me.

unhandyandy avatar Feb 08 '24 17:02 unhandyandy

@unhandyandy Its working now. Thanks!

DataStunner avatar Feb 09 '24 07:02 DataStunner

I'm leaving this open till the devs fix it in the repo.

unhandyandy avatar Feb 09 '24 15:02 unhandyandy

@unhandyandy I found the "mistake" in the numericals.py file, not alphageometry.py, and its working for me now.

OK, it seems there's a mistake in line 705 of alphageometry.py. Try changing (a, b, c), *ps = points to a, b, c, *ps = points That seems to work for me.

ppaaron avatar Mar 18 '24 08:03 ppaaron

I made some improvements in a fork repository and have some ideas to further improve the performance of AG, check out AG4Masses and issue 110. In it this and several other bugs are fixed.

tpgh24 avatar Apr 27 '24 14:04 tpgh24