RE Version of OpenSSl ?

2025-02-09 Thread Vincent Vande Vyvre via Python-list
opt/lib:$LD_LIBRARY_PATH ------ And rerun the compilation of 3.12.9 without problem with openssl. (*) https://openssl-library.org/source/old/1.1.1/index.html Vincent. -- https://mail.python.org/mailman/listinfo/python-list

RE Version of OpenSSl ?

2025-02-09 Thread Vincent Vande Vyvre via Python-list
> HI Vincent. > > You need the sources of the OpenSSL library, not the compiled library. > On Ubuntu, the packages with sources are typically named xxx-dev where > xxx is the package that provides the library. I don't have a Ubuntu > currently, but try looking for someth

Version of OpenSSl ?

2025-02-09 Thread Vincent Vande Vyvre via Python-list
) --- What can I do for that ? Vincent. -- https://mail.python.org/mailman/listinfo/python-list

Re: Question - problem downloading Python

2021-01-14 Thread vincent . vandevyvre
it does not fix it, that is how I >got your email. >How can I get the latest Python version (3.9.1), instead of what I'm >getting (22.7.17)? >Thank you for your time. Please, copy-paste all the content of your terminal (I presume this is wht you name cmd.exe). Vincent --

Re: Pickling issue.

2020-12-23 Thread vincent . vandevyvre
On 22/12/20 01:57, Bob Gailer wrote: > > > On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre > wrote: > > Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are correctly > fixe

Pickling issue.

2020-12-21 Thread Vincent Vande Vyvre
Hi, I've an object that I want to serialise with pickle. When I reload the object the attributes of this object are correctly fixed except one of these. This attribute (value) define a simple string. Example: - tag =  XmpTag('Xmp.dc.format', 'image/

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-20 Thread Vincent Vande Vyvre
Le 20/08/20 à 09:07, Robin Becker a écrit : > . >>> so obviously I need to install some version of boost libs or >>> Boost.Python etc etc. Gave up :( >>> -luddite-ly yrs- >>> Robin Becker >>> >> The aur repository, no ? >> >&

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-19 Thread Vincent Vande Vyvre
Le 19/08/20 à 10:15, Robin Becker a écrit : > On 18/08/2020 20:05, Vincent Vande Vyvre wrote: > . >>> >> Hi, >> >> Two solutions: >> 1. Install exiv2-dev and py3exiv2 with pip >> $ sudo apt-get install libexiv2-dev >> $

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-18 Thread Vincent Vande Vyvre
incent-vandevyvre/vvv     $ sudo apt-get update     $ sudo apt-get install python3-exiv2 Don't change your old code for pyexiv2, the names of the modules are unchanged, your old code should work as it. Off course old strings are now unicode. Vincent (AKA VinsS) -- https://mail.python.org/mailman/listinfo/python-list

Re: Fake news Detect

2020-07-18 Thread Vincent Davis
Data Sceptic has a couple podcast and some of the code is open source. https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news Thanks Vincent Davis 720-301-3003 *Want to get a hold of me?* *SMS: awesome.phone: ok...* *email: bad!* On Fri, Jul 17, 2020 at 11:39 PM Mike

How to match scipy.spatial.distance results back to pandas df

2020-07-16 Thread Vincent Davis
, 'euclidean') b = a[a < .0001] b array([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05, 2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05, 7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05, 4.50111097e-05, 4.97393205e-05, 6.7896980

Re: Convert and analyze image data in a spreadsheet.

2020-06-14 Thread Vincent Davis
Dennis, Thanks for your ideas. The researcher I am working with just told me the data is wrong and needs to send me new data and there are other problems with exactly what their research questions is. So this goes nowhere for now. Thanks Vincent Davis 720-301-3003 *Want to get a hold of me

Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
it in that color format? I think yes. 3. How can I visualize this data as a 6x6 color image and visualize each color on a gray scale. 4. General hints or link of how to proceed would be helpful. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: For Loop Invariants

2020-04-20 Thread Vincent Vande Vyvre
ot; > seek = {'a','b','c'} > count = sum(1 for a in chars if a in seek) > > So you haven't really changed any semantics - and it seems that this > is far better than fiddling with the for loop syntax. You can use boolean as integer. >>> ch

Won't Uninstall

2019-09-20 Thread Fred Vincent
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix this and fully uninstall python? Sent from

Re: Python 3.73 cannot install py3exiv2

2019-05-02 Thread Vincent Vande Vyvre
xecutable for Windows. But, recently an user send me how it has successfully compiled py3exiv2 for Windows. Hello Vincent,  I’ve run through the trouble of building py3exiv2 on Windows and was successful in doing so, therefore I’d like to present you the steps I’ve taken to get there, so that

Re: How to catch a usefull error message ?

2019-04-25 Thread Vincent Vande Vyvre
Le 25/04/19 à 08:25, Chris Angelico a écrit : On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre wrote: Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : Why a SystemError ? The SystemError means that you&#x

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) {   PyObject

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 21:48, MRAB a écrit : On 2019-04-23 19:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name.   char

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!PyArg_ParseTuple(args, "s&quo

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
Le 23/04/19 à 19:27, MRAB a écrit : On 2019-04-23 10:56, Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name.       char *fname;       if (!PyArg_ParseTuple(args, "s", &fname))       return NULL; So, if I instanc

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name. char *fname; if (!PyArg_ParseTuple(args, "s", &fname)) return N

How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
nstanciation of this object into a try-except bloc but how to read the error message ? Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: pip unable to find an extension of a lib.

2019-04-12 Thread Vincent Vande Vyvre
ered as suitable, but I think the above is likely. Paul Exact, in mode verbose it enumerate all versions of pyqt-sip and all are declared "not compatible with this Python" So I'll create a 3.7.3 venv without the "--with-pydebug" Thanks, Vincent. -- https://mail.python.org/mailman/listinfo/python-list

Re: pip unable to find an extension of a lib.

2019-04-12 Thread Vincent Vande Vyvre
Le 12/04/19 à 07:40, dieter a écrit : Vincent Vande Vyvre writes: ... Using Python-3.7.2 (compiled with --with-pydebug) in a venv, I've encountered this problem: $ pip install --upgrade pip setuptools wheel Successfully installed setuptools-41.0.0 wheel-0

pip unable to find an extension of a lib.

2019-04-11 Thread Vincent Vande Vyvre
th this problem. Thanks for all advices Vincent. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to force the path of a lib ?

2019-01-24 Thread Vincent Vande Vyvre
Le 23/01/19 à 13:11, Neal Becker a écrit : dieter wrote: Vincent Vande Vyvre writes: . To load external C/C++ shared objects, the dynamic lickage loader (ldd) is used. "ldd" does not look at Pthon's "sys.path". Unless configured differently, it looks at stand

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
/pyexiv2/libexiv2python.cpython-37m-x86_64-linux-gnu.so # and the latest version of libexiv2 ~/CPython/py370_venv/lib/libexiv2.so.0.27.0 All theses path are in the sys.path Now I test my binding: >>> import pyexiv2 Traceback (most recent call last):   File "", line 1, in   File "/hom

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
;", line 1, in   File "/home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-x86_64.egg/pyexiv2/__init__.py", line 60, in     import libexiv2python ImportError: /home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-

Re: How to display video files (mkv, wav, mp4 etc) within a TKinter widget?

2019-01-02 Thread Vincent Vande Vyvre
this? TIA With Qt it's very easy to implement a video player. See this example: https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui/videoplayer.py It is implemented into this window: https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head

Re: clusters of numbers

2018-12-15 Thread Vincent Davis
Why not start with a histogram. Vincent On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote: > hey guys, > > I have a hobby project that sorts my email automatically for me & I want > to improve it. There's data science and statistical info that I'm > missing, &

Fishing from PyPI ?

2018-08-06 Thread Vincent Vande Vyvre
The Account Settings <https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265&id=1763135c31&e=8824682d0f> is : https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265&id=1763135c31&e=8824682d0f Phishing ? yes, no ?

Re: I'm getting a spamassassin party here

2018-06-26 Thread Vincent Vande Vyvre
ng the message ] Same day, same hour but arrived today From: "Steven D'Aprano" From: Steven D'Aprano On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: [ following the same message ] -------

Re: Is it possible to call a class but without a new instance created?

2018-06-18 Thread Vincent Vande Vyvre
classic example : class Foo:     _instance = None     def __new__(cls, *args, **kwargs):     if cls._instance is None:     cls._instance = super(Foo, cls).__new__(cls, *args, **kwargs)     return cls._instance     def __init__(self, ...):         ... Vincent Send at Mon, 18 Jun 2018 09:17:21 +0200 -- https://mail.python.org/mailman/listinfo/python-list

Obsolete method in the html module

2018-06-09 Thread Vincent Vande Vyvre
scape() instead.',   DeprecationWarning, stacklevel=2)     return unescape(s) Vincent (send at 08:07 GMT) -- https://mail.python.org/mailman/listinfo/python-list

Re: Uploading on PyPI fail (solved)

2018-05-15 Thread Vincent Vande Vyvre
Le 15/05/18 à 12:05, Vincent Vande Vyvre a écrit : Hi, Trying to upgrade a package on PyPI, I get this error: $ python3 setup.py register sdist upload ... Submitting dist/py3exiv2-0.3.0.tar.gz to https://pypi.python.org/pypi Upload failed (308): Redirect to Primary Domain error: Upload failed

Uploading on PyPI fail

2018-05-15 Thread Vincent Vande Vyvre
/ username = VinsS password = ** - Note: I've tested on test.pypi.org without problems. Thanks for all advices, Vincent (send at Tue, 15 May 2018 12:04:10 +0200) -- https://mail.python.org/mailman/listinfo/python-list

Re: lire du son en format natif avec python

2018-03-21 Thread Vincent Vande Vyvre
à l'installer depuis pyzo. Si quelqu'un peut m'aider, merci à lui d'avance. Hi, This is an English mailing list. If you prefer talk in French, I recommend you this forum: https://www.developpez.net/forums/f96/autres-langages/python-zope/ Best Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there are good DRY fix for this painful design pattern?

2018-02-26 Thread Vincent Vande Vyvre
s not None:     setattr(self, key, value)     def spam(self, **kwargs):     self.config(kwargs) Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Package containing C sources (Posting On Python-List Prohibited)

2018-01-31 Thread Vincent Vande Vyvre
nd the Python code. Can this be done with just two packages: the C library and C wrapper and Python in one package? Hi, You can made an all-in-one package without problems. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber wrote: > On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis > declaimed the following: > > >Looking for suggestions. I have an ordered list of names these names will > >be reordered. I am looking to make a plot, graph, wi

plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
example code for this on the net an am not finding a clean example. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-26 Thread nospam . Vincent Vande Vyvre
the ONLY two places > draw_ellipse is mentioned are right there in the ellipse() function... > WHAT am I missing?? > > Thanks! > -Stumpy (aka Greg) Hi, It's not defined in Python module but in Pillow-3.5/Pillow-master/libImaging/Draw.c ... line 748 Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-26 Thread Vincent Vande Vyvre
ing?? Thanks! -Stumpy (aka Greg) Hi, It's not defined in Python module but in Pillow-3.5/Pillow-master/libImaging/Draw.c ... line 748 Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: for/ if against dict - one liner

2017-11-14 Thread Vincent Vande Vyvre
k >= 2: # do magnificent things Thank you AZ Maybe something like that: lst = [do_magnificent_thing(dct[k]) for k in dct if k >= 2] lst contains the returns of do_magnificent_thing(k) in unpredictable order. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Return str to a callback raise a segfault if used in string formating

2017-10-14 Thread Vincent Vande Vyvre
Le 14/10/17 à 15:59, Stefan Behnel a écrit : Vincent Vande Vyvre schrieb am 13.10.2017 um 13:18: Le 13/10/17 à 12:39, Paul Moore a écrit : As a specific suggestion, I assume the name of the created file is a string object constructed in the C extension code, somehow. The fact that you&#x

Re: Return str to a callback raise a segfault if used in string formating

2017-10-13 Thread Vincent Vande Vyvre
ython with: static PyMemberDef PyUnraw_members[] = {     {"out_file", T_OBJECT_EX, offsetof(PyUnraw, outfname), 0, "Path of the decoded file"},     ... Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Return str to a callback raise a segfault if used in string formating

2017-10-13 Thread Vincent Vande Vyvre
Le 13/10/17 à 09:23, Chris Angelico a écrit : On Fri, Oct 13, 2017 at 4:46 PM, Vincent Vande Vyvre wrote: Simplified code: ---%<-- ... ---%<-- If I place self.callback() at the end of the func proces

Return str to a callback raise a segfault if used in string formating

2017-10-13 Thread Vincent Vande Vyvre
allback() at the end of the func process that doesn't change anything. Regards, Vincent. -- https://mail.python.org/mailman/listinfo/python-list

The mysterious ways of Python mailing list

2017-09-29 Thread Vincent Vande Vyvre
Is it a reason why my messages appears always a long time (today 9 hours) on the list after I send it ? Send at 19:14 UTC+2 Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Textwrap doesn't honour NO-BREAK SPACE

2017-09-29 Thread Vincent Vande Vyvre
gt; text = ('Lorum ipsum dolor sit amet, consectetur adipiscing' ... ' elit ZZZ\xa0ZZZ sed do euismod tempor incididunt' ... ' ut labore et dolore magna aliqua.') >>> print(textwrap.fill(text, 59)) Lorum ipsum dolor sit amet, consectetur adipiscing elit ZZZ ZZZ sed do euismod tempor incididunt ut labore et dolore magna aliqua. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)(kdnuggets)

2017-09-15 Thread Vincent Vande Vyvre
Again an other review: http://www.kdnuggets.com/2017/08/python-overtakes-r-leader-analytics-data-science.html Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Vincent Vande Vyvre
Changed) vat.setRate(17.5) # No change will occur (new rate is the same) vat.setRate(8.5) # A change will occur (new rate is different) Isn't this a mistake? self.connect( should be: vat.connect(vat, SIGNAL("rateChanged"), rate) Again, use the new syntaxe (new but not recent) it's more clear. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: PYhton Mercator projection

2017-04-18 Thread Vincent Vande Vyvre
fail. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.5+ Arrow keys and others in the console

2017-04-16 Thread Vincent Vande Vyvre
Le 16/04/17 à 15:19, Wolfgang Maier a écrit : On 16.04.2017 10:56, Vincent Vande Vyvre wrote: Hi, I'm using Python 3.5 and 3.6 in venv and I see a strange behaviour in the interactive interpreter. The arrow keys can't be used to move the cursor into the current line of code or to r

Python 3.5+ Arrow keys and others in the console

2017-04-16 Thread Vincent Vande Vyvre
Key Python 3.6.1 (default, Apr 12 2017, 11:39:17) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> f = "lkjgh" >>> ^[[A^[[B# Up Arrow Key and Backspace Key F

Re: CPython Class variable exposed to Python is altered.

2017-04-12 Thread Vincent Vande Vyvre
Le 12/04/17 à 11:47, Peter Otten a écrit : Vincent Vande Vyvre wrote: No, no warning. For the truth, this code is copy-pasted from the doc. https://docs.python.org/3.5//extending/newtypes.html#adding-data-and-methods-to-the-basic-example But the example expects objects (the big O), not

Re: CPython Class variable exposed to Python is altered.

2017-04-12 Thread Vincent Vande Vyvre
Le 12/04/17 à 10:51, Peter Otten a écrit : Vincent Vande Vyvre wrote: Le 12/04/17 à 08:57, Vincent Vande Vyvre a écrit : Hi, Learning CPython, I've made this simple exercice, a module test which contains an object Test. The object Test has an attribute name, fixed at instanciation.

Re: CPython Class variable exposed to Python is altered.

2017-04-12 Thread Vincent Vande Vyvre
Le 12/04/17 à 08:57, Vincent Vande Vyvre a écrit : Hi, Learning CPython, I've made this simple exercice, a module test which contains an object Test. The object Test has an attribute name, fixed at instanciation. So, I try my code with a s

CPython Class variable exposed to Python is altered.

2017-04-12 Thread Vincent Vande Vyvre
alphabetical order, but not only for the attribute name, also for the reference n. Same into a console: (py352_venv) vincent@djoliba:~/CPython/py352_venv/pydcraw$ python Python 3.5.2 (default, Dec 19 2016, 11:46:33) [GCC 4.8.4] on linux Type "help", "copyright", "credit

Re: Temporary variables in list comprehensions

2017-04-06 Thread Vincent Vande Vyvre
r example: [(tmp, tmp + 1) for x in data with tmp = expensive_calculation(x)] Alas! With two passes e = [expensive_calculation(x) for x in data] final = [(x, y+1) for x, y in zip(e, e)] Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: python and pyqt4

2017-03-14 Thread Vincent Vande Vyvre
3='world' self.dlg.lineEdit_2.setText(str(area1)) self.dlg.lineEdit_3.setText(str(area2)) self.dlg.lineEdit_4.setText(str(area3)) pass but no change. distance is a string, then you have to compare it with the string "0" not the integer Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Usage of ast.

2017-02-27 Thread Vincent Vande Vyvre
Le 27/02/17 à 14:09, Chris Angelico a écrit : On Mon, Feb 27, 2017 at 11:57 PM, Vincent Vande Vyvre wrote: I've this strange error: Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license"

Usage of ast.

2017-02-27 Thread Vincent Vande Vyvre
malformed node or string: ' + repr(node)) ValueError: malformed node or string: <_ast.Call object at 0x7fcf955871d0> Is it an import question ? Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
Le 10/02/17 à 22:03, Vincent Vande Vyvre a écrit : Le 10/02/17 à 21:36, Peter Otten a écrit : Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
Le 10/02/17 à 21:36, Peter Otten a écrit : Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please somebody know something about that? Thank You in

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.path.isfile('/home/vincent/oqapy-3/trunk/__pycache__/grid.cpython-34.pyc ') False Why ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to Debug

2017-01-02 Thread Vincent Vande Vyvre
ror that I could not understand why...Thanks in Advance Try with: for i in product_name: print(i) Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 10:13, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre wrote: It seems you have shadowed your default python2 with the new one. A very bad idea. Only because /usr/local/bin is ahead of /usr/bin in PATH. That's the problem. The link /us

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 08:45, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 5:19 PM, wrote: Thanks Chris for replying, but it didn't work. The upgrade happened, but still python can't see numpy! So it seems to be a path problem. The numpy (and scipy and matplotlib) files are there, so surely in pr

Re: TemplateError

2016-11-20 Thread Vincent Vande Vyvre
ath.dirname(os.path.abspath('__files__')) PAGESDIR = os.path.join(os.path.dirname(WEBDIR), 'somewhere/templates') STATICDIR = os.path.join(os.path.dirname(WEBDIR), 'somewhere/static') ... app = Flask(__name__, template_folder=PAGESDIR, static_folder=STATICDIR) ... -- Vincent V.V. Oqapy <http://www.oqapy.eu> . python3-exiv2 <http://www.py3exiv2.tuxfamily.org/> . Qarte <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager> -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI application embedding a web browser - Options?

2016-10-19 Thread Vincent Vande Vyvre
rtable coding in Python. Thanks, Paul Hi, PyQt is a good choice to embed a web viewer in a GUI application. There's no great differences between Qt4 and Qt5. An example with PyQt4: http://bazaar.launchpad.net/~vincent-vandevyvre/oqapy/2.0/files/head:/oqapy-2.0/g9n/ The same with PyQt5

Re: PEP suggestion: Uniform way to indicate Python language version

2016-08-21 Thread Vincent Vande Vyvre
ot;help", "copyright", "credits" or "license" for more information. >>> import sys >>> assert sys.version >= (sys.version_info >= (3, 0)) Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: str()

Re: PyQt5: is the wrapper incomplete?

2016-06-16 Thread Vincent Vande Vyvre
ce is appreciated, thanks! On Debian, this is a separate package python3-pyqt5.qtserialport, I don't know for other Linux After install you can use: from PyQt5.QtSeriaPort import QSerialPort Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError into a bloc try-except AttributeError

2016-06-12 Thread Vincent Vande Vyvre
Le 12/06/16 09:20, Vincent Vande Vyvre a écrit : Hi, I have a strange behaviour in my code. In an interactive session, the result is as expected: Python 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "l

AttributeError into a bloc try-except AttributeError

2016-06-12 Thread Vincent Vande Vyvre
except AttributeError: self.core.artetv.configure_downloading(self.video) and ... Traceback (most recent call last): File "/home/vincent/qarte-3/trunk/loadingscheduler.py", line 240, in call_settings_dialog _ = self.video.category AttributeError: 'TVItem&#x

Re: Setting Return-Path in email

2016-05-23 Thread Vincent Vande Vyvre
msg.attach(part) s = smtplib.SMTP('localhost') s.sendmail(fromid,toaddress, msg.as_string()) s.quit() Try with msg['Reply-To'] = the adress Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Developers using Python QT framework ??

2016-05-15 Thread Vincent Vande Vyvre
also a mailing list PyQt: https://www.riverbankcomputing.com/mailman/listinfo/pyqt Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: How to get a directory list sorted by date?

2016-05-15 Thread Vincent Vande Vyvre
nderstood here. The date used to sort the picture is not the file date provided by os.stat but the shooting date written into the metadata of each picture. Can the OP confirm that ? So, if the name of the picture are unchanged why not just compare the file name ? Vincent -- https://mail.py

Re: PyQt4

2016-04-03 Thread Vincent Vande Vyvre
using matplotlib and PyQt4 at supercomputer. Any other suggestion??? There's no IndentationError in the exemple provided by Michael. Copy the code AS IT in a file and retry. Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Grab metadata from images and save to file, batch mode

2016-04-02 Thread Vincent Vande Vyvre
(I want it to be python as that is what I am trying to learn) Can you give me some coding suggestions to get me goings? I haven't found any substantive scripts to use as guides. Many thanks in advance Have a look at py3exiv2: http://python3-exiv2.readthedocs.org/en/latest/ Vincent --

Re: Exclude every nth element from list?

2016-03-26 Thread Vincent Vande Vyvre
Le 26/03/2016 18:06, Vincent Vande Vyvre a écrit : Le 26/03/2016 17:49, beliavsky--- via Python-list a écrit : I can use x[::n] to select every nth element of a list. Is there a one-liner to get a list that excludes every nth element? Something like that: >>> l = list("lkod

Re: Exclude every nth element from list?

2016-03-26 Thread Vincent Vande Vyvre
'k', 'o', 'd', 'j', 'u', 'y', 'h', 'r', 't', 'g', 'f', 'e', 'd', 'c', 'v', 'f', 'g'] >>> ll = [c for i, c in enumerate(l) if i % 3] >>> ll.insert(0, l[0]) >>> ll ['l', 'k', 'o', 'j', 'u', 'h', 'r', 'g', 'f', 'd', 'c', 'f', 'g'] Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: Experimenting with PyPyJS

2016-03-19 Thread Vincent Vande Vyvre
t and tell your feeling Regards http://salvatore.diodev.fr/pypybox/ Use Firefox... That's look fine but: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 4917 vincent 20 0 1081m 305m 52m R *50.3* 15.4 5:23.75 firefox 1094 root 20 0 48152 15m 7180 S *

Re: Struggeling with collections

2016-03-07 Thread Vincent Vande Vyvre
Le 07/03/2016 09:24, Faling Dutchman a écrit : Hey folks, I am just starting off in python, but have good knowledge of both Java and C#. Now is the problem that I need to have multiple instances of one dictionary, that is not a problem if you know how many, but now, it is an unknown amount. S

Re: x=something, y=somethinelse and z=crud all likely to fail - how do i wrap them up

2016-02-01 Thread Vincent Davis
se a dict was better. See the example here. https://github.com/vincentdavis/USAC_data/blob/master/tools.py#L24 Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Re: Attribute path not in PurePosixPath ?

2016-01-24 Thread Vincent Vande Vyvre
Le 24/01/2016 08:58, Vincent Vande Vyvre a écrit : Hi, Refering to the doc https://docs.python.org/3/library/pathlib.html?highlight=pathlib#pathlib.PurePath.path Python 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC

Attribute path not in PurePosixPath ?

2016-01-24 Thread Vincent Vande Vyvre
", "credits" or "license" for more information. >>> from pathlib import PurePath >>> p = PurePath('/home/vincent/Images') >>> p.name 'Images' >>> p.suffix '' >>> p.parent PurePosixPath('/ho

Re: ouvrir python

2016-01-06 Thread Vincent Vande Vyvre
://www.developpez.net/forums/f96/autres-langages/python-zope/ Vincent -- https://mail.python.org/mailman/listinfo/python-list

unicodedata with chr() not the same between python 3.4 and 3.5

2015-12-22 Thread Vincent Davis
'Lu', 'Ll')))[945:965] >>> u 'ԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯԱԲԳԴԵ' Python 3.4 >>> import unicodedata >>> u = ''.join(chr(i) for i in range(65536) if (unicodedata.category(chr(i)) in ('Lu', 'Ll')))[945:965] >>> u '

Re: Catogorising strings into random versus non-random

2015-12-21 Thread Vincent Davis
e is one result as of now, ​which is an archive of this tread. If you search for any given word or even the phrase ​, for example​ "baby lions at play ​ " you get a much larger set of results ​ ~500​ . I assue there are many was to search google with python, this looks like one. https://pypi.python.org/pypi/google Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Try: rather than if :

2015-12-14 Thread Vincent Davis
On Mon, Dec 14, 2015 at 4:53 PM, Ian Kelly wrote: > > Except that catching an exception just to immediately re-raise it is > silly. This would be better: > > try: > name = handle.name > except AttributeError: > pass > else: > handle.write("# Report_file: %s\n" % name) ​Ya that would

Re: Try: rather than if :

2015-12-14 Thread Vincent Davis
ributeError: raise try: name = handel.name write("# Report_file: %s\n" % name) except AttributeError: pass write("\n") Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

Try: rather than if :

2015-12-14 Thread Vincent Davis
except AttributeError: pass handle.write("\n") The specific use case I noticed this was https://github.com/biopython/biopython/blob/master/Bio/AlignIO/EmbossIO.py#L38 Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing container's methods

2015-12-08 Thread Vincent Vande Vyvre
Le 08/12/2015 20:02, Thomas 'PointedEars' Lahn a écrit : Erik wrote: Please fix, Erik #75656. On 07/12/15 18:10, Tony van der Hoff wrote: A highly contrived example, where I'm setting up an outer class in a Has-a relationship, containing a number of Actors. The inner class needs to access

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
urce code from a jupyter notebook. Reading closer this seems like it will work. Not that I mind learning more about how doctests work ;-) Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
int('world') Exception raised: Traceback (most recent call last): File "/Users/vincentdavis/anaconda/envs/py35/lib/python3.5/doctest.py", line 1320, in __run compileflags, 1), test.globs) File "", line 1 print('hello') ^ SyntaxError: multiple statements found while compiling a single statement Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
is into a test. doctest seemed the simplest but maybe there is a better way. I also tried something like: assert exec("""print('hello word')""") == 'hello word' Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

manually build a unittest/doctest object.

2015-12-07 Thread Vincent Davis
t.Example(source="print('hello world')/n", want="hello world\n") t = doctest.DocTestRunner() t.run(e) Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: shorten "compress" long integer to short ascii.

2015-11-20 Thread Vincent Davis
gt; backagain = decoder(short) > nlen = len(str(n)) > print (nlen, len(short), float(len(short))/nlen) > assert n==backagain, (n,short,b) > > test() > Vincent Davis 720-301-3003 -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   >