Comments (5)
Looks like more is needed to make this ready for python3. A forking I will go.
from python-hponeview.
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.
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.
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.
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)
- Creating a server profile from a profile template with a local storage logical drive HOT 1
- OneView API unable to handle concurrent 'interconnect.get_statistics' calls HOT 1
- Exception raised when attempting to get a resource URI from a remote respository entity HOT 1
- I3S extract artifact bundle API missing required parameters HOT 1
- OneView version requires credentials HOT 1
- Simple example to create a network fails HOT 2
- Oneview 4.20 support HOT 5
- "type" field in migratable vc domains is invalid HOT 1
- Unable to retrieve Server Hardware details by filter “ServerName” but able to do it through filter “name” HOT 5
- Trying to load config HOT 6
- Get Info for fan failure, array controller failure, smart storage battery status low or dead HOT 1
- get_by function for id_pools_ipv4_ranges HOT 1
- Identify an IPv4 range without knowing its URI HOT 1
- server_profile_templates does not have a function get_by_name HOT 1
- get attributes of JBOD disk in server profiles - Erase on delete and permanent HOT 1
- Functions 'get_by_*' in example server_hardware.py do not exist HOT 1
- Where can I get a backup URI to restore devices on oneview ? HOT 2
- id_pools_vmac_ranges and id_pools_WWNN_ranges and id_pools_sn_ranges do not have a get_all function HOT 3
- my build failed in Travis with the following that I am not sure what to do about...
- SDK does not Support API version 1200 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-hponeview.