Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I found a few online python interpreters, and I could test some code on some of them, but they are all running on Linux. Is there an online python interpreter that runs on windows or mac? Or is there some other way one could easily* test some python code on other platforms?
*Without having to buy and setup each OS I want to test.
Every tester that I'm aware of tests against actual installations or on virtual machines.
Virtual Box is one virtual machine that I've had a lot of success with on Ubuntu Linux for other distributions of Linux and my machine licensed Windows copy.
The os documentation describes the cross-compatibility of many of its functions, if you're using that a lot.
One possibility is to set up and use IPython Notebook on Windows Azure.
From linked article:
.. This VM is a complete operating system in the cloud and will be used to run the IPython Notebook ..
You can then access that VM using remote desktop:
"How to log on to the virtual machine after you create it"
If you are into writing unit tests, then travis-ci may be of interest. And it claims support Python on OS/X: "The OS X Build Environment"
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I was on freelancer website and I found this work proposal:
Project Description
Hello
We need experience developer in python.
Only bit that person who has a experience in python and Linux.
I want to execute python code in Booting time before execute Operating
System Desktop.
I know that unless I candidate, I won't have any detail about the project, but anyway it seems odd to me.
From my understanding python is interpreted, which means that it needs a virtual environment, and that's what makes it platform independent. Therefore how can a python script (which doesn't convert 1:1 to machine instructions) run before the operative system? Since I know little about what's going on at boot time (I guess some pre-defined instructions laying in the motherboard ROM are executed, then the bootloader loads in the RAM the OS, and the program counter holds the address for the entry point of the OS itself, but I am just supposing) I ask you whether such a thing could be possible.
Linux, being a UNIX type OS, has the concept of runlevels. Each runlevel has a certain number of services stopped or started, giving the user control over the behavior of the machine. As far as I know for Linux, seven runlevels exist, numbered from zero to six. The "Operating System Desktop" becomes available at run level 5. At boot time the system will pass through several other runlevels before getting to 5. At level 3 the system will be have Multi-User Mode with Networking, and this would be a good level to run what ever python script you need. Maybe check into configuring Linux init scripts.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I need to use streamparse on a CentOS machine that does not have internet access, meaning I cannot use pip. The only net-enabled services I can use are scp and ssh. My plan is to get streamparse on my local machine (Ubuntu) and then scp the streamparse files to the CentOS machine and manually install from there.
Any ideas on how to do this?
edit:
since this is "on hold as off-topic," I'll explain why it just might be considered "on topic" by addressing the 4 "on topic" bullet points from the community help page (https://stackoverflow.com/help/on-topic).
a specific programming problem: installation is a kind of programming problem, especially when you have to write (program, verb) shell scripts (program, noun) to accomplish the installation of software that leads to more programming.
a software algorithm: I am looking for a sequence of steps (aka an algorithm) to install something within specified technical constraints.
software tools commonly used by programmers: the thing I am trying to
install is a software tool. It is called streamparse. It is used by programmers.
a practical, answerable problem that is unique to software development: I was not asking this question for theoretical reasons--hence it is practical, and I believe installing things by getting around firewalls is unique to software development. I'll concede that this could be viewed not as "software development" but rather "devops" but those two things are merging so throw me a bone here.
Once you have the lib files on the CentOS box you can use pip to install by passing the -e (editable) flag:
$ pip install -e path/to/SomeProject
Here's a link to pipy's #editable-installs section
Thanks, #dougdragon. I also got pointed to the solution below. I'll leave yours as the accepted answer since you got it first.
$ wget https://pypi.python.org/packages/8d/f8/9ccde77a90a30ef491bee431f157aee38dbd93b5f3c7545779a0acee71db/streamparse-3.0.1.tar.gz
$ tar -zxvf streamparse-3.0.1.tar.gz
$ python streamparse-3.0.1/setup.py develop
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a machine that has Python 2.4, I am unable to upgrade it to a newer edition.
Also, I need to use scapy on this machine (windows)
I have searched for a scapy version for python version less than 2.4 but only found it for UNIX.
Can anyone help me find a scapy version / port to windows?
thanks
According to the Scapy Download and Installation Documentation, Scapy v1.x is your only option if you are running Python 2.4.
To install Scapy v1.x follow the instructions here. The documentation does state that Scapy has been designed for unix-like systems, but it does support Windows.
According to the official site, scapy is designed with linux in mind. Everything you should need is here. But, it looks like some of the utilities that scapy depends on do not support anything older than 2.5.
Can you use py2exe to bundle a different python interpreter with your app? Since you have to stick the app on the machine anyway, why not just give them a single "executable" with a different version of python compiled in.
You could use NSIS to install the thing, along with the appropriate dependencies. I.E. libpcap and friends for your version of python and scapy.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to organize my Scala packages and love how Python solves this issue with pip.
Can you recommend a similar tool for the management of Scala packages?
EDIT:
I am looking for an easy installation of new packages with all it's dependencies like
>>> pip install <a_package> # installs a_package with all dependencies.
The most directly similar is probably Scala Build Tool. Specifically, Library Dependencies. The Java ecosystem includes many libraries and build tools, Scala is built on Java. So you gain the ability to leverage things like -
Maven
Gradle
Scala Build Tool
Further, because everything is run inside a virtual machine; there is no "system" level install. You can start with your CLASSPATH and for more investigate class loading.
#!/bin/sh
# From http://www.scalaclass.com/node/10 - CLASSPATH
L=`dirname $0`/../lib
cp=`echo $L/*.jar|sed 's/ /:/g'`
exec scala -classpath "$cp" "$0" "$#"
!#
import com.my.Goodness
val goodness = new Goodness
world.hello
Pythonistas install system wide packages which are then used by all of the python projects. This lead to a bunch of problems which virtualenv tries to solve. Scala guys and in general Java people have per-project definition which is written for dependency management tool -- either mvn (xml), sbt (scala), gradle (groovy), etc.
Most of these tools have system-wide cache, so usually it downloads some version of dependency only once, then puts it in a particular place on your disk. When you need to run/assemble your java or scala program it constructs so called CLASSPATH variable which is consists of patches to required libraries. Then CLASSPATH variable (aka PYTHONPATH in python world) is used by runtime environment to lookup required parts. Again, CLASSPATH varies a lot from project to project, whereas PYTHONPATH is quite constant. I do believe there are might be tools that do the very same job pip does, but it isn't accepted way in JVM world.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
The latest matplotlib download page only shows OS X 10.3 download options for mac. Wikipedia claims OS X 10.3 is Power PC only. It seems strange to me that there is no option for downloading matplotlib for Intel based macs. Is this correct?
Matplotlib installation is a tricky beast and althought I have it installed in my python2.6 environment I cannot replicated that success (yet) under a new python2.7 (using virtualenv). So Far:
using the "10.3" dmg as suggested above appeared to install properly but throws an unknown architecture error when trying to plot.
using easy_install fails for me on an unknow architechure error during the freetype2 part of the install.
Downloading the tarball and compiling from source throws the same error. I will eventually tweek the config settings to get MY install to work but I'm not sure that that will help anyone else (sorry Dejas).
Freetype2 and libpng are common culprits for install problems. You could try to google your way through others efforts. Having installed it on a number of osx systems, tarball source install seems to be the most reliable route. If you are not up on what easy_install is (from your question) then you might want to seriously consider one of the Enthougth Python installs.
Update: One machine allowed the source and/or easy_install. I finally just rsync'ed my way to a working condition on my second machine.
Have you tried: easy_install matplotlib
Ok, found an Intel mac. Seems to work. No complaints from the installer at least.