mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > CADO-NFS

Reply
 
Thread Tools
Old 2020-02-24, 22:20   #1
arakelov
 
Feb 2020

32 Posts
Default CADO-NFS IndexError

Hello,
I've just compiled cado-nfs on Ubuntu 18.04 and when trying to factor an 85 digit number I got this error:

...
Traceback (most recent call last):
File "./cado-nfs.py", line 122, in <module>
factors = factorjob.run()
File "./scripts/cadofactor/cadotask.py", line 5958, in run
last_status, last_task = self.run_next_task()
File "./scripts/cadofactor/cadotask.py", line 6050, in run_next_task
return [task.run(), task.title]
File "./scripts/cadofactor/cadotask.py", line 2289, in run
n, self.best_polys[0].MurphyE,
IndexError: list index out of range

Can you please help?
Thanks!
arakelov is offline   Reply With Quote
Old 2020-02-25, 03:24   #2
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

12FD16 Posts
Default

I've never tried factoring a number that small with CADO, so I'm not sure whether to guess at compilation problems, or an issue with the parameters file for a C85 (for instance, the params file may not be updated since some part of CADO changed requiring a parameter to have a different name/setting).

I'd try a C100 or so and see if the error is identical.
VBCurtis is online now   Reply With Quote
Old 2020-02-25, 06:26   #3
arakelov
 
Feb 2020

32 Posts
Default

Thanks for the response. Other examples give the same error.
I compiled a previous tarball (cado-nfs-2.3.0.tar.gz) and the error was gone.

I'm not sure if I did right for getting the current version:
git clone https://gitlab.inria.fr/cado-nfs/cado-nfs.git

Maybe I got a unstable snapshot. Sorry if it was that.
Thanks!
arakelov is offline   Reply With Quote
Old 2020-02-25, 14:18   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

EE916 Posts
Default

If it is of help, I have a thread on "How I Install CADO-NFS onto my Ubuntu Machines" that I use whenever doing a new install.


Edit: You might check the special note about 18.04 on the page shown above. Basically, I had to install python to get it to run. The 18.04 only had python3.

Last fiddled with by EdH on 2020-02-25 at 14:27 Reason: Added info. . .
EdH is offline   Reply With Quote
Old 2020-02-25, 16:29   #5
arakelov
 
Feb 2020

32 Posts
Default

In fact, I used your notes for my installation!
The line "git clone https://scm.gforge.inria.fr/anonscm/git/cado-nfs/cado-nfs.git" is outdated; now I think it should be "git clone https://gitlab.inria.fr/cado-nfs/cado-nfs.git"

Thanks for the help!

Last fiddled with by arakelov on 2020-02-25 at 16:31
arakelov is offline   Reply With Quote
Old 2020-02-25, 19:55   #6
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

EE916 Posts
Default

Quote:
Originally Posted by arakelov View Post
In fact, I used your notes for my installation!
The line "git clone https://scm.gforge.inria.fr/anonscm/git/cado-nfs/cado-nfs.git" is outdated; now I think it should be "git clone https://gitlab.inria.fr/cado-nfs/cado-nfs.git"

Thanks for the help!
Thanks for that update. I've made the change and am in the process of trying it with one of my 18.04 machines. This machine already has a working copy of CADO-NFS, though, so this isn't from scratch. I'll let you know if it runs or not a little later.


Edit: It "seemed" to run fine with the README sample. However "seemed" is because the machine crashed after it came up with the factors. I rebooted and am now testing a c85 from factordb.


Edit2: It factored the c85 without issue.

Last fiddled with by EdH on 2020-02-25 at 20:26 Reason: Additional info. . .
EdH is offline   Reply With Quote
Old 2020-02-25, 20:54   #7
arakelov
 
Feb 2020

32 Posts
Default

Thanks a lot for the info. I'll check again for missing packages/dependencies/whatever and try to compile a new fresh snapshot.

Best regards and happy factoring!
arakelov is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
CADO NFS Shaopu Lin CADO-NFS 522 2021-05-04 18:28
CADO help henryzz CADO-NFS 4 2017-11-20 15:14
CADO and WinBlows akruppa Programming 22 2015-12-31 08:37
CADO-NFS skan Information & Answers 1 2013-10-22 07:00
CADO R.D. Silverman Factoring 4 2008-11-06 12:35

All times are UTC. The time now is 20:21.


Fri Jul 16 20:21:54 UTC 2021 up 49 days, 18:09, 1 user, load averages: 2.42, 2.15, 2.15

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.