Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86544

Re: Windows permission error, 64 bit, psycopg2, python 3.4.2

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'subject:error': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'args)': 0.09; 'cleanup': 0.09; 'exception,': 0.09; 'fixed,': 0.09; 'lawrence': 0.09; 'overflow': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'setup.py': 0.09; 'skip:\\ 10': 0.09; 'url:github': 0.09; 'worked,': 0.09; 'wrong,': 0.09; 'python': 0.11; 'bug': 0.12; 'language.': 0.14; 'windows': 0.15; '(issue': 0.16; '122,': 0.16; 'exception:': 0.16; 'fullname,': 0.16; 'indexerror:': 0.16; 'ler': 0.16; 'password,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:@ 20': 0.16; 'stumbled': 0.16; 'subject:bit': 0.16; 'subject:permission': 0.16; 'traceback.': 0.16; 'tuple': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'index': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; 'else,': 0.19; "skip:' 30": 0.19; 'stack': 0.19; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'errors.': 0.24; 'refers': 0.24; 'handling': 0.26; 'permission': 0.26; 'skip:" 40': 0.26; 'tracker': 0.26; 'skip:" 20': 0.27; 'skip:_ 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'specifically': 0.29; '(c)': 0.29; 'requesting': 0.31; 'file': 0.32; 'skip:c 30': 0.32; 'run': 0.32; 'another': 0.32; 'running': 0.33; '(most': 0.33; 'skip:_ 10': 0.34; 'skip:d 20': 0.34; 'but': 0.35; 'there': 0.35; 'event,': 0.36; 'installing': 0.36; 'skip:" 50': 0.36; 'skip:s 60': 0.36; 'shows': 0.36; 'error.': 0.37; 'two': 0.37; 'skip:o 20': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'reported': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'gone': 0.61; 'mentioned': 0.61; 'new': 0.61; 'range': 0.61; 'our': 0.64; 'charset:windows-1252': 0.65; 'reserved.': 0.68; 'skip:r 40': 0.68; '7.1': 0.84; 'precompiled': 0.84; 'opt': 0.97; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Windows permission error, 64 bit, psycopg2, python 3.4.2
Date Thu, 26 Feb 2015 20:54:08 +0000
References <6a27dcaa-4652-4dc4-8c74-fd0a68ebb51a@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-16-176.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To <6a27dcaa-4652-4dc4-8c74-fd0a68ebb51a@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19288.1424984094.18130.python-list@python.org> (permalink)
Lines 79
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424984094 news.xs4all.nl 2844 [2001:888:2000:d::a6]:60242
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86544

Show key headers only | View raw


On 26/02/2015 15:10, Malik Rumi wrote:
> I am one of those struggling with compile issues with python on 64 bit windows. I have not been able to get the solutions mentioned on Stack Overflow to work because installing Windows SDK 7.1 fails for me.
>
> So I stumbled across a precompiled psycopg2, and that reported that it worked, but then I got two permission errors. Then I read that this was a bug in python (issue 14252) that had been fixed, but I don't think this is the same error. That one specifically refers to subprocess.py and I don't have that in my traceback.  I have v3.4.2. On top of everything else, despite requesting a new password, all I get from the big tracker is 'invalid login'.
>
> In any event, running "import psycopg2" returns 'import error, no module named psycopg2'.
>
>
> Microsoft Windows [Version 6.3.9600]
> (c) 2013 Microsoft Corporation. All rights reserved.
>
> C:\Users\Semantic>pip install git+https://github.com/nwcell/psycopg2-windows.git
> @win64-py34#egg=psycopg2
> Downloading/unpacking psycopg2 from git+https://github.com/nwcell/psycopg2-windo
> ws.git@win64-py34
>    Cloning https://github.com/nwcell/psycopg2-windows.git (to win64-py34) to c:\u
> sers\semantic\appdata\local\temp\pip_build_semantic\psycopg2
>    Running setup.py (path:C:\Users\Semantic\AppData\Local\Temp\pip_build_Semantic
> \psycopg2\setup.py) egg_info for package psycopg2
>      C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
> ion: 'summary'
>        warnings.warn(msg)
>
> Installing collected packages: psycopg2
>    Running setup.py install for psycopg2
>      C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
> ion: 'summary'
>        warnings.warn(msg)
>
> Successfully installed psycopg2
> Cleaning up...
>    Exception:
> Traceback (most recent call last):
>    File "C:\Python34\lib\shutil.py", line 370, in _rmtree_unsafe
>      os.unlink(fullname)
> PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Semantic\\AppData\\L
> ocal\\Temp\\pip_build_Semantic\\psycopg2\\.git\\objects\\pack\\pack-be4d3da4a06b
> 4c9ec4c06040dbf6685eeccca068.idx'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>    File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
>      status = self.run(options, args)
>    File "C:\Python34\lib\site-packages\pip\commands\install.py", line 302, in run
>
>      requirement_set.cleanup_files(bundle=self.bundle)
>    File "C:\Python34\lib\site-packages\pip\req.py", line 1333, in cleanup_files
>      rmtree(dir)
>    File "C:\Python34\lib\site-packages\pip\util.py", line 43, in rmtree
>      onerror=rmtree_errorhandler)
>    File "C:\Python34\lib\shutil.py", line 477, in rmtree
>      return _rmtree_unsafe(path, onerror)
>    File "C:\Python34\lib\shutil.py", line 367, in _rmtree_unsafe
>      _rmtree_unsafe(fullname, onerror)
>    File "C:\Python34\lib\shutil.py", line 367, in _rmtree_unsafe
>      _rmtree_unsafe(fullname, onerror)
>    File "C:\Python34\lib\shutil.py", line 367, in _rmtree_unsafe
>      _rmtree_unsafe(fullname, onerror)
>    File "C:\Python34\lib\shutil.py", line 367, in _rmtree_unsafe
>      _rmtree_unsafe(fullname, onerror)
>    File "C:\Python34\lib\shutil.py", line 372, in _rmtree_unsafe
>      onerror(os.unlink, fullname, sys.exc_info())
>    File "C:\Python34\lib\site-packages\pip\util.py", line 53, in rmtree_errorhand
> ler
>      (exctype is PermissionError and value.args[3] == 5) #python3.3
> IndexError: tuple index out of range
>

The above clearly shows "Successfully installed psycopg2" and that it's 
a permission error on cleanup that's gone wrong, so what is there to 
report on the bug tracker?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Windows permission error, 64 bit, psycopg2, python 3.4.2 Malik Rumi <malik.a.rumi@gmail.com> - 2015-02-26 07:10 -0800
  Re: Windows permission error, 64 bit, psycopg2, python 3.4.2 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-26 20:54 +0000
    Re: Windows permission error, 64 bit, psycopg2, python 3.4.2 Malik Rumi <malik.a.rumi@gmail.com> - 2015-02-26 13:42 -0800

csiph-web