mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2020-07-12, 14:33   #1
9CB
 
Jul 2020

1 Posts
Unhappy factmsieve.py Indexerror : list Index out of range

........................
........................
Traceback <most recent call last>
File "C:\Users\user\snfsmethod\factmsieve.py", line 2104, in <module>
output_summary(NAME, fact_p, pols_p, poly_p, lats_p)
File "C:\Users\user\snfsmethod\factmsieve.py", line 1789, in output_summary
timescale = float(re.sub('timeunit:\s*', '', tmp[0]))
Indexerror : list Index out of range

C:\Users\user\snfsmethod>

What was happened? my factmsieve.py was copied from https: www. factmsieve. py
But i didn't change anything and got this unknown problem.
Anyone got this problem tell me or just give me some suggestion! Thanks!

Last fiddled with by VBCurtis on 2022-01-17 at 14:36
9CB is offline   Reply With Quote
Old 2022-01-17, 07:39   #2
murphybeck
 
Jan 2022

12 Posts
Default

The way Python indexing works is that it starts at 0, so the first number of your list would be [0]. Index Error: List index out of range means you are trying to get an item in a list that doesn't exist. It means that you are referring to n-th element of the python list, while the length of the list is smaller than n. whenever you get this type of error please cross check with items that comes between/middle in range, and insure that their index is not last if you get output then you have made perfect error that mentioned.

An index in Python refers to a position within an ordered list . To retrieve an element of the list, you use the index operator ([]) . Using indexing you can easily get any element by its position.

Last fiddled with by VBCurtis on 2022-01-17 at 14:37 Reason: hyperlink removed from first-time poster.
murphybeck is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Good Country Index masser Soap Box 7 2021-03-03 23:22
CADO-NFS IndexError arakelov CADO-NFS 6 2020-02-25 20:54
index of TF cmd cmd 9 2019-11-25 13:13
Soapbox Thread Index only_human Soap Box 7 2015-12-24 22:35
8675309^2-1 just passed index of 3000 pdazzl Aliquot Sequences 10 2015-02-14 17:42

All times are UTC. The time now is 07:51.


Mon Dec 5 07:51:14 UTC 2022 up 109 days, 5:19, 0 users, load averages: 1.53, 1.32, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔