Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
A lot of old code got 'No module named Scientific.IO.NetCDF' error. How to make it run under RH6?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Posts
    23

    Old python code can't run under Red Hat 6?


    A lot of old code got 'No module named Scientific.IO.NetCDF' error. How to make it run under RH6?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    By providing a dev and test environment and then have a developer work on it.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Posts
    23
    Quote Originally Posted by Irithori View Post
    By providing a dev and test environment and then have a developer work on it.
    Those are old codes. Developer already left company. I am new to Linux, does backward compatibility very bad for Linux?

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    Every language and operating system evolves.

    Deprecated features or parts are discarded eventually, new ones are added. This happens usually at a major version change.
    Ultimately, this is a good thing. You want a supported and up to date environment as well as security patches, etc.

    Also IT people move on. For a developer it makes no sense to learn a deprecated language.
    So the people available on the job market will focus on recent versions/languages as well.

    Your chosen distro RedHat guarantees compatibility and feature stability within each major version and supports each major version for several years.
    You didnt specify, how old this code and what the previous platform was.
    If the previous platform isnt end-of-life yet, it may be an option to maintain it for a bit longer.

    But imho eventually an upgrade is inevitable, aka: You will need to have a developer migrating this python code.
    You must always face the curtain with a bow.

  6. #5
    Just Joined!
    Join Date
    Jan 2013
    Posts
    23
    The code is very long and difficult for a new developer to understand.

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    All the more reason to get started
    to not end up in an dead end aka with an unmaintained, unsecure app that noone dares to touch for fear of breaking it.
    (Yes, I have been in these kinds of discussions before )

    Again: What is the previous platform?
    You must always face the curtain with a bow.

  8. #7
    Just Joined!
    Join Date
    Jan 2013
    Posts
    23
    I believe it was 3.6

  9. #8
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    Afaik, there was no redhat 3.6

    Can you please paste the output of
    Code:
    uname -a
    cat /etc/*release
    You must always face the curtain with a bow.

  10. #9
    Just Joined!
    Join Date
    Jan 2013
    Posts
    23
    Maybe I didn't remember correctly.

    beaufort->xyz26% uname -a
    Linux beaufort 2.6.32-279.19.1.el6.x86_64 #1 SMP Sat Nov 24 14:35:28 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    beaufort->xyz27% cat /etc/*release
    Red Hat Enterprise Linux Workstation release 6.3 (Santiago)
    Red Hat Enterprise Linux Workstation release 6.3 (Santiago)

  11. #10
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    That is the new machine.

    Is the old one still around?
    The reason why I am asking is to get an impression on how old the code and environment might be.

    If it was e.g. a RedHat Enterprise Linux 5, then you could safely run your python app there. Because rhel 5 is still supported (until 31. März 2017)
    If it was a previous version, then I would highly encourage an upgrade.
    You must always face the curtain with a bow.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •