Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85400
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <zachary.ware@gmail.com> |
| 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; 'subject:Python': 0.06; 'attribute': 0.07; 'python3': 0.07; 'rename': 0.07; '40,': 0.09; 'executable': 0.09; 'pointers': 0.09; 'sys,': 0.09; 'python': 0.11; '__all__': 0.16; 'collections': 0.16; 'googling': 0.16; 'skip:" 70': 0.16; 'skip:" 80': 0.16; 'subject:library': 0.16; 'subject:requests': 0.16; 'tokenize': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; "hasn't": 0.19; 'feb': 0.22; 'example': 0.22; 'import': 0.22; 'cc:addr:gmail.com': 0.22; 'to:name:python-list@python.org': 0.22; 'installation': 0.23; 'mon,': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'logging': 0.26; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'appreciated.': 0.29; 'message-id:@mail.gmail.com': 0.30; 'os,': 0.31; 'own,': 0.31; 'file': 0.32; 'thanks!': 0.32; '(most': 0.33; 'brian': 0.33; 'mac': 0.33; 'skip:# 10': 0.33; 'subject:the': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'library.': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'track': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'hope': 0.61; 'back': 0.62; '26,': 0.68; '2015': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=n44cweeW/cbp6Mtbw2pvRtWUGnnNZqCPJyYm+pLSpCY=; b=YsTHYYUIQS71fxxoWQhEe4maohNEIrjgNBbnAdXrhiPl8UOFaPDGCHLhTHxorvQHfk QIF9vCpN/KmjJXYGlWp9no0yDVOZI/Yxo2q2Xmk6xwIBQAe7bq7wgmxAvN1JTiWTNiFf p++WHAtWilTgRBF6gEx2h/DeBWpjqJr9SOazoGBezmd9t7RyruK3Qkb1WAEXiqVL7nUK fIHgKKumAepMW3NPlo3eIH6ZsiPnBbhGPCHrg6P5LhpRhTemmao7pDHIFrt2ZT5nC99h mtz3XbGxu1mTbMUy98vt2qZSgQD21iQ6XXFAtHXIOEAS97Fpouz1CuixZNrHsd8Tdb0L QVgg== |
| X-Received | by 10.202.220.9 with SMTP id t9mr12466507oig.102.1423512720538; Mon, 09 Feb 2015 12:12:00 -0800 (PST) |
| MIME-Version | 1.0 |
| Sender | zachary.ware@gmail.com |
| In-Reply-To | <96003963-8ca1-4b62-811d-05d6f6a5709d@googlegroups.com> |
| References | <9b2a1b9d-4f1b-4786-a3a6-2d414074da6f@googlegroups.com> <96003963-8ca1-4b62-811d-05d6f6a5709d@googlegroups.com> |
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Date | Mon, 9 Feb 2015 14:11:40 -0600 |
| X-Google-Sender-Auth | ROdGSoJAejwDJU-c3YGkQYy4-rg |
| Subject | Re: Python 3 and the requests library |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Brian <brian.from.fl@gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.18576.1423512729.18130.python-list@python.org> (permalink) |
| Lines | 35 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1423512729 news.xs4all.nl 2972 [2001:888:2000:d::a6]:38357 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:85400 |
Show key headers only | View raw
On Mon, Feb 9, 2015 at 1:20 PM, Brian <brian.from.fl@gmail.com> wrote:
> I am also seeing this in my Mac Mavericks Python 3 installation when I use just the built-in logging library. Again, a tiny example executable script and the results:
>
> $ cat test2.py
> #!/usr/bin/env python3
> import logging
> logging.info("TEST2 starting")
>
> $ ./test2.py
> Traceback (most recent call last):
> File "./test2.py", line 3, in <module>
> import logging
> File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/__init__.py", line 26, in <module>
> import sys, os, time, io, traceback, warnings, weakref, collections
> File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 3, in <module>
> import linecache
> File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/linecache.py", line 10, in <module>
> import tokenize
> File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tokenize.py", line 40, in <module>
> __all__ = token.__all__ + ["COMMENT", "tokenize", "detect_encoding",
> AttributeError: 'module' object has no attribute '__all__'
>
> Googling hasn't helped track this one down. In lieu of an answer, some pointers to tools or other things to look for would be greatly appreciated. Thanks!
Try this, from wherever test2.py lives:
python3 -c "import token;print(token.__file__)"
You should get back something akin to "/usr/lib64/python3.4/token.py"
(however that translates to Mac). If instead you get the path to some
file of your own, rename your file.
Hope this helps,
--
Zach
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 3 and the requests library Brian <brian.from.fl@gmail.com> - 2015-02-09 10:11 -0800
Re: Python 3 and the requests library Brian <brian.from.fl@gmail.com> - 2015-02-09 11:20 -0800
Re: Python 3 and the requests library Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-02-09 14:11 -0600
Re: Python 3 and the requests library Brian <brian.from.fl@gmail.com> - 2015-02-09 12:37 -0800
Re: Python 3 and the requests library Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-09 13:58 -0700
Re: Python 3 and the requests library Brian <brian.from.fl@gmail.com> - 2015-02-09 13:37 -0800
Re: Python 3 and the requests library Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-09 15:42 -0700
Re: Python 3 and the requests library Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-02-09 15:03 -0600
csiph-web