Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
121 user(s) are online (63 user(s) are browsing Forums)

Members: 2
Guests: 119

Maijestro, geennaam, more...

Headlines

 
  Register To Post  

Python 2 libraries
Quite a regular
Quite a regular


See User information
Collections is a fundamental module for Python, but it is not existing in our SYS:System/Python/lib.

Presumably, we at least should have all the modules from package: libpython2.7-minimal?

Is it a simple matter of copying the PY files over. I am guessing so .....

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Python 2 libraries
Quite a regular
Quite a regular


See User information
Right, collections was not released in until after 2.5.6.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Python 2 libraries
Home away from home
Home away from home


See User information
@all

I didn't want to start a new thread, so maybe i can hijack yours?

I guess its not possible to add libs from releases later than our 2.5.x Python?

I'd need "argparse", but that was introduced in 3.2


...

And i guess a newer port of Python is out of the question too?
(I have no idea how much work is involved for that to happen, though, sorry for asking)

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Python 2 libraries
Quite a regular
Quite a regular


See User information
When I get around to it I will attempt a port of Python 2.7 since if anyone is running Py scripts from version 2, it is generally at least 2.7. As you know, we only support 2.5 right now.

ArgParse is also in version 2 I believe.

Unless someone else is thinking about it, version 3 is just not on the horizon right now. I do think - though - that a version of 2.7 will be good for us.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Python 2 libraries
Home away from home
Home away from home


See User information
@rjd324

Cool

Humm, but argparse can't be found it says...need to look for it online then

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Python 2 libraries
Home away from home
Home away from home


See User information
@rjd324

You are right, but it was introduced in v2.7
https://docs.python.org/2/library/argparse.html

So +1 from me for a 2.7 port

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Python 2 libraries
Site Builder
Site Builder


See User information
@Raziel
Quote:
I'd need "argparse", but that was introduced in 3.2

Please have a look at my aiostreams code, because I am using something like that and maybe it is useful for you too.

https://github.com/walkero-gr/aiostreams/blob/master/argparse.py

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Python 2 libraries
Home away from home
Home away from home


See User information
@walkero

Why, thanks a lot, the error i was getting is gone now

Unfortunately it needs yet another package and that will be a nogo.

lxml has too many other dependancies

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Python 2 libraries
Quite a regular
Quite a regular


See User information
I have a version of 2.7.3 running on the X5000 at the moment.

I need to do some more testing and see if I can improve the PYTHONPATH / PYTHONHOME situation.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Python 2 libraries
Home away from home
Home away from home


See User information
@rjd324


Need a betatester?

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Python 2 libraries
Quite a regular
Quite a regular


See User information
@Raziel

I just sent you a message.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project