Giter Site home page Giter Site logo

Comments (5)

cocampbe avatar cocampbe commented on June 29, 2024

Looks like more is needed to make this ready for python3. A forking I will go.

from python-hponeview.

cocampbe avatar cocampbe commented on June 29, 2024

OK. Here is my situation. RHEL/CENTOS/OL7 come with python 2.7.5 by default. If you change this line

if PYTHON_VERSION < (2, 7, 9):

in init.py, everythong seems to work fine. I am not certain when Red Hat will change to 2.7.9. Maybe in 7u4. But for now making that change will allow folks to use the supported version that ships with those distros. One could use software collections, but I am not certain that many people are familiar with them.

from python-hponeview.

fgbulsoni avatar fgbulsoni commented on June 29, 2024

Hello @cocampbe , there are many places in the code that import future, and future's standard library is also imported quite extensively.

I'd recommend against not installing future despite of the Python version used.

As for 2.7.5 on RHEL, it should already be working with no need for alterations.

    if PYTHON_VERSION < (2, 7, 9):
        warning_message = 'Running unsupported Python version: %s, unexpected errors might occur.'
        warning_message += ' Use of Python v2.7.9+ is advised.'
        warnings.warn(warning_message % '.'.join(map(str, PYTHON_VERSION)), Warning)

This part of the code will just be raising warnings, since that Python version is considered as not supported.

The SDK works on RHEL's python version mainly because RedHat has TLS backported, but that is not a rule of thumb for other distros.

Related issues for more information: #279 & #259

@cocampbe Are you hitting anything related to this that is restricting you at the moment?

from python-hponeview.

cocampbe avatar cocampbe commented on June 29, 2024

I need to double check. I was kind of all over the place yesterday. I started on OL6, but it runs 2.6.6 by default. Then I moved over to OL7. I may have just got a warning, but when I tried querying fc-networks, it failed and I just assumed it was a code issue. I am in Houston so Harvey has become a distraction. I think this will work on OL6 using softwarecollections. I'll give that a shot and report back.

from python-hponeview.

cocampbe avatar cocampbe commented on June 29, 2024

OK, I was able to install it on OL6. You have to enable the softwarecollections repo. Then you can install python27. Next you can clone the hponeview repo. You will need to install future first. The below command will install it. The trusted-host part is not necessary. I have to because of the way our proxies are set.

scl enable python27 'pip install future --trusted-host pypi.python.org'

After that, you can install the module. cd to the repo and run this.

scl enable python27 'pip install .'

I then tested a script and it is working. I do see that it is just a warning. Sorry for any confusion.

from python-hponeview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.