[issue29480] Mac OSX Installer SSL Roots

2018-02-15 Thread Tommy Carstensen

Tommy Carstensen <tommy.carsten...@gmail.com> added the comment:

I can't user requests, urllib, pandas.read_html(), etc. because of this. I 
don't have root access / sudo rights. I've tried downloading OpenSSL from 
openssl.org and then installing with:
 `./config --prefix=/my/home/dir ; make ; make install`

Then I tried installing Python with:
 `export CFLAGS="-I/my/home/dir/include" ; export LDFLAGS="-L/my/home/dir/lib" 
; ./configure prefix=/my/home/dir ; make ; make install`

But it doesn't work. How can I install Python3.6 without root access / admin 
rights? Thanks!

--
nosy: +Tommy.Carstensen

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



[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2017-03-24 Thread Tommy Carstensen

Tommy Carstensen added the comment:

Thanks @ned.deily ! That did the trick for me! When installing openssl I just 
had to do ./config --prefix=/my/home/dir prior to doing make and make install. 
Then I just did two commands prior to installing python3.6:
export CFLAGS="-I/my/home/dir/include"
export LDFLAGS="-L/my/home/dir/lib"

--

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



[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2017-03-24 Thread Tommy Carstensen

Tommy Carstensen added the comment:

I have the same problem as described here. How can I install Python3.6 and pip 
without sudo and without homebrew? I get the same error message after 
installation:

pip is configured with locations that require TLS/SSL, however the ssl module 
in Python is not available.

--
nosy: +Tommy.Carstensen

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



[issue13742] Add a key parameter (like sorted) to heapq.merge

2015-01-09 Thread Tommy Carstensen

Tommy Carstensen added the comment:

I noticed 3.5 alpha1 is not released until February 1st. Is there any way I can 
get my hands on this new functionality?

--
nosy: +Tommy.Carstensen

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13742] Add a key parameter (like sorted) to heapq.merge

2015-01-09 Thread Tommy Carstensen

Tommy Carstensen added the comment:

Yes, but 3.5 has not been pre-released yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20992] reading individual bytes of multiple binary files using the Python module fileinput

2014-03-24 Thread Tommy Carstensen

Tommy Carstensen added the comment:

I read the fileinput code and realized how heavily tied it is to line input.

Will reading individual bytes as suggested not be very memory intensive, if 
each line is billions of characters?

def bytefileinput():
return (bytes((b,)) for line in fileinput.input() for b in line)

I posted my workaround on stackoverflow (see link earlier in tread), which does 
not make use of the fileinput module at all. After having read through the 
fileinput code I agree that the module should only support reading lines and 
this enhancement request should be closed.

--
resolution:  - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20992
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20992] reading individual bytes of multiple binary files using the Python module fileinput

2014-03-20 Thread Tommy Carstensen

New submission from Tommy Carstensen:

This is my first post on bugs.python.org. I hope I abide to the rules. It was 
suggested to me on stackoverflow.com, that I request an enhancement to the 
module fileinput here:
http://stackoverflow.com/questions/22510123/reading-individual-bytes-of-multiple-binary-files-using-the-python-module-filein

I can read the first byte of a binary file like this:

with open(my_binary_file,'rb') as f:
f.read(1)

But when I run this code:

import fileinput
with fileinput.FileInput(my_binary_file,'rb') as f:
f.read(1)

then I get this error:

AttributeError: 'FileInput' object has no attribute 'read'

I would like to propose an enhancement to fileinput, which makes it possible to 
read binary files byte by byte.

I posted this solution to my problem:

def process_binary_files(list_of_binary_files):

for file in list_of_binary_files:
with open(file,'rb') as f:
yield f.read(1)

return

list_of_binary_files = ['f1', 'f2']
generate_byte = process_binary_files(list_of_binary_files)
byte = next(generate_byte)

--
components: Library (Lib)
messages: 214195
nosy: Tommy.Carstensen
priority: normal
severity: normal
status: open
title: reading individual bytes of multiple binary files using the Python 
module fileinput
type: enhancement
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20992
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com