Re: AttributeError: 'module' object has no attribute 'urlretrieve' in window subsystem ubuntu bash for tensorflow

2017-05-20 Thread Kev Dwyer
Ho Yeung Lee wrote: > i use window subsystem ubuntu > and install python 3 and tensorflow > > then when try deep learning > > https://www.tensorflow.org/tutorials/wide_and_deep > > got error when urlretrieve local directory in ubuntu in window > > tried urllib3 still have error > > import tem

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Chris Angelico
On Tue, Sep 1, 2015 at 1:32 PM, Rustom Mody wrote: > On Tuesday, September 1, 2015 at 3:46:15 AM UTC+5:30, Laura Creighton wrote: >> Can you make the effort to move your cursor to the bottom of >> the mail you are replying to, before you start typing, >> so that your reply comes after what was sai

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Rustom Mody
On Tuesday, September 1, 2015 at 3:46:15 AM UTC+5:30, Laura Creighton wrote: > Can you make the effort to move your cursor to the bottom of > the mail you are replying to, before you start typing, > so that your reply comes after what was said before, instead of > first thing, and thus before what

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
In a message of Mon, 31 Aug 2015 17:01:07 -0400, Saran Ahluwalia writes: >Laura, > >It does not appear to be the case. I actually had to actually unset the >PYTHONPATH. > >Thanks for your suggestion. > >Sincerely, >Saran Are you and kbtyo the same person? If deleting your PYTHONPATH fixed it, th

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Saran Ahluwalia
Laura, It does not appear to be the case. I actually had to actually unset the PYTHONPATH. Thanks for your suggestion. Sincerely, Saran On Mon, Aug 31, 2015 at 4:17 PM, Laura Creighton wrote: > Check and see if you have a file in your working directory with the > very same name as a module yo

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
Check and see if you have a file in your working directory with the very same name as a module you are trying to import, or the_same_name.py If so, change the name of that file to something else. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-08 Thread Chris Angelico
On Fri, Aug 8, 2014 at 5:17 PM, Rustom Mody wrote: >> But with Roy's suggestion, testing for the existence of os.fork is not >> sufficient, because it will exist even on platforms where fork doesn't >> exist. So testing that os.fork exists is not sufficient to tell whether or >> not you can actual

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-08 Thread Rustom Mody
On Friday, August 8, 2014 11:18:17 AM UTC+5:30, Steven D'Aprano wrote: > Rustom Mody wrote: > > On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: > >> Roy Smith wrote: > >> > Peter Otten wrote: > >> >> os.fork() > >> >> Fork a child process. > >> >> ... > >> >> Availabilit

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Steven D'Aprano
Rustom Mody wrote: > On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: >> Roy Smith wrote: > >> > Peter Otten wrote: >> >> os.fork() >> >> Fork a child process. >> >> ... >> >> Availability: Unix. >> >> """ >> >> You are using the wrong operating system ;) >> > To be hone

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Rustom Mody
On Friday, August 8, 2014 10:49:27 AM UTC+5:30, Rustom Mody wrote: > On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: > > Roy Smith wrote: > > > Peter Otten wrote: > > >> os.fork() > > >> Fork a child process. > > >> ... > > >> Availability: Unix. > > >> """ > > >> You ar

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Rustom Mody
On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: > Roy Smith wrote: > > Peter Otten wrote: > >> os.fork() > >> Fork a child process. > >> ... > >> Availability: Unix. > >> """ > >> You are using the wrong operating system ;) > > To be honest, this could be considered a bu

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Steven D'Aprano
Roy Smith wrote: > In article , > Peter Otten <__pete...@web.de> wrote: > >> os.fork() >> Fork a child process. >> ... >> Availability: Unix. >> """ >> >> You are using the wrong operating system ;) > > To be honest, this could be considered a buglet in the os module. It > really should raise

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Roy Smith
In article , Peter Otten <__pete...@web.de> wrote: > os.fork() > Fork a child process. > ... > Availability: Unix. > """ > > You are using the wrong operating system ;) To be honest, this could be considered a buglet in the os module. It really should raise: NotImplementedError("fork() is on

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Peter Otten
Satish ML wrote: > Hi, > > Code: > import os, time > def child(pipeout): > zzz = 0 > while True: > time.sleep(zzz) > msg = ('Spam %03d' % zzz).encode() > os.write(pipeout, msg) > zzz = (zzz+1) % 5 > def parent(): > pipein, pipeout = os.pipe() > if o

Re: AttributeError: 'module' object has no attribute 'logger'

2012-03-05 Thread Jean-Michel Pichavant
youssef.mah...@hotmail.com wrote: hi all, when installing sage, there is a problem with emacs.py so, this screen appeared after rynning ./sage -- | Sage Version 4.4.2, Release Date: 2010-05-19 | | Type noteb

Re: AttributeError: 'module' object has no attribute 'pack'

2009-09-10 Thread Ben Kaplan
On Sep 10, 2009, at 4:21 PM, Sampsa Riikonen wrote: Hello, I already solved this.. I had to set PYTHONPATH= After that the error msg disappeared. Weird though.. I don't have any module called "subprocess" in my personal python modules directory. Anyway, thanks for the swift reply! Reg

Re: AttributeError: 'module' object has no attribute 'pack'

2009-09-10 Thread Jerry Hill
On Thu, Sep 10, 2009 at 4:21 PM, Sampsa Riikonen wrote: > Hello, > > I already solved this.. I had to set > > PYTHONPATH= > > After that the error msg disappeared. > Weird though.. I don't have any module called "subprocess" > in my personal python modules directory. You have a module named struc

Re: AttributeError: 'module' object has no attribute 'pack'

2009-09-10 Thread Sampsa Riikonen
Hello, I already solved this.. I had to set PYTHONPATH= After that the error msg disappeared. Weird though.. I don't have any module called "subprocess" in my personal python modules directory. Anyway, thanks for the swift reply! Regards, Sampsa On Thursday 10 September 2009 10:40:11 pm Albe

Re: AttributeError: 'module' object has no attribute 'pack'

2009-09-10 Thread Albert Hopkins
On Thu, 2009-09-10 at 21:07 +0300, Sampsa Riikonen wrote: > Dear List, > > I have a freshly installed opensuse 11.2 and I am experiencing the following > problem with the module "subprocess": > > sam...@linux-912g:~> python > Python 2.6 (r26:66714, Feb 3 2009, 20:52:03) > [GCC 4.3.2 [gcc-4_3-bra

Re: AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread John Machin
On Jan 27, 3:07 am, MRAB wrote: > Jay Jesus Amorin wrote: [snip] >  > Here's the error message: >  > >  > r...@nebuchadnezzar:/home/test/project# ./xlrd.py test.xls >  > Traceback (most recent call last): >  >   File "./xlrd.py", line 3, in >  >     import xlrd >  >   File "/home/jayam/project/xl

Re: AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread MRAB
Jay Jesus Amorin wrote: > Hi, > > Kindly help, I've got this error when running my script: > > AttributeError: 'module' object has no attribute 'open_workbook' > > > Here's my code: > > #!/usr/bin/python > > import xlrd > import sys > > mySpreadsheet = xlrd.open_workbook(open(sys.argv[1])) > first

Re: AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

2009-01-02 Thread Vinay Sajip
On Dec 29 2008, 12:18 pm, "Chris Rebert" wrote: > > "The StreamHandler and FileHandler classes are defined in the > coreloggingpackage. The other handlers are defined in a sub- > module,logging.handlers." > > There's your answer. I do agree though that the > "classlogging.DatagramHandler" line

Re: AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

2008-12-30 Thread Vinay Sajip
On Dec 29, 12:18 pm, "Chris Rebert" wrote: > There's your answer. I do agree though that the "class > logging.DatagramHandler" line in the docs is misleading to say the > least. Perhaps a docs bug should be filed... I've raised it on the sphinx-dev Google group. The documentation source markup f

Re: AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

2008-12-29 Thread John Machin
On Dec 29, 11:08 pm, Tzury Bar Yochay wrote: > $ ~/devel/ice/snoip/freespeech$ python > Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information.>>> > import logging > >>> logging.DatagramHandler > > Traceback

Re: AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

2008-12-29 Thread Bruno Desthuilliers
Tzury Bar Yochay a écrit : $ ~/devel/ice/snoip/freespeech$ python Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. import logging logging.DatagramHandler Traceback (most recent call last): File "", li

Re: AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

2008-12-29 Thread Chris Rebert
On Mon, Dec 29, 2008 at 4:08 AM, Tzury Bar Yochay wrote: > $ ~/devel/ice/snoip/freespeech$ python > Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import logging logging.DatagramHandler > T

Re: "AttributeError: 'module' object has no attribute 'getdefaultlocale'" on Python start

2008-09-09 Thread Matt Nordhoff
Barak, Ron wrote: > Hi Fellow Pythonians, > > I stated getting the following when starting Python (2.5.2 on Windows XP): > > C:\Documents and Settings\RBARAK>python -v > # installing zipimport hook > import zipimport # builtin > # installed zipimport hook > # D:\Python25\lib\site.pyc matches D:

Re: AttributeError: module object has no attribute

2008-05-20 Thread Nikhil
Marc 'BlackJack' Rintsch wrote: On Tue, 20 May 2008 23:31:15 +0530, Nikhil wrote: Peter Otten wrote: Nikhil wrote: I have recently written a small module. When I import the module, I always get the error only when I do >>> from local.my.module import * -- Traceback (most recent call las

Re: AttributeError: module object has no attribute

2008-05-20 Thread Marc 'BlackJack' Rintsch
On Tue, 20 May 2008 23:31:15 +0530, Nikhil wrote: > Peter Otten wrote: >> Nikhil wrote: >> >>> I have recently written a small module. When I import the module, I >>> always get the error >>> >>> >>> only when I do >>> >>> >>> from local.my.module import * >>> >>> -- >>> Traceback (most recent c

Re: AttributeError: module object has no attribute

2008-05-20 Thread Nikhil
Peter Otten wrote: Nikhil wrote: I have recently written a small module. When I import the module, I always get the error only when I do >>> from local.my.module import * -- Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute '/xyz/py

Re: AttributeError: module object has no attribute

2008-05-20 Thread Peter Otten
Nikhil wrote: > I have recently written a small module. When I import the module, I > always get the error > > > only when I do > > >>> from local.my.module import * > > -- > Traceback (most recent call last): >File "", line 1, in > AttributeError: 'module' object has no attribute '/xyz/

Re: AttributeError: module object has no attribute

2008-05-20 Thread abhilash pp
hai nikhil, please check your __init__ file if you had any cheers, abhilash On Tue, May 20, 2008 at 11:00 PM, Nikhil <[EMAIL PROTECTED]> wrote: > I have recently written a small module. When I import the module, I always > get the error > > > only when I do > > >>> from local.my.module import *

Re: AttributeError: 'module' object has no attribute 'letters'

2008-02-12 Thread black_13
On Feb 11, 5:33 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Feb 12, 9:24 am,black_13<[EMAIL PROTECTED]> wrote: > > > > > > > what does this error mean? > > i am trying to use mark hammonds win32 package. > > > Traceback (most recent call last): > >   File "aui2.py", line 11, in > >     import

Re: AttributeError: 'module' object has no attribute 'letters'

2008-02-11 Thread Gabriel Genellina
En Mon, 11 Feb 2008 21:33:25 -0200, John Machin <[EMAIL PROTECTED]> escribió: > Otherwise run python from the command line with the -v option and find > where it's getting the interloper string module from. interloper: my new word of the day. Thanks! PS: Another way would be to run the script

Re: AttributeError: 'module' object has no attribute 'letters'

2008-02-11 Thread John Machin
On Feb 12, 9:24 am, black_13 <[EMAIL PROTECTED]> wrote: > what does this error mean? > i am trying to use mark hammonds win32 package. > > Traceback (most recent call last): > File "aui2.py", line 11, in > import win32com.client > File "C:\Python25\lib\site-packages\win32com\client\__init_

Re: AttributeError: 'module' object has no attribute 'letters'

2008-02-11 Thread Ben Finney
black_13 <[EMAIL PROTECTED]> writes: > what does this error mean? > [...] > valid_identifier_chars = string.letters + string.digits + "_" > AttributeError: 'module' object has no attribute 'letters' It means that you're trying to access the attribute 'letters' on a module that doesn't have th

Re: AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-10 Thread [EMAIL PROTECTED]
On 8/10/07, Matt McCredie <[EMAIL PROTECTED]> wrote: > > I built and installed python 2.5 from source and when I do this: > > opener = urllib2.build_opener(SmartRedirectHandler(), > > DefaultErrorHandler(), urllib2.HTTPSHandler()) > > I get this error. > > AttributeError: 'module' object has no att

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-04-01 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > Peter Otten wrote: > > adrian wrote: > > > >>urllib.socket.setdefaulttimeout(self.timeout) > >>AttributeError: 'module' object has no attribute 'setdefaulttimeout' > > socket.setdefaulttimeout() was added in Python 2.3. You need to > > upgrade. > > Peter

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread Steve Holden
Peter Otten wrote: adrian wrote: urllib.socket.setdefaulttimeout(self.timeout) AttributeError: 'module' object has no attribute 'setdefaulttimeout' socket.setdefaulttimeout() was added in Python 2.3. You need to upgrade. Peter Alternatively you might still be ablet o get Tom O'Malley's tiemouts

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread infidel
That just means the urllib.socket module doesn't have any function named setdefaulttimeout in it. It appears there might be something wrong with your socket module as mine has it: py> import urllib py> f = urllib.socket.setdefaulttimeout py> f -- http://mail.python.org/mailman/listinfo/python-

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread Peter Otten
adrian wrote: > urllib.socket.setdefaulttimeout(self.timeout) > AttributeError: 'module' object has no attribute 'setdefaulttimeout' socket.setdefaulttimeout() was added in Python 2.3. You need to upgrade. Peter -- http://mail.python.org/mailman/listinfo/python-list