Author Topic: Python in use warning  (Read 11301 times)

0 Members and 1 Guest are viewing this topic.

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Python in use warning
« on: November 12, 2021, 11:31:50 pm »
I think there needs to be a " has a python dependency " warning on packages before installing packages. There's too many fckn dependencies and versions that break on embedded ARM systems with python.
« Last Edit: November 13, 2021, 06:11:51 pm by Simon »
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #1 on: November 13, 2021, 12:11:36 am »
Ouch, you seem angry. ;D
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12464
  • Country: us
    • Personal site
Re: Python in use warning
« Reply #2 on: November 13, 2021, 12:22:20 am »
If you think so - go and implement it. Everyone else seems to be fine with that.
Alex
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Python in use warning
« Reply #3 on: November 13, 2021, 12:46:03 am »
Ah, I take it you aren't familiar with NPM then? :-DD

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: newbrain, SiliconWizard

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Python in use warning
« Reply #4 on: November 13, 2021, 02:58:23 am »
Ah, I take it you aren't familiar with NPM then? :-DD

No, but I am now familiar with how to fix broken dependencies caused by very old python dependencies. Don't know why I assumes dependencies were checked before installing.
 

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Python in use warning
« Reply #5 on: November 13, 2021, 09:11:50 am »
Ouch, you seem angry. ;D

I feel python targets the lowest common denominator class of programmer. If your an idiot python's for you, moron, no problem python's got ya covered, lazy yup phyton your go to. Dependencies on old incompatible python RTE, missing dependencies, and zero error handling. grep -i phyton /var/crash/*.crash is now my first go to.

apt-get update;apt-get upgrade;sync;reboot
grep -i phyton /var/crash/*.crash

Linux used to be quick and easy for quick test installs. After today I'm done with testing on anything I don't have a pre-built image for.
« Last Edit: November 13, 2021, 09:14:04 am by blacksheeplogic »
 
The following users thanked this post: SL4P, neil555, Karel

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2539
  • Country: 00
Re: Python in use warning
« Reply #6 on: November 13, 2021, 09:25:32 am »
I feel python targets the lowest common denominator class of programmer.

This
 
The following users thanked this post: SL4P, Bud

Offline gmb42

  • Frequent Contributor
  • **
  • Posts: 335
  • Country: gb
Re: Python in use warning
« Reply #7 on: November 13, 2021, 02:01:46 pm »
I feel python targets the lowest common denominator class of programmer.

This

Such a shame the Python folks don't restrict use of the language only to those anointed from on high.

If you don't like a programming language then don't use it, don't get bent out of shape on the internet about it.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Python in use warning
« Reply #8 on: November 13, 2021, 02:05:31 pm »
It's the most popular language for a reason.  The simplicity of BASIC, with the power of... anything else today, with consistent syntax, plus it's compact, readily distributed, and only occasionally suffers dependency errors as you've unfortunately seen here.

Same trigger back in the majority-C days, would you have made the same complaint?  Bet you would. :D  Blaming the language is a non sequitur.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Python in use warning
« Reply #9 on: November 13, 2021, 08:30:32 pm »
It’s going to die off like Pascal did…
Very popular as a teaching language, but also carries the baggage of being interpreted.
Popular, because every college course uses it - hence every ‘new’ programmer thinks it can do everything.

It has some uses, but isn’t a system programming language, and certainly depends on the speed of the modern hardware.
« Last Edit: November 15, 2021, 09:23:13 pm by SL4P »
Don't ask a question if you aren't willing to listen to the answer.
 

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Python in use warning
« Reply #10 on: November 13, 2021, 08:50:59 pm »
Such a shame the Python folks don't restrict use of the language only to those anointed from on high.
If you don't like a programming language then don't use it, don't get bent out of shape on the internet about it.

The problem is low skilled python programmers dick waving submitting code into releases. They don't have the skills to do the regression and release testing, all error handling is left up to crash, and the dependency checking makes assumptions. It comes down to they don't actually know what their code does because they strung a few verbs together and 99% of it is someone else code. shitty code built on top of shitty code.

Every environment I set up yesterday for testing against had failures right from the install and all of them were python. Most removing the package got ride of the crash, one I had to fix a circular broken dependency and with one desktop issue I gave up and reinstalled. Base release code need a much better understanding of the code, this crap I had to deal with yesterday should all be in optional community releases packages.
 
The following users thanked this post: neil555

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #11 on: November 13, 2021, 09:50:22 pm »
Well. Even if we try avoiding flamewars, Python's strong point is precisely that it is easy to use with a lot of existing libraries to tap into. So of course you'll find more people with low skills using it that some other languages which just can't be used effectively without significant skills.

You'll also find skilled programmers using it, of course. But after that, it's all about the numbers.

As some have said, if you don't like it, just stay away. That's mostly what I do. Unfortunately, this doesn't really go both ways: those using it, even when using it as if they'd be the only ones that would ever use their programs, tend not to keep them to themselves. ::)
Then yes, it's become so popular that sometimes you may not have a choice, and you're bound to be exposed to some tool written in Python sooner or later. That's when things start becoming annoying. ;D
« Last Edit: November 13, 2021, 09:52:27 pm by SiliconWizard »
 

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Python in use warning
« Reply #12 on: November 13, 2021, 10:07:12 pm »
As some have said, if you don't like it, just stay away. That's mostly what I do. Unfortunately, this doesn't really go both ways: those using it, even when using it as if they'd be the only ones that would ever use their programs, tend not to keep them to themselves. ::)
Then yes, it's become so popular that sometimes you may not have a choice, and you're bound to be exposed to some tool written in Python sooner or later. That's when things start becoming annoying. ;D

My point is that your getting this poorly written code now just doing update/upgrade of base code. One of the big reasons in my mind is that we have got to a point where pretty complex programming is being done by code warriors with very little understanding of the actual code base and what it is doing. Without the base understanding the regression testing is poorly done as a result. I don't have to deal with this on Windows or proprietary OS releases or my own builds based on much older code bases. This is an achilles heel for Linux.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Python in use warning
« Reply #13 on: November 13, 2021, 11:37:11 pm »
Yeah ok sure.

I was kind of interested in a reasonable discussion in this thread, but it's patently clear you don't want that. Oh well...

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #14 on: November 14, 2021, 12:02:36 am »
As some have said, if you don't like it, just stay away. That's mostly what I do. Unfortunately, this doesn't really go both ways: those using it, even when using it as if they'd be the only ones that would ever use their programs, tend not to keep them to themselves. ::)
Then yes, it's become so popular that sometimes you may not have a choice, and you're bound to be exposed to some tool written in Python sooner or later. That's when things start becoming annoying. ;D

My point is that your getting this poorly written code now just doing update/upgrade of base code. One of the big reasons in my mind is that we have got to a point where pretty complex programming is being done by code warriors with very little understanding of the actual code base and what it is doing. Without the base understanding the regression testing is poorly done as a result. I don't have to deal with this on Windows or proprietary OS releases or my own builds based on much older code bases. This is an achilles heel for Linux.

While I mostly agree with your first point about testing, in particular regression testing, I have a harder time linking this to the second part, which is Linux vs Windows.
Not sure what you mean exactly here and what the difference is, in relation to Python?

One strong point of Linux, but which can also be its achilles heel for "regular" end-users is software distributed as source code. Of course it's a setup that's bound to get you more potential headaches for properly building software on a large number of different systems than just having binaries that are self-contained and that can run directly without having to mess with anything. But I'm not sure this is even what you meant, and then it would only be marginally related to Python.
 

Offline Bud

  • Super Contributor
  • ***
  • Posts: 7922
  • Country: ca
Re: Python in use warning
« Reply #15 on: November 14, 2021, 12:17:03 am »
What do you want from a language named after a clown show.
Facebook-free life and Rigol-free shack.
 

Offline blacksheeplogicTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Python in use warning
« Reply #16 on: November 14, 2021, 12:34:01 am »
While I mostly agree with your first point about testing, in particular regression testing, I have a harder time linking this to the second part, which is Linux vs Windows.
Not sure what you mean exactly here and what the difference is, in relation to Python?

The base release of Windows or other proprietary OS work out of the box for the most part and you can therefore develop and  test plans. On Linux I'm spending more and more of my time fixing problems after updates the bulk of which have been done in python.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #17 on: November 14, 2021, 01:20:59 am »
What do you want from a language named after a clown show.

Well, nah. The show is actually quite funny.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21608
  • Country: us
Re: Python in use warning
« Reply #18 on: November 14, 2021, 07:41:04 am »
It's the most popular language for a reason.  The simplicity of BASIC, with the power of... anything else today, with consistent syntax, plus it's compact, readily distributed, and only occasionally suffers dependency errors as you've unfortunately seen here.

Same trigger back in the majority-C days, would you have made the same complaint?  Bet you would. :D  Blaming the language is a non sequitur.

Tim

There's that old saying "A poor craftsman blames his tools."

At my day job the back end of our product is all Python. I use the same language to write test automation scripts. The language is very easy to use, but plenty powerful in the hands of a really good developer.
 
The following users thanked this post: newbrain

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #19 on: November 14, 2021, 06:07:08 pm »
It's the most popular language for a reason.  The simplicity of BASIC, with the power of... anything else today, with consistent syntax, plus it's compact, readily distributed, and only occasionally suffers dependency errors as you've unfortunately seen here.

Same trigger back in the majority-C days, would you have made the same complaint?  Bet you would. :D  Blaming the language is a non sequitur.

Tim

There's that old saying "A poor craftsman blames his tools."

Yep!

At my day job the back end of our product is all Python. I use the same language to write test automation scripts. The language is very easy to use, but plenty powerful in the hands of a really good developer.

No doubt about that, and a corollary of the above old saying is that a good craftsman can do wonders with poor tools. ;D
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2175
  • Country: fi
  • Embedded SW/HW.
Re: Python in use warning
« Reply #20 on: November 15, 2021, 11:26:33 am »
OP's issues are not related to Python as a language per se. There is a difference between Python as a language and Python's ecosystem(s) (with some poorly supported packages). Luckily there are lots of freely available, very well supported packages. Using these better supported packages is highly recommended. There is no reason to use unsupported or low-quality packages with broken dependencies.

Not every hardware platform is well supported, or supported at all. Also, many packages are released as "works for me", so there is no guarantee what so ever for maintaining these packages in future. But it is not the fault of Python as a language.
« Last Edit: November 15, 2021, 11:43:28 am by Kalvin »
 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2510
  • Country: au
Re: Python in use warning
« Reply #21 on: November 15, 2021, 12:15:48 pm »
No doubt about that, and a corollary of the above old saying is that a good craftsman can do wonders with poor tools. ;D

Yep, a good craftsman knows both the limits of his tools and how to work around them.

I now use Python often for rapid prototyping. I'd go as far as saying I even like it as a language. I've never met a language that didn't have some form of perversity that needed working around.
 
The following users thanked this post: newbrain

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: Python in use warning
« Reply #22 on: November 15, 2021, 05:40:46 pm »
I've never met a language that didn't have some form of perversity that needed working around.
I did quite a bit of PHP 3 through PHP 5 back in the day.  The magic quotes inanity, the oblivious approach to security... Ouch.  And yet, my implementations didn't suffer from the otherwise typical bugs like malformed input exploits, path exploits with crafted URIs containing /../, and so on.  I was very careful, and spent way too much time avoiding the pitfalls of the language, instead of leveraging the power of the language, because it was so full of pitfalls.

In that regard, I'm much happier with Python, in comparison.  At least with Python I'm not walking in a security mine field all the time.  Python has its own drawbacks, but in my opinion, they pale in comparison.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2175
  • Country: fi
  • Embedded SW/HW.
Re: Python in use warning
« Reply #23 on: November 15, 2021, 06:41:36 pm »
In that regard, I'm much happier with Python, in comparison.  At least with Python I'm not walking in a security mine field all the time.  Python has its own drawbacks, but in my opinion, they pale in comparison.

Python became much friendlier and more robust language after they introduced type hinting and type checking tools. Before type hinting it was really a pain trying to keep track of correct data types.

Edit: Not to mention those countless times that I got bitten with the division operator / by dividing a variable containing an integer value with another variable containing an integer value, before they finally decided that the division operator / will produce a floating point result, and introduced proper integer division operator //.
« Last Edit: November 15, 2021, 06:51:17 pm by Kalvin »
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17781
  • Country: fr
Re: Python in use warning
« Reply #24 on: November 15, 2021, 06:44:28 pm »
I've never met a language that didn't have some form of perversity that needed working around.
I did quite a bit of PHP 3 through PHP 5 back in the day.  The magic quotes inanity, the oblivious approach to security... Ouch. 

Yeah, PHP is pretty horrible. But at least no one is trying to use it outside of generating dynamic web content. (That I know of anyway, because, you never know... :-DD )
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf