News for hackers. Stuff that matters.
Re:This Is What Python Beginners Have to Deal With by thewhitetulip on Thursday September 08, 2016 @06:15AM (#12451683)
taking a quick look at the issue

the website says

PycURL is a Python interface to libcurl. and that would mean that we need libcurl installed. I am sure this is true with any other language as well, since this is a linker library, if that's a word.

also, surprisingly the website didn't mention that you need to install the libcurl4-openssl-dev :-)

so something is broken on this package.

Again, this is a package issue and not the issue of the language. We can find such examples in all languages. Doesn't mean Python's package system is broken or the language is broken.

I am waiting when the author will start teaching Go! just to read his "Problems everyone faces learning Go".

Re:This Is What Python Beginners Have to Deal With by nl on Thursday September 08, 2016 @06:46AM (#12451791)
PycURL is a Python interface to libcurl. and that would mean that we need libcurl installed. I am sure this is true with any other language as well, since this is a linker library, if that's a word.

But this is just an example of the type of thing that is typical in Python using pip.

Anaconda is a bit better (see [1] for the details) but it is a real problem. It isn't uncommon to resort to Docker to work around this.

Pretending this isn't a problem for beginners (and even comparatively advanced users) isn't helpful.

[1] https://www.continuum.io/blog/developer-blog/python-packages...

Re:This Is What Python Beginners Have to Deal With by thewhitetulip on Thursday September 08, 2016 @07:31AM (#12452040)
I am curious, how do these libraries work for other languages, for instance Java interface to curl, how do they work around that fact?

This can be put forward as a PEP, I am not undermining the issue.

Re:This Is What Python Beginners Have to Deal With by nl on Thursday September 08, 2016 @12:31PM (#12454521)
I am curious, how do these libraries work for other languages, for instance Java interface to curl, how do they work around that fact?

They typically ship a private precompiled library and link to without using the system LD_LIBRARY_PATH (or whatever).

Anaconda gets this mostly right - they ship precompiled libraries, but I'm not sure what the do with the linking situation.

This can be put forward as a PEP, I am not undermining the issue.

That isn't the most useful response for a beginner programmer.

Re:This Is What Python Beginners Have to Deal With by thewhitetulip on Thursday September 08, 2016 @01:05PM (#12454846)
exactly how many such precompiled libs do other languages ship?

pycurl etc.is not a part of stdlib, python or pip is not broken, this package's install mech could be broken

>That isn't the most useful response for a beginner programmer.

it was not for them, it was for those who are willing for a change and think this is a legitimate problem, jmdownvoting me win't make me shut up or solve the problem!

we can ask for a PEP since python is an Open Source project, noy sure if the author of this post tried that approach