Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
108 user(s) are online (91 user(s) are browsing Forums)

Members: 2
Guests: 106

jabirulo, sailor, more...

Support us!

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)

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

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

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

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?

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
Re: Python 2 libraries
Not too shy to talk
Not too shy to talk


See User information
Did this ever see the light of day? I mean, I assume not, or it would be out there?


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top
Re: Python 2 libraries
Quite a regular
Quite a regular


See User information
@MartinW
I have a fairly stable 2.7.18 version right now - which is the last version; including argparse and collections as expected.

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
Not too shy to talk
Not too shy to talk


See User information
Have since discovered that realistically python v2 anything isn’t of any use to me. I was working with pygame which like most stuff these days needs at least v3. I have no idea which version of v3. I’m in the process of porting it to C++ but I’m having to relearn C++ so it’s slow going and things have stalled for now due to life.


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
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-2024 The XOOPS Project