[issue19264] subprocess.Popen doesn't support unicode on Windows

2017-03-15 Thread Valentin LAB

Valentin LAB added the comment:

For eventual other people wanting a workaround, this is the code I used to 
leverage ``ctypes`` and redo what last python 3 code is doing. Any comment are 
welcome, this is my first go at ``ctypes``. I didn't extensively tested the 
code... so use at your own risk. The Gist might evolve if some people find 
issues:

https://gist.github.com/vaab/2ad7051fc193167f15f85ef573e54eb9

Tests/Usecases are simple: use ``subprocess.Popen(..)`` to simply issue a ``git 
commit -am "ć"``. And display the changelog. You can also call another python 
script, that would then need this other recipe (this time to get ``sys.argv`` 
correctly encoded on windows):

http://code.activestate.com/recipes/572200/

Hope that helps.

------
nosy: +Valentin LAB

___
Python tracker 
<http://bugs.python.org/issue19264>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17574] pysetup failing with "OSError: [Errno 18] Invalid cross-device link".

2013-03-29 Thread Valentin Lab

New submission from Valentin Lab:

running::

  $ pysetup remove shyaml
  'shyaml' cannot be removed.
  Error: [Errno 18] Invalid cross-device link

Same happens when using::

  $ pysetup install shyaml==0.1.3

Besides, I've no idea of the state of distutils2 which was promising and is 
working as far as I'm concerned (except for trivial bugs as this one).

I'm using it for several small project, and I would be glad to know that it is 
still maintained regarding such easily-corrected bugs.

Correction of this bug is trivial here because ``distutils2/install.py`` line 
57 should use ``shutil.move()`` instead of ``os.rename()``. I've tested it, and 
this does the job.

Thank you for your attention.

--
assignee: eric.araujo
components: Distutils2
messages: 185500
nosy: alexis, eric.araujo, tarek, vaab
priority: normal
severity: normal
status: open
title: pysetup failing with "OSError: [Errno 18] Invalid cross-device link".
type: crash
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue17574>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com