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

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Windows permission error, 64 bit, psycopg2, python 3.4.2
Date 2015-02-26 20:54 +0000
References <6a27dcaa-4652-4dc4-8c74-fd0a68ebb51a@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.19288.1424984094.18130.python-list@python.org> (permalink)

Show all headers | 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