Re-installing Numeric and PIL Files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • W. Watson

    #1

    Re-installing Numeric and PIL Files

    For some reason Python 2.2.4 cannot find the Numeric module. It's been
    suggested that I should re-install the Numeric file. How do that? Also the
    PIL. The three install files are:
    python-2.4.4.msi
    PIL-1.1.5.win32-py2.4.exe
    Numeric-24.2.win32-py2.4.exe


    Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
    (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
    Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

    'I think it not improbable that man, like the grub that
    prepares a chamber for the winged thing it has never seen but
    is to be, may have... destinies that he does not understand."
    -- Oliver Wendell Holmes
    --
    Web Page: <home.earthlink .net/~mtnviews>
  • Robert Kern

    #2
    Re: Re-installing Numeric and PIL Files

    W. Watson wrote:
    For some reason Python 2.2.4 cannot find the Numeric module. It's been
    suggested that I should re-install the Numeric file. How do that? Also the
    PIL. The three install files are:
    python-2.4.4.msi
    PIL-1.1.5.win32-py2.4.exe
    Numeric-24.2.win32-py2.4.exe
    The latter two are executable installers. Run them.

    --
    Robert Kern

    "I have come to believe that the whole world is an enigma, a harmless enigma
    that is made terrible by our own mad attempt to interpret it as though it had
    an underlying truth."
    -- Umberto Eco

    Comment

    • W. Watson

      #3
      Re: Re-installing Numeric and PIL Files

      Robert Kern wrote:
      W. Watson wrote:
      >For some reason Python 2.2.4 cannot find the Numeric module. It's been
      >suggested that I should re-install the Numeric file. How do that? Also the
      >PIL. The three install files are:
      >python-2.4.4.msi
      >PIL-1.1.5.win32-py2.4.exe
      >Numeric-24.2.win32-py2.4.exe
      >
      The latter two are executable installers. Run them.
      >
      I have re-run Numeric. The python program still cannot detect the Numeric
      module. In IDLE, Run Modules shows:
      Traceback (most recent call last):
      File
      "C:\Sandia_Mete ors\NewSentinel \Test_Install_Y G\Python_Instal l\sentuser.py",
      line 8, in <module>
      from Numeric import *
      ImportError: No module named Numeric
      sentuser.py looks like:
      #!/usr/bin/python

      # Sentinel User Program
      # J C Chavez
      # jochave@sandia. gov

      from Tkinter import *
      from Numeric import *
      import Image
      import ImageChops
      import ImageTk
      ....


      Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
      (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
      Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

      'I think it not improbable that man, like the grub that
      prepares a chamber for the winged thing it has never seen but
      is to be, may have... destinies that he does not understand."
      -- Oliver Wendell Holmes
      --
      Web Page: <home.earthlink .net/~mtnviews>

      Comment

      • Matimus

        #4
        Re: Re-installing Numeric and PIL Files

        For some reason Python 2.2.4 cannot find the Numeric module. It's been

        Is this a typo, or are you really using 2.2.4? If so, you are going to
        have to get the versions of Numeric and PIL that work with Python 2.2.
        Or, alternatively, you can install python 2.4.4 with the .msi file you
        listed. You should also be able to run that just like an executable if
        you are using Windows XP. Based on the assumption that you have Python
        2.2 installed, this will leave you with two version of Python, which
        will work, but could be tricky. It might be best to just uninstall and
        reinstall Python.

        -Matt

        Comment

        • W. Watson

          #5
          Re: Re-installing Numeric and PIL Files

          Matimus wrote:
          >For some reason Python 2.2.4 cannot find the Numeric module. It's been
          >
          Is this a typo, or are you really using 2.2.4? If so, you are going to
          have to get the versions of Numeric and PIL that work with Python 2.2.
          Or, alternatively, you can install python 2.4.4 with the .msi file you
          listed. You should also be able to run that just like an executable if
          you are using Windows XP. Based on the assumption that you have Python
          2.2 installed, this will leave you with two version of Python, which
          will work, but could be tricky. It might be best to just uninstall and
          reinstall Python.
          >
          -Matt
          >
          Yes, a typo. 2.4.4.

          What is installed is:
          python-2.4.4.msi
          PIL-1.1.5.win32-py2.4.exe
          Numeric-24.2.win32-py2.4.exe


          Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
          (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
          Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

          'I think it not improbable that man, like the grub that
          prepares a chamber for the winged thing it has never seen but
          is to be, may have... destinies that he does not understand."
          -- Oliver Wendell Holmes
          --
          Web Page: <home.earthlink .net/~mtnviews>

          Comment

          • W. Watson

            #6
            Re: Re-installing Numeric and PIL Files

            BTW, I found a RemoveNumeric.e xe and RemovePIL.exe in the C/Python24 folder,
            but when I try to execute them, they produce a message about only being able
            to use them at start-up.

            Comment

            • Robert Kern

              #7
              Re: Re-installing Numeric and PIL Files

              W. Watson wrote:
              Robert Kern wrote:
              >W. Watson wrote:
              >>For some reason Python 2.2.4 cannot find the Numeric module. It's been
              >>suggested that I should re-install the Numeric file. How do that? Also the
              >>PIL. The three install files are:
              >>python-2.4.4.msi
              >>PIL-1.1.5.win32-py2.4.exe
              >>Numeric-24.2.win32-py2.4.exe
              >The latter two are executable installers. Run them.
              >>
              I have re-run Numeric. The python program still cannot detect the Numeric
              module.
              Well, check to make sure that the Python executable is the one that you think it
              is. You can look at sys.executable to find the actual .exe of the running Python
              interpreter. With Python 2.4.4 and a standard installation, it should be
              c:\Python24\pyt hon.exe I believe. Then check to make sure that Numeric and PIL
              are actually installed in c:\Python24\Lib \site-packages\ .

              --
              Robert Kern

              "I have come to believe that the whole world is an enigma, a harmless enigma
              that is made terrible by our own mad attempt to interpret it as though it had
              an underlying truth."
              -- Umberto Eco

              Comment

              • W. Watson

                #8
                Re: Re-installing Numeric and PIL Files

                Robert Kern wrote:
                W. Watson wrote:
                >Robert Kern wrote:
                >>W. Watson wrote:
                >>>For some reason Python 2.2.4 cannot find the Numeric module. It's been
                >>>suggested that I should re-install the Numeric file. How do that? Also the
                >>>PIL. The three install files are:
                >>>python-2.4.4.msi
                >>>PIL-1.1.5.win32-py2.4.exe
                >>>Numeric-24.2.win32-py2.4.exe
                >>The latter two are executable installers. Run them.
                >>>
                >I have re-run Numeric. The python program still cannot detect the Numeric
                >module.
                >
                Well, check to make sure that the Python executable is the one that you think it
                is. You can look at sys.executable to find the actual .exe of the running Python
                interpreter. With Python 2.4.4 and a standard installation, it should be
                c:\Python24\pyt hon.exe I believe. Then check to make sure that Numeric and PIL
                are actually installed in c:\Python24\Lib \site-packages\ .
                >
                This may be a good clue. I'm not the author of the sentuser.py program that
                I'm using 2.4 for. It's an application meant for another PC. On that
                machine, I only have 2.4 installed. I decided to learn Python a few weeks
                ago and installed 2.5.It's quite possible there's some confusion with the
                just installed application. I have not yet started my education on python,
                so know little about it.

                I did a search in the python24 folder for sys.exec* (in c:\python24), but
                came up with nothing. [nothing in a search of c:--sys.exec*] I have two
                python folders, c:\python24 and c:\python25. The contents of both folders
                look fairly similar and each have a python.exe. I do not use a PIL or
                Numeric in 2.5.


                Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

                'I think it not improbable that man, like the grub that
                prepares a chamber for the winged thing it has never seen but
                is to be, may have... destinies that he does not understand."
                -- Oliver Wendell Holmes
                --
                Web Page: <home.earthlink .net/~mtnviews>

                Comment

                • Robert Kern

                  #9
                  Re: Re-installing Numeric and PIL Files

                  W. Watson wrote:
                  I did a search in the python24 folder for sys.exec* (in c:\python24), but
                  came up with nothing. [nothing in a search of c:--sys.exec*] I have two
                  python folders, c:\python24 and c:\python25. The contents of both folders
                  look fairly similar and each have a python.exe. I do not use a PIL or
                  Numeric in 2.5.
                  I'm sorry. sys is a module. I meant for you to execute the following Python code:

                  import sys
                  print sys.executable

                  --
                  Robert Kern

                  "I have come to believe that the whole world is an enigma, a harmless enigma
                  that is made terrible by our own mad attempt to interpret it as though it had
                  an underlying truth."
                  -- Umberto Eco

                  Comment

                  • W. Watson

                    #10
                    Re: Re-installing Numeric and PIL Files

                    Robert Kern wrote:
                    W. Watson wrote:
                    >
                    >I did a search in the python24 folder for sys.exec* (in c:\python24), but
                    >came up with nothing. [nothing in a search of c:--sys.exec*] I have two
                    >python folders, c:\python24 and c:\python25. The contents of both folders
                    >look fairly similar and each have a python.exe. I do not use a PIL or
                    >Numeric in 2.5.
                    >
                    I'm sorry. sys is a module. I meant for you to execute the following Python code:
                    >
                    import sys
                    print sys.executable
                    >
                    I'm savvy about a number of languages, but not yet about Python. What py
                    file will allow this to be executed?

                    main myprog
                    {
                    import sys
                    print sys.executable
                    pause
                    } ??




                    Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                    (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                    Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

                    "Humans aren't the first species to alter the atmosphere; that
                    distinction belongs to early bacteria, which some two million
                    years ago, invented photosynthesis.
                    -- Field Notes from a Catastrophe, Kolbert

                    --
                    Web Page: <home.earthlink .net/~mtnviews>

                    Comment

                    • Robert Kern

                      #11
                      Re: Re-installing Numeric and PIL Files

                      W. Watson wrote:
                      Robert Kern wrote:
                      >W. Watson wrote:
                      >>
                      >>I did a search in the python24 folder for sys.exec* (in c:\python24), but
                      >>came up with nothing. [nothing in a search of c:--sys.exec*] I have two
                      >>python folders, c:\python24 and c:\python25. The contents of both folders
                      >>look fairly similar and each have a python.exe. I do not use a PIL or
                      >>Numeric in 2.5.
                      >I'm sorry. sys is a module. I meant for you to execute the following Python code:
                      >>
                      > import sys
                      > print sys.executable
                      >>
                      I'm savvy about a number of languages, but not yet about Python. What py
                      file will allow this to be executed?
                      Just the lines between the comments here:

                      ####
                      import sys
                      print sys.executable
                      ####

                      I recommend going through the tutorial first, before worrying about Numeric or
                      PIL. Here is the URL for the 2.4.4 version:

                      The official home of the Python Programming Language


                      --
                      Robert Kern

                      "I have come to believe that the whole world is an enigma, a harmless enigma
                      that is made terrible by our own mad attempt to interpret it as though it had
                      an underlying truth."
                      -- Umberto Eco

                      Comment

                      • W. Watson

                        #12
                        Re: Re-installing Numeric and PIL Files

                        Robert Kern wrote:
                        W. Watson wrote:
                        >Robert Kern wrote:
                        >>W. Watson wrote:
                        >>>
                        >>>I did a search in the python24 folder for sys.exec* (in c:\python24), but
                        >>>came up with nothing. [nothing in a search of c:--sys.exec*] I have two
                        >>>python folders, c:\python24 and c:\python25. The contents of both folders
                        >>>look fairly similar and each have a python.exe. I do not use a PIL or
                        >>>Numeric in 2.5.
                        >>I'm sorry. sys is a module. I meant for you to execute the following Python code:
                        >>>
                        >> import sys
                        >> print sys.executable
                        >>>
                        >I'm savvy about a number of languages, but not yet about Python. What py
                        >file will allow this to be executed?
                        >
                        Just the lines between the comments here:
                        >
                        ####
                        import sys
                        print sys.executable
                        ####
                        >
                        I recommend going through the tutorial first, before worrying about Numeric or
                        PIL. Here is the URL for the 2.4.4 version:
                        >
                        The official home of the Python Programming Language

                        >
                        Here's the program I ran.

                        ### begin
                        #!/usr/bin/python

                        # Check mysys

                        import sys
                        print sys.executable

                        ### end

                        It put up a black screen in a flash and disappeared.

                        Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                        (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                        Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

                        "Humans aren't the first species to alter the atmosphere; that
                        distinction belongs to early bacteria, which some two million
                        years ago, invented photosynthesis.
                        -- Field Notes from a Catastrophe, Kolbert

                        --
                        Web Page: <home.earthlink .net/~mtnviews>

                        Comment

                        • Robert Kern

                          #13
                          Re: Re-installing Numeric and PIL Files

                          W. Watson wrote:
                          Here's the program I ran.
                          >
                          ### begin
                          #!/usr/bin/python
                          >
                          # Check mysys
                          >
                          import sys
                          print sys.executable
                          >
                          ### end
                          >
                          It put up a black screen in a flash and disappeared.
                          Run it from the terminal or execute those lines in the interactive interpreter
                          in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.pytho n.
                          It is more geared towards the questions you are asking.



                          --
                          Robert Kern

                          "I have come to believe that the whole world is an enigma, a harmless enigma
                          that is made terrible by our own mad attempt to interpret it as though it had
                          an underlying truth."
                          -- Umberto Eco

                          Comment

                          • W. Watson

                            #14
                            Re: Re-installing Numeric and PIL Files

                            Robert Kern wrote:
                            W. Watson wrote:
                            >
                            >Here's the program I ran.
                            >>
                            >### begin
                            >#!/usr/bin/python
                            >>
                            ># Check mysys
                            >>
                            >import sys
                            >print sys.executable
                            >>
                            >### end
                            >>
                            >It put up a black screen in a flash and disappeared.
                            >
                            Run it from the terminal or execute those lines in the interactive interpreter
                            in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.pytho n.
                            It is more geared towards the questions you are asking.
                            >

                            >
                            I entered each line in the shell, and the output shows
                            C:\Python25\pyt honw.exe, so it's not using 2.4. How do I change that?


                            Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                            (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                            Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

                            "Humans aren't the first species to alter the atmosphere; that
                            distinction belongs to early bacteria, which some two million
                            years ago, invented photosynthesis.
                            -- Field Notes from a Catastrophe, Kolbert

                            --
                            Web Page: <home.earthlink .net/~mtnviews>

                            Comment

                            • W. Watson

                              #15
                              Re: Re-installing Numeric and PIL Files

                              Robert Kern wrote:
                              W. Watson wrote:
                              >
                              >Here's the program I ran.
                              >>
                              >### begin
                              >#!/usr/bin/python
                              >>
                              ># Check mysys
                              >>
                              >import sys
                              >print sys.executable
                              >>
                              >### end
                              >>
                              >It put up a black screen in a flash and disappeared.
                              >
                              Run it from the terminal or execute those lines in the interactive interpreter
                              in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.pytho n.
                              It is more geared towards the questions you are asking.
                              >

                              >
                              I entered each line in the shell, and the output shows
                              C:\Python25\pyt honw.exe, so it's not using 2.4. How do I change that?


                              Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                              Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

                              "Humans aren't the first species to alter the atmosphere; that
                              distinction belongs to early bacteria, which some two million
                              years ago, invented photosynthesis.
                              -- Field Notes from a Catastrophe, Kolbert

                              --
                              Web Page: <home.earthlink .net/~mtnviews>

                              Comment

                              Working...