Re: Permission denied error in download nltk_data...

2015-09-08 Thread Dwight GoldWinde
import nltk nltk.download('maxent_treebank_pos_tagger¹) Is now giving the error: [nltk_data] Error loading maxent_treebank_pos_tagger: Any suggestions, please. BIG SMILE... Always, Dwight -- https://mail.python.org/mailman/listinfo/python-list

Permission denied error in download nltk_data...

2015-09-04 Thread Dwight GoldWinde
Please helpŠ(my apologizesŠI got a response to this before, but I CANNOT find it now)Š Using this code: import nltk nltk.download('maxent_treebank_pos_tagger¹) I get this error: [nltk_data] Downloading package maxent_treebank_pos_tagger to [nltk_data] /Users/dwightgoldwindex/nltk_data...

Permission denied error in download nltk_data...

2015-08-19 Thread Dwight GoldWinde
Please helpŠ Using this code: import nltk nltk.download('maxent_treebank_pos_tagger¹) I get this error: [nltk_data] Downloading package maxent_treebank_pos_tagger to [nltk_data]/Users/dwightgoldwindex/nltk_data... Traceback (most recent call last): File test short.py, line 18, in module

Global command doesn't seem to work...

2015-08-15 Thread Dwight GoldWinde
Inside of Functions.py I define the function: def subwords (): global subwordsDL subwordsDL = {'enjoy':['like', 'appreciate', 'love', 'savor'], 'hurt':['damage', 'suffering']} print (subwordsDL) Return In my test code module, the code is: global subwordsDL from Functions import subwords

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
/15, 1:41 AM, Michael Torrie torr...@gmail.com wrote: On 08/08/2015 10:08 PM, Dwight GoldWinde wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
on YouTube) www.couragebooks.key.to (all my books on Amazon) On 08/08/2015 09:08 PM, Dwight GoldWinde wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
So many new things to look into! Chris, I now will also investigate i18n. Thank you. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/10/15, 9:27 AM, Chris Angelico ros...@gmail.com wrote: On Mon, Aug

Re: Importing is partially working...

2015-08-10 Thread Dwight GoldWinde
Such a simple change, I wouldn¹t think it would work. But it did. You suggested from Functions import humprint² instead of from Functions.py import humprint². Thank you, Chris! Now I can define functions all over the place. LOLŠ BIG SMILE... Always, Dwight www.3forliving.key.to (video

Importing is partially working...

2015-08-10 Thread Dwight GoldWinde
I am trying to import and function. The function (humprint) is defined in a .py module inside the same folder as the executing code. I am put traces in the Functions.py module to show that it works okay there (Python 3.4). Here is the code of the Functions.py module: try: print

Re: Is Django the way to go for a newbie?

2015-08-09 Thread Dwight GoldWinde
WowŠsuch a generous response. Thank you, Laura! Based upon your feedback, I did some additional investigation and decided to go with Django. One of the reasons is that it¹s got everything in the package. For example, I won¹t have to go outside of Django for my database needs. And, although my

Is Django the way to go for a newbie?

2015-08-08 Thread Dwight GoldWinde
I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development platform better for someone like me than

Re: Is Django the way to go for a newbie?

2015-08-08 Thread Dwight GoldWinde
, Dwight GoldWinde dwi...@goldwinde.com wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development

Re: How to import a function from another module...

2015-08-04 Thread Dwight GoldWinde
) www.couragebooks.key.to (all my books on Amazon) On 8/4/15, 9:24 AM, Steven D'Aprano st...@pearwood.info wrote: On Tue, 4 Aug 2015 09:57 am, Dwight GoldWinde wrote: I am trying to import a function defined in another module. You can't use spaces in the name of importable Python modules: change

How to import a function from another module...

2015-08-03 Thread Dwight GoldWinde
I am trying to import a function defined in another module. The code is this: name = 'Jim' sex = 'm' coach = 'Dwight' import importlib sentence = 'Hi, there, ' + name + '. My name is ' + coach + '. I will be your coach today.' importlib.import_module ('humprint', 'Macintosh

Re: I'm a newbie and I'm still stumped...

2015-08-03 Thread Dwight GoldWinde
On 8/3/15, 4:55 PM, Dwight GoldWinde dwi...@goldwinde.com wrote: Okay, thank you, Dave, so I got the following info: type $(which python3) /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 is /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 But I can¹t figure out what

Re: I'm a newbie and I'm still stumped...

2015-08-03 Thread Dwight GoldWinde
, in module word = input('Enter a word ') File string, line 1, in module NameError: name 'serendipity' is not defined On 8/2/15, 12:30 AM, Emile van Sebille em...@fenx.com wrote: On 7/30/2015 6:22 PM, Dwight GoldWinde wrote: I am running Python 3.4 on my Mac mini, OS X 10.10.2, using

I'm a newbie and I'm stumped...

2015-08-01 Thread Dwight GoldWinde
Please help. I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as my editor. Here¹s the code: #!/usr/bin/env python3 word = (input('Enter a word Œ)) When running this inside of Coderunner, I get the follow error, after entering the word Œserendipity¹: Enter a word