Memory Error in Python Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shrikantm4u
    New Member
    • Feb 2007
    • 2

    #1

    Memory Error in Python Script

    Hi,

    I am running a python script for some loop calculations and it is giving me memory error. Seems like my intermediate data is not releasing any memory and I get memory error. Any suggestions to resolve this issue would be highly appreciated.

    Thanks.
    S
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Originally posted by shrikantm4u
    Hi,

    I am running a python script for some loop calculations and it is giving me memory error. Seems like my intermediate data is not releasing any memory and I get memory error. Any suggestions to resolve this issue would be highly appreciated.

    Thanks.
    S
    It sounds like you may have an endless loop or you are looping on a large amount of data using range(), or ..... it could be a number of things. If you could post some code we may be able to help.

    Comment

    • cybervegan
      New Member
      • Jan 2007
      • 36

      #3
      Originally posted by shrikantm4u
      Hi,

      I am running a python script for some loop calculations and it is giving me memory error. Seems like my intermediate data is not releasing any memory and I get memory error. Any suggestions to resolve this issue would be highly appreciated.

      Thanks.
      S
      Python does dynamic, managed, memory allocation, so it's usually quite hard to get "memory errors", apart from simply running out of memory. If you are getting a message telling you that something has accessed memory inappropriately , or you get a coredump, for instance, it would suggest a problem with a library you are using, or even a bug in the python interpreter. Please post the exact error and an example of your code...

      hth
      -cybervegan

      Comment

      • shrikantm4u
        New Member
        • Feb 2007
        • 2

        #4
        I am getting below listed error -

        The instruction at "0X67710976 " referenced memort at "0X00c607e9 ". The memory could not be "read".

        Yes, it it a large dataset I am working on.

        Comment

        • ghostdog74
          Recognized Expert Contributor
          • Apr 2006
          • 511

          #5
          large dataset? hmm...using range()?? instead of guessing , why not post your code.

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            Originally posted by shrikantm4u
            I am getting below listed error -

            The instruction at "0X67710976 " referenced memort at "0X00c607e9 ". The memory could not be "read".

            Yes, it it a large dataset I am working on.
            We've got to know things like
            What module/class/function
            What platform/version
            What other details
            ???????
            and like my friend says
            Originally posted by ghostdog74
            large dataset? hmm...using range()?? instead of guessing , why not post your code.

            Comment

            Working...