I know about Binwalk, it can run on Linux OS only. I am looking for Python
script that can run on Windows too.
Thank you.
- Original Message -
From: Adnan Sadzak
Sent: 04/09/14 11:37 PM
To: trewio
Subject: Re: Unpacking U-Boot image file
Oh then see Craig's page [0]. You can find in deep
http://ssdeep.sourceforge.net/usage.html
the installation described in aboved document is for Linux only.
Well, I need experiment and see errors.
Regards,
> - Original Message -
> From: Mark H Harris
> Sent: 03/22/14 05:32 AM
> To: python-list@python.org
> Subject: Re: Installing ssdeep
Portable Python 2.7 for Windows, the Python application have dependency on
ssdeep-2.10, which is a binary exe.
The ssdeep (libfuzzy) installation example was shown for Linux platform only:
a) libfuzzy can be installed via apt-get:
$ sudo apt-get install libfuzzy2
b) to install libfuzzy
Portable Python 2.7 for Windows, the Python application have dependency on
ssdeep-2.10, which is a binary exe.
The ssdeep (libfuzzy) installation example was shown for Linux platform only:
a) libfuzzy can be installed via apt-get:
$ sudo apt-get install libfuzzy2
b) to install libfuzzy
alled using pip.
- Original Message -
From: Peter Mawhorter
Sent: 03/17/14 11:07 PM
To: laguna-mc
Subject: Re: Installing binwalk on Portable Python
On Mon, Mar 17, 2014 at 1:58 PM, wrote: > I tried: pip
install "E:\Portable Python > 2.7.5.1\binwalk-1.3.0\src\setup.py" >
I tried: pip install "E:\Portable Python 2.7.5.1\binwalk-1.3.0\src\setup.py"
Error:
E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 22:53:51
Exception:
Traceback (most recent call last):
File "E:\Portable Python 2.7.5.1\App\lib\site-packages\pip\basecommand.py",
line 122, in main
st
Portable Python 2.7 for Win32 and installed on USB flash drive. I want install
Binwalk tool, it have a few depencencies, I installed it first (numpy,
matplotlib, libmagic, python-magic)
Then I tried to install binwalk from locally stored source archive file, I
tried two ways:
pip install E:\Por
I'm trying to install matplotlib from locally stored source archive file
(Portable Python 2.7 on Windows):
pip install E:\matplotlib-1.3.1.win32-py2.7.exe
Got error, below is log:
E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 03:10:16
Exception:
Traceback (most recent call last):
It'slike a chain, eachnew modulepulls afew othermodules.I can postpone
get-pip.py onthe very last stage, now I want to install python-magic, libmagic,
libfuzzy, pyqtgraph. How to do this?
- Original Message -
From: Mark Lawrence
Sent: 03/16/14 05:06 PM
To: python-list@python.org
Subject:
I am new in Python, I have Portable Python 2.7.5.1 installed on Windows 7.
I want to install additional libraries:
python-magic
libmagic
libfuzzy
pyqtgraph
I downloaded package, saved on hard drive, unzipped, find setup.py and tried
install via Command Prompt:
Python-Portable.exe setup.py inst
On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote:
> In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>,
>
> cilantr...@gmail.com wrote:
>
>
>
> > I'm attempting to set up an extremely simple server that receives a string,
>
> > and returns a string. However, I
Hello,
I have a C++ application, I used SWIG to call the python code. I pass
myModule.myObject object to the method of python code and what to
store it in JSON format.
The problem is when I do:
o = myModule.myObject()
inside python, the o object has __dict__ property, but if I take the
passed
Currently trying to pick up my ava http://en.gravatar.com/christinasanders21
for StackOverflow, which site I found very good for my questions,
didn't I?
Yes, and there are problem when adding a picture. Web admins should be
careful.
Can anyone explain me my problem ? :
Christina
--
http:/
Common guys, help me, sweet heart to finish my job and go with my
friend in the bar. Today we have a blues night :) Love it!
Christina
--
http://mail.python.org/mailman/listinfo/python-list
Hi people,
I've created very nice post here:
http://stackoverflow.com/questions/5274690/how-to-get-python-class-serializable-and-well-parsed-by-json-custom-encoder-deco
Yes, there are solutions over the internet, but nothing works for my
custom types.
If you could answer, please read it.
Be happ
In short, the answer is to use PyObject dictionary ?
--
http://mail.python.org/mailman/listinfo/python-list
Stephan, you are lead developer over there :))) It's marketing,
however very nice solution.. I will propose my bosses to rediscover
their world assumptions. You know, they are still using SVN, they are
very loosely coupled to the past. I have to wash their brains...
Meantime still battling with Py
Stefan, great suggestion !!
I will definitely bookmark this page and consider later. But my
project dictate me use SWIG. I'm almost near the happy subend. Very
curios on question I asked in previous message.
Dear all, I love you too much :)
Arthur
--
http://mail.python.org/mailman/listinfo/pyth
Ok people,
I do:
for (Py_ssize_t i = 0; i< PyList_Size(py_list); ++i) {
PuObject* obj = PyList_GetItem(py_list, i);
if (obj != NULL) {
// howto get obj properties of different types
(map, list, string, int, bool) ?
}
}
Very clear code. The question i
Hi all,
Ok, I managed to work with c++ data types in python and can store
serialize c++ objects to store in json.
Now the task is backward. I wrote a c++ code to get the list of
objects using again python interface. The list of objects is returned.
PyList.
But I can't see how to convert PyObjec
Great!
The solution is to use self.benchmarks = list(object.benchmarks).
Now I'm battling with time_t type. C++ time_t converts to python int
but it causes memore leaks due to destructor absence. I'm trying to
figure it out. If anyone know, please share your thoughts.
Be happy :)
Arthur
--
htt
Hi people,
I've used SWIG module to embed python inside c++ app. I pass a list of
objects (with lots of different properties of types string, float,
custom types like URL, Software and finally of list of strings).
Now I'm in python. URL and Software has str() method that converts
their value to s
Still need the answer to the question: " howto embed given python file
(which contains python class and its members) into the c++
application ? "
I have to pass the arguments from c++ to python and back so I need to
do conversions. They are ok. Fails PyImport_Import(my_module) call
saying "No modu
Using simple words: I have mymodule.py file and c++ application.
mymodule.py file contains two classes A and B. A class is a custom data
type. B class contains functions putJSON, getJSON which I want to run from
within C++ code. These functions are members of class B. So I need to import
mymodule.p
The problem is "how to write python module under SWIG for C++
application"
Nor SWIG documentation neither embeding python documentation does not
answer to this.
If you can help, please, share your idea.
Arthur
--
http://mail.python.org/mailman/listinfo/python-list
hon?
>
> ~/santa
>
> [1] http://docs.python.org/extending/
>
> On Fri, Mar 4, 2011 at 8:27 AM, Arthur Mc Coy <1984docmc...@gmail.com>wrote:
>
>> Hi all,
>>
>>
>> I have a C++ application. I have a .cpp file which is not a main
>> program, but a clas
Hi all,
I have a C++ application. I have a .cpp file which is not a main
program, but a class where I want to call python script
(doSomething.py file).
I'm using embed python like in a tutorial here:
http://www.codeproject.com/KB/cpp/embedpython_1.aspx
But the tutorial is bad. It does not expla
Good day people,
So I have python file which can handle json data to put and get back
it from a file say objects.json. Great.
Now I want to run this code from within C++ application. I used swig
to wrap the C++ class, which wants to call python code. It works fine,
because when I import native p
> Are you saying python cares whether I express a number as 0.001 or
> scaled by 10^5 to read 100? If this is the case, I'm still stuck. I
> need the full range of eigenvalues from 1 to 1E-300, so the entire
> range could be scaled by 1E300 but I would still need better precision
> than 1E19
If py
copy nested information. I will see later. Now, when the
testing environment is ready, I go for real world application.
Thank you!
Kostia
On Mar 2, 4:24 pm, Peter Otten <__pete...@web.de> wrote:
> Arthur Mc Coy wrote:
> > Hi all,
>
> > I'm trying an example (in attach
On Mar 2, 5:26 pm, Ben123 wrote:
> On Mar 2, 9:04 am, Arthur Mc Coy <1984docmc...@gmail.com> wrote:
>
> > What do you mean by "arbitrary precision" ? Each method of calculating
> > of something has its own precision...
>
> If you are unfamiliar with arbi
What do you mean by "arbitrary precision" ? Each method of calculating
of something has its own precision...
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm trying an example (in attached file, I mean the bottom of this
message).
First, I create a list of 3 objects. Then I do:
PutJSONObjects(objects)
objects = GetJSONObjects()
PutJSONObjects(objects, "objects2.json")
1) PutJSONObjects(objects) method creates objects.json file (by
de
Hi!
Possible! With Pywin32.
I see two ways:
- add a "toolBar" ; see the exemple for Internet-Explorer (it run for
both, IE & explorer)
- add an entry in the context menu (right click)
@-salutations
--
Michel Claveau
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listi
Re
‘builtin’ is not a class.
I think "object" ; not only "class"
And "builtin" is an object.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Il se trouve que Chris Rebert a formulé :
Python has functions, which are not associated
with a class
functions are methods of builtin...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Perhaps, if you copy DLL in others strategic places, it's better...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You want 2*(3+4) to return (7,7)?
For have that: 2*(3+4,)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Windows, you can:
- call Python's functions via Active-Scripting
- call a Python COM server (functions or properties)
For that, use Pywin32. And, in all cases, call functions can use
parameters.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/lis
I'm looking for a library which can do mathematical stuff like
solving equations. Or calculation the nulls of a function and so on.
Does anyone know one?
Thanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 12, 5:34 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote:
> On Jan 12, 9:41 am, mc <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi!
> > I'm trying to compile on my Macbook with OS X 10.5. I have all updates
> > and Xcode 3.0 installed.
>
&g
Hi!
I'm trying to compile on my Macbook with OS X 10.5. I have all updates
and Xcode 3.0 installed.
I checked python out with: svn checkout
http://svn.python.org/projects/python/branches/py3k
After that I did "./configure" in the created "py3k" dir. Everything
went fine. But make fails with the
Hi,
I am new to python,
Can someone help me with writing event handler for a dropdown list in
python.
i have one function to create dropdown list in a file
def dropdown_options(self,title,options,name,value = None):
ret = "\n"+ title.title() + "
\n"
if (options != []):
Hi,
I am new to python,
Can someone help me with writing event handler for a dropdown list in
python.
i have one function to create dropdown list in a file
def dropdown_options(self,title,options,name,value = None):
ret = "\n"+ title.title() + "
\n"
if (options != []):
Hi!
> 1.5.1
Sure? 1.5.1?
For Python 2.5, look ActiveState. Their distrib have silent option.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I agree ; on windows mmap use Memory-Mapped-file, who use virtual
memory. And shared memory use physical memory.
The difference is OS an not Python
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re!
Sorry! The good exemple is :
ie = win32com.client.Dispatch("InternetExplorer.Application")
window=ie.Document.parentWindow
print window.name
another :
window.alert("Aalleerrtt")
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> ie = win32com.client.Dispatch("InternetExplorer.Application")
> doc=ie.Document.parentWindow.document
Use bridge variable :
window=ie.Document.parentWindow
And work with :
print window.Document.body.name
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/li
Hi!
I know "how to", but only with IE on windows.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Mégalo!
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
For windows, I had a soft for this (reduce_memory.exe). Sorry, it's not
write with Python.
If you want, I will give a URL for download it.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Classic
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> No. The IDIspatch-interface explicitely lists what methods with what
> arguments it has. So code completion is possible there as well.
Sorry, I think different.
In VS, assists use TLB for find methods & arguments.
Dynamic-server can't have TLB.
Other way for verify : try a Makepy on a COM
Hi!
> Why might one choose to use ActivePython instead of using the free CPython?
quiet installation?
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
>> non-Ascii characters in identifiers
>
> And this change may be already in a Python 2.x before P3K.
Good new! (if it's True...)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try with change all '\r\n' by '\n'
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Thank.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Look Candygram : http://candygram.sourceforge.net/
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Which context?
I know to do interact Python <=> Jscript, with Internet-Explorer+COM ;
but I don't know with others environment.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Thank you.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
e wheel movements
to be made.
* menuwrapper.Menu.GetProperties() now returns a dict like all other
GetProperties() methods. This dict for now only has one key
'MenuItems' which contains the list of menuitems (which had been
the previous return value).
Thanks
Mark
----
Hi!
Brutal, not exact answer, but:
a = range(5)
b = range(3)
print zip(a+[None]*(len(b)-len(a)),b+[None]*(len(a)-len(b)))
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Salut!
Heureusement qu'il y a qq français pour faire un peu de ménage...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> wrote:
> But I think in some situations Ruby allows to omit them, solving some
> of the "impossibile" problems shown in this thread. This makes Ruby a
> bit better than Python to create application-specific mini languages,
> that are quite useful in some situations.
Yes. Howev
Srikanth <[EMAIL PROTECTED]> wrote:
> All I need is a good IDE, I can't find something like Eclipse (JDT).
> Eclipse has a Python IDE plug-in but it's not that great.
Have you tried the 'full' plugin (you have to pay about 30 $ IIRC or
something like that)?
My favourite Python editor is TextMate
Thanks to all who responded. It appears that there may be a solution
as follows:
use jythonc to turn Python program into Java bytecode
use Microsoft's jbimp to turn Java bytecode into .NET DLL
It sounds roundabout, but I am investigating.
--
http://mail.python.org/mailman/listinfo/python-list
Is there an easy way to compile a Python class (or set of classes) into
a .DLL that a C# program can call? Or otherwise to use an existing
library of Python classes from a C# program as seamlessly as possible?
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
+1
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonsoir !
> As-tu des connaissances en C++ ? avec Visual C++ ?
Ben, non, je ne pratique pas ces machins.
Par contre, je pense qu'il existe une autre démarche, qui consiste à
générer, à la volée, en Python, des sortes d'applets java/javascript.
Avantages : rien à installer ; milti-navigateurs
In
Bonjour !
Pour IE, il y a des exemples de plugins, fournis avec PyWin32.
Pour FF (comme pour Opera), je ne sais pas.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
http://candygram.sourceforge.net/
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
" are your friend.
See, also:
filepath = '"%HOMEPATH%\\LocalSettings\\Application
Data\\Microsoft\\Outlook\\*"'
and %USERPROFILE% %APPDATA% etc.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
http://monip.org/
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Look Candygram (http://candygram.sourceforge.net/)
Candygram has features who will fun for you (like
inter-threads-comunication).
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You can expand VBA/Excel with Python, with Pywin32 for to make a
dynamic COM server.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> (ECMAscript), then, well I haven't seen any progress there.
1) in IE-7, the last release (of JScript) has few evolutions (more
important, a new garbage collector)
2) in Windows, with Active-Scripting, it's possible to integrate
JScript in Python, call JScript's functions from Python's co
Hi!
in afternoon: http://calcul.math.cnrs.fr/article.php3?id_article=150
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On win-XP (french), when I read subprocess (stdout), I must use
differents decoding (cp1252,cp850,cp437, or no decoding), depending of
the "launch mode" of the same Python's script:
- from command-line
- from start+run
- from icon
- by Python-COM-server
- etc.
(.py & .pyw can also
Hi!
Sorry, I don't understand well english.
But, try to rename your script, from .py to .pyw (sample : titi.py ==>
titi.pyw).
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I use this little batch:
@echo off
cd \dev\python
viewarg.py %*
I copy/paste the batch-file on the desktop, like icon.
Then, from Win-explorer, drag_and_drop & copy_and_paste run OK.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
It is the normal behavior of COM.
Note that, Python being dynamic, you can modify Python script, OF THE
INTERIOR, during execution.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Ok.
Downloaded.
Thanks
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
dotNET can use (call) COM-servers
In pywin, there are exemple of COM-server, in Python, who can run
(on-the-fly) Python code.
This give a way for run Python's scripts from dotNET, Excel, Word,
Internet-Explorer (HTA), C#, etc. I have try all these things, with
success.
--
@-salutations
Hi again!
Thank you, for all answers & contribs.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Thanks.
The essential, is that peoples (& you) can understand. Bbut, perso, I
don't understand the message translated (much unknowed words...)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Thank you, Jean-Marc, for translation. I am not capable of this work.
:-)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
Comme tu es français, tu me coprendras.
Alors :
- windev est fermé, et protégé par des dongles. Résultat : dongle
perdu, en panne, ou volé, il faut racheter une licence (c'est arrivé à
un ami)
- le langage de windev est beaucoup moins évolué que Python. Et,
quand je dis beaucoup,
volcano <[EMAIL PROTECTED]> wrote:
> A trivial question - I have a working Python script that I have to
> invoke from C++ code. No fancy stuff - just run the whole script with
> its parameters. No callbacks, no signalling - nada, just
> stupid,primitive, straightforward call.
In a unix based env
Thanks!
But:
- and Python 2.4.x?
- I have Python 2.4 and then "embbed Python 2.3 of OOo" ; how install
some things in this last Python? I dream to call Pywin32 from OOo...
- when I drive OOo from Python, via COM/Ole-automation, many things
not run (getStruct...); no solution?
--
@-salut
Neil Cerutti <[EMAIL PROTECTED]> wrote:
> Those of you experiencing a temporary obsession with this topic
> are encouraged to study The Great Language Shootout, until the
> obsession goes away. ;)
I think that everybody knows GLS. However, when I have results different
from what I expected, I try
Neil Cerutti <[EMAIL PROTECTED]> wrote:
> Those of you experiencing a temporary obsession with this topic
> are encouraged to study The Great Language Shootout, until the
> obsession goes away. ;)
I think that everybody knows GLS. However, when I have results different
from what I expected, I try
Ray <[EMAIL PROTECTED]> wrote:
> Great to know that my model of how the world works is still correct!
> (at least in relation to Python and C++!) :)
So please explain my results. I loop the same number of times.
--
blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi,
site: http://
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote:
> I have to admit to a stupid mistake, for which I feel quite ashamed - I
> got the loop-size wrong in the Python code. So all Python results
> posted by me were off by a factor of 10 :-(
> I feel quite bad about that!
Well, this makes *my* results
Ray <[EMAIL PROTECTED]> wrote:
> Yeah, my guess would be either he used the Debug configuration or he
> actually created a Managed executable instead of a pure Win32
> application. Sigh, now I can't wait to get home and try it out :)
Can be. But I suppose a Managed should not get *that* slow.
Ir
GHUM <[EMAIL PROTECTED]> wrote:
> Proofed @ EuroPython
> 2006 in CERN, near the LHC Beta, in the same room many Nobel laurates
> gave their presentations before.
Have you some link? I suppose it's kind of a joke they did or something
like that...
--
blog: http://www.akropolix.net/rik0/blogs |
Ray <[EMAIL PROTECTED]> wrote:
> Certainly--I was not comparing 100 against 1. Referring to the
> OP's statement: "However, while the python code gave the result almost
> instantly, the C++ code took several seconds to run!" 30ms sounds like
> a definite improvement over several seconds!
<[EMAIL PROTECTED]> wrote:
> That's to say,
> python is still much faster?
Yes it is. But of course you can't sat that "Python is faster than C++".
We found that the code to do this, written in the most natural way, is a
lot faster in Python. However, if you optimze the code, C++ gets almost
as f
Ray <[EMAIL PROTECTED]> wrote:
> Not really, see my test, in my other post in the same thread. I'm using
> VC++ Express 2005. If we're comparing with Python 2.5 I think it's just
> fair that for C++ we're using the latest as well.
In your test, you are looping 1 times, we looped 100.
In P
Ray <[EMAIL PROTECTED]> wrote:
> I'm using VC++ Express, I didn't care to tweak the optimizations, I
> merely chose the "Release" configuration for the executable. It's
> blazing fast, taking only 30+ ms each run.
Of course it is faster. We are looping 100 times, you just 1.
--
blog: h
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote:
> And the results of IronPython (1.0rc2) are just in as well:
I can't test this one.
>
> And for Python 2.5:
> [EMAIL PROTECTED] ~/My Documents/Python
> $ /cygdrive/c/Python25/python.exe SpeedTest.py
> Begin Test
> Number of unique string objects:
1 - 100 of 116 matches
Mail list logo