Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'scripts': 0.03; 'url:pypi': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'importerror:': 0.07; 'installed.': 0.07; 'lawrence': 0.09; 'python:': 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; 'python': 0.11; 'language.': 0.14; 'easy_install': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'spacing': 0.16; 'there!': 0.16; 'version?': 0.16; 'files.': 0.16; 'folder': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'module': 0.19; 'thanks.': 0.20; 'seems': 0.21; 'import': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'subject:problem': 0.24; 'url:moin': 0.24; 'looks': 0.24; 'this:': 0.26; 'downloaded': 0.26; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'url:mailman': 0.30; 'included': 0.31; 'program,': 0.31; 'code': 0.31; 'easier': 0.31; "skip:' 10": 0.31; 'url:wiki': 0.31; 'file': 0.32; 'skip:c 30': 0.32; 'option': 0.32; 'run': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; '(most': 0.33; 'subject:with': 0.35; "can't": 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'error.': 0.37; 'so,': 0.37; 'list': 0.37; 'problems': 0.38; 'work?': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'read': 0.60; "you're": 0.61; 'such': 0.63; 'our': 0.64; 'finally': 0.65; 'charset:windows-1252': 0.65; 'here': 0.66; '3.4': 0.84; 'frustrating': 0.84; 'url:2014': 0.84; 'same,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: problem with pytz Date: Mon, 13 Oct 2014 04:15:35 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-23-137.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413170153 news.xs4all.nl 2834 [2001:888:2000:d::a6]:52678 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79033 On 13/10/2014 03:55, ryguy7272 wrote: > I just tried running the code from here. > http://www.thealgoengineer.com/2014/download_sp500_data/ > > I got this error. > Traceback (most recent call last): > File "C:/Python27/stock_data.py", line 4, in Please don't put your code here, what happens when you upgrade your Python version? > import pytz > ImportError: No module named pytz > > So, I got here and download the files. > https://pypi.python.org/pypi/pytz/#downloads > > I run this: > python setup.py install > > I get this error. > python: can't open file 'setup.py': [Errno 2] No such file or directory > > I tried this: > easy_install --upgrade pytz > > > Now, that seems like it downloaded and installed. So, I re-run the program, and I get the same error I had initially. > Traceback (most recent call last): > File "C:/Python27/stock_data.py", line 4, in > import pytz > ImportError: No module named pytz > > > I don't get it. I go to the path 'C:\Python27\pytz' and the folder is right there! It's right there! It's a little frustrating because all my problems seem to be exactly the same, which is running scripts that should run easily...bu nothing actually runs. What else do I need to do to make this thing work? > It should be in c:\python27\lib\site-packages. It's also far easier to use pip to install code. It's already available as an option with 3.4 and I think will be automatically included with 3.5 Finally it looks as if you're using googlegroups. If that is the case would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs. Better yet access this list via https://mail.python.org/mailman/listinfo/python-list, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence