Hi,
OpenWrt installed in Yún comes with python 2.7.3 but do you know how can I install the cherrypy packages ? I haven't found any reference...
Regards,
Joan
Hi,
OpenWrt installed in Yún comes with python 2.7.3 but do you know how can I install the cherrypy packages ? I haven't found any reference...
Regards,
Joan
I have the Cherrypy server working as a back-end to Bottle. I did not try the complete CherryPy as I don't need it. I have no reason to think it won't work.
I just copied the Cherrypy and Bottle files into my EzScrn Python project. I did not go through any "install" process.
...R
Installed Cherrypy normally, without any package:
Installation completed.
Regards,
Joan
I should have explained that the reason I have included the Bottle, CherryPy and PySerial code in my EzScrn demo is so that anyone can download and use the demo without any external dependencies apart from Python itself.
I don't like the idea that a program can only be run on a PC that already has A,B and X installed on it.
...R
Robin2:
I don't like the idea that a program can only be run on a PC that already has A,B and X installed on it.
A noble sentiment. This may be a silly question, as I haven't looked closely at your installation package, but what happens if someone goes to install your program and they already have A, B, and/or X installed? Does it ignore them, overwrite them, or install a second copy?
ShapeShifter:
Does it ignore them, overwrite them, or install a second copy?
It ignores any installed versions because my code explicitly imports the local versions
The local versions could indeed be a second (or Nth) copy - but disk space is very cheap. However the copies in my project are not "installed" into the main Python system.
...R
Robin2:
but disk space is very cheap
... until you are running low on it.
In my case, the costs (read: time) associated with moving into a new larger disk drive are much more expensive than the disk itself. And I pay dearly for limited Internet bandwidth and hate the idea of downloading duplicate stuff that I don't need. (For example, for one of my work projects, we are using a module that requires going to the vendor's website to build and download a new firmware image. The download for each build includes the approximately 300 kB of actual firmware, and up to 38 MB of documentation and utilities, which are identical for each download. That's 99.2% useless overhead! :o )
I'm not claiming that's the case with you, and I applaud your efforts to make your installation easy. I just get tired of companies that assume that everyone has unlimited super fast bandwidth, and the amount of "fluff" that gets foisted on us doesn't matter. I don't want full page animated graphics when going to a web site, I just want to be able to find the information I want (which doesn't seem to be there anymore since they went with a glitzy trendy web site.) And I'm sick of being forced to download updates I have no intention of installing -- my iPads routinely download updates that are over a gigabyte each without asking me (and which I have no intention of actually installing) thereby using up my allowed bandwidth for the day that I would rather use for something productive! If I downloaded and installed every update that everybody wants me to install, I'd have no bandwidth or time to do anything else! (And if I installed the latest versions of the Arduino IDE with all of their reported bugs, I'd not be able to get anything to run.)
... ... OK, I feel better now... sorry about that! :-[
I agree with almost everything you say. I have been particularly unimpressed with a number of new product websites I visited recently (probably linked from the Fourm) that are all fancy graphics and absolutely zero information.
But maybe that's what is wanted by people who are prepared to pay £110 for a £30 pair of trainers with a special logo on them.
I now have "all you can eat data" so I'm not financially concerned with the size of stuff I download, but it is not terribly fast so I am annoyed with the time it takes. I have reluctantly come to the conclusion that the world is not going to change back to minimal download sizes just for me. Of course when I was paying £x per GB it was a different matter.
Up to recently I did my PC programming using JRuby and last year I switched to Python partly because it is more common among Arduino users - and probably more generally. To make a self-contained JRuby package meant including about 12MB of the JRuby interpreter. That seemed "better" than expecting users to download and install JRuby for themselves and 12MB of disk space only costs about a tenth of a penny.
The part of the download for my Python project that might be a duplicate is only about 500K. My assessment is that the convenience justifies that "waste". Especially if the project is a demo which should "just work"
The other issue that needs to be kept in mind is the horrible rats' nest that can emerge if the "less experienced" user has downloaded all the wrong versions of the supporting software.
I guess the prudent developer addresses himself to the least proficient of his customers.
...R
Robin2:
But maybe that's what is wanted by people who are prepared to pay £110 for a £30 pair of trainers with a special logo on them.
Could be. I often wonder if it has to do with the recent social media conventions, and the mostly mindless drivel that is communicated through it. If it can't be digested down to a flashy picture (preferably a selfie!) and less than 140 characters, people don't have the attention span for it? That seems to be the direction that far too many web sites are headed.
I have reluctantly come to the conclusion that the world is not going to change back to minimal download sizes just for me.
Pity, isn't it?
I'm out in the middle of nowhere, and there simply isn't an "all you can eat" plan available to me. Well, actually there is: a dial-up modem, but I don't know how well that would work since the lines are so noisy here it's hard to hold a voice conversation (I'm literally at the end of the line: the telephone land lines go one more pole to my neighbor and end, and the power lines go one more pole to the farm across the street and end. There are no other utilities. My only options are cellular or satellite.)
I guess the prudent developer addresses himself to the least proficient of his customers.
That's a good philosophy. Like I said, I wasn't accusing you of being complicit in the "great global bandwidth wasting conspiracy." I was just going off on a rant...
ShapeShifter:
Pity, isn't it?
I am genuinely convinced that people were every bit as happy in 1615 (or 1415) as they are today. I don't believe that what we call progress has improved human happiness.
But, hey, computers are here and I like programming.
...R
Robin2:
I don't believe that what we call progress has improved human happiness.
I agree! The "progress" since then has simplified the back-breaking work they did back then, and allowed more free time -- which we have since filled with lots of other things to do. We're still doing pretty much the same amount of work as back then, we're just doing more of it faster. We may be more productive, more comfortable, and have more "things" but I don't know that we're happier.
By the way... what ever happened to the original topic?
ShapeShifter:
By the way... what ever happened to the original topic?
I think Reply #2 indicated that the OP had solved his problem.
...R