Re: Error when starting python3

2015-09-23 Thread Aljaž Srebrnič
> On 20/set/2015, at 11:14, Glenn Ramsey  wrote:
> 
> Neither of those had any output.
> 
> I installed python 3.4, which worked OK, and then reinstalled 3.5rc4 and it
> works now. It must have been some sort of configuration issue as you 
> suggested.
> 
> Thanks for your reply.

Ok, glad you sorted it out!

--
Aljaž Srebrnič a.k.a g5pw
My public key:  http://bit.ly/g5pw_pubkey

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Error when starting python3

2015-09-20 Thread Glenn Ramsey
Hi Aljaž,

On 14/09/15 22:46, Aljaž Srebrnič wrote:
>> On 14/set/2015, at 05:55, Glenn Ramsey  wrote:
>>
>> Hi All,
>>
>> I get this error when starting python3:
>>
>> $ python3
>> Python 3.5.0rc4 (default, Sep 14 2015, 13:58:59)
>> [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> Failed calling sys.__interactivehook__
>> Traceback (most recent call last):
>>  File
>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py",
>> line 380, in register_readline
>>import rlcompleter
>>  File
>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/rlcompleter.py",
>> line 167, in 
>>readline.set_completer(Completer().complete)
>> AttributeError: module 'readline' has no attribute 'set_completer'
>>
>> Do I need to install a dependency or is this a bug?
> 
> This looks like a configuration issue on your end, it works on my machine.
> Could you post the output of:
> 
> echo $PYTHONSTARTUP
> 
> and
> 
> cat $PYTHONSTARTUP

Neither of those had any output.

I installed python 3.4, which worked OK, and then reinstalled 3.5rc4 and it
works now. It must have been some sort of configuration issue as you suggested.

Thanks for your reply.

Glenn


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Error when starting python3

2015-09-14 Thread Aljaž Srebrnič
> On 14/set/2015, at 05:55, Glenn Ramsey  wrote:
> 
> Hi All,
> 
> I get this error when starting python3:
> 
> $ python3
> Python 3.5.0rc4 (default, Sep 14 2015, 13:58:59)
> [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> Failed calling sys.__interactivehook__
> Traceback (most recent call last):
>  File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py",
> line 380, in register_readline
>import rlcompleter
>  File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/rlcompleter.py",
> line 167, in 
>readline.set_completer(Completer().complete)
> AttributeError: module 'readline' has no attribute 'set_completer'
> 
> Do I need to install a dependency or is this a bug?

This looks like a configuration issue on your end, it works on my machine.
Could you post the output of:

echo $PYTHONSTARTUP

and

cat $PYTHONSTARTUP

Thanks,
Aljaž
--
Aljaž Srebrnič a.k.a g5pw
My public key:  http://bit.ly/g5pw_pubkey

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users