Re: No module name mutagen

2025-01-01 Thread Tim Johnson via Python-list
On 12/31/24 15:00, Tim Johnson wrote: . Snipped I resolved this by extrapolating known paths of other non-distro pipx installs, and am back in business now. I'm taking lots of notes. For some reason, even after running updatedb, I had no luck finding with locate. I was not aware tha

Re: No module name mutagen

2025-01-01 Thread Peter J. Holzer via Python-list
On 2024-12-31 15:00:10 -0900, Tim Johnson via Python-list wrote: > being retired for ten years, I get my butt kicked by python dependencies > every time I upgrade ubuntu. (I'm newly on 24.04) now. > > Now, after three weeks on using the following code correctly: > > from mutagen import mp3, id3,

Re: No module name mutagen

2024-12-31 Thread Michael Torrie via Python-list
On Tue, Dec 31, 2024, 17:04 Tim Johnson via Python-list < python-list@python.org> wrote: > I am as of today, getting an import error for mutagen. Mutagen package > is installed at /root/.local/share/pipx/shared/lib/python3.12/site-packages > Pip-installed packages that go to /root/.local are onl

Re: No module name mutagen

2024-12-31 Thread Thomas Passin via Python-list
On 12/31/2024 7:00 PM, Tim Johnson via Python-list wrote: Please let me grumble for a minute : I've been using python since before 1. 5, when I could email Guido van Rossum directly with questions and on  at least one occasion we swapped stories about our cats. I put six kids though college wr

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-14 Thread Jacob Kruger via Python-list
Yup. Also checked out beeware - which also offers cross-platform compilation of same code - but, one minor issue there first time tried it out was working with additional/external modules, and, packaging resources. Plus, while it includes it's own form of LBC GUI interface - toga - the one

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-13 Thread Barry via Python-list
> On 13 Nov 2023, at 17:21, Jacob Kruger via Python-list > wrote: > > Had a look at the following bit of introduction to using python and flet to > build cross-platform flutter-based apps using same python code, and, while it > seems to work alright if tell it to run as under GUI here on wi

Re: No module named _socket, on windows

2023-02-26 Thread 2QdxY4RzWzUUiLuE
On 2023-02-25 at 15:58:35 -0800, ofek shulberg wrote: > On Monday, January 4, 2010 at 9:19:21 PM UTC+2, Gabriel Genellina wrote: > > En Mon, 04 Jan 2010 14:24:22 -0300, louisJ escribi�: > > > I installed python 2.6 (from python.org) for windows XP, and then > > > Pylab. > > > When I type "import

Re: No module named _socket, on windows

2023-02-25 Thread ofek shulberg
On Monday, January 4, 2010 at 9:19:21 PM UTC+2, Gabriel Genellina wrote: > En Mon, 04 Jan 2010 14:24:22 -0300, louisJ escribi�: > > I installed python 2.6 (from python.org) for windows XP, and then > > Pylab. > > When I type "import pylab" in a python shell it shows the error: > > > > ImportError:

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 3:00 PM, Eryk Sun wrote: On 1/9/23, MRAB wrote: On Windows it's best to use pip via the Python Launcher: py -m pip show playsound Python's app distribution on the Microsoft Store doesn't include the py launcher, and we don't (but should) have a standalone app or desktop version

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 2:10 PM, MRAB wrote: On Windows it's best to use pip via the Python Launcher: py -m pip show playsound Sure - I just didn't want to complicate the post any more, though I did mention it in passing. py is definitely the best way. I wonder how many people know that py can launch

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Eryk Sun
On 1/9/23, MRAB wrote: > > On Windows it's best to use pip via the Python Launcher: > > py -m pip show playsound Python's app distribution on the Microsoft Store doesn't include the py launcher, and we don't (but should) have a standalone app or desktop version of the launcher. Unlike the desktop

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread MRAB
On 2023-01-09 17:11, Thomas Passin wrote: I wrote "the most likely reason is that it got installed by a different version of python than the one that used pip to install it." That's not quite what I meant to say. Better: "the most likely reason is that you are trying to import it using a d

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
I wrote "the most likely reason is that it got installed by a different version of python than the one that used pip to install it." That's not quite what I meant to say. Better: "the most likely reason is that you are trying to import it using a different version of python than the one th

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Mats Wichmann
On 1/9/23 08:30, Thomas Passin wrote: On 1/9/2023 9:40 AM, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on other packages Did the installation by pip succeed? if not, what was the error message? "It keeps sayin

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 9:40 AM, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on other packages Did the installation by pip succeed? if not, what was the error message? "It keeps saying ...". What keeps saying that (it's no

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread MRAB
On 2023-01-09 14:40, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on other packages What are you typing on the command line? Which operating system are you using? Please copy and post what you're typing (with

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Richard Damon
> On Jan 4, 2023, at 8:56 AM, c.bu...@posteo.jp wrote: > > Hello, > > first I have to say that in my current and fresh humble opinion the > often seen "--verbose" switch in command line applications should > affect only the messages given to the users. This means messages on > "stdout". That is

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Eryk Sun
On 1/4/23, c.bu...@posteo.jp wrote: > > often seen "--verbose" switch in command line applications should > affect only the messages given to the users. This means messages on > "stdout". That is what this question is about. Is this additional context information such as help and definitions? If

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Weatherby,Gerard
A couple options. The -vvv is more of Linux thing rather than Pythonic, to my way of thinking. import argparse parser = argparse.ArgumentParser() parser.add_argument('-v',action='store_true') parser.add_argument('-vv',action='store_true') parser.add_argument('-vvv',action='store_true') args = p

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Chris Angelico
On Thu, 5 Jan 2023 at 00:54, wrote: > > Hello, > > first I have to say that in my current and fresh humble opinion the > often seen "--verbose" switch in command line applications should > affect only the messages given to the users. This means messages on > "stdout". That is what this question is

Re: No shortcut Icon on Desktop

2022-04-18 Thread Eryk Sun
On 4/15/22, Grant Edwards wrote: > > The problem is that people run the installer, don't see a desktop > icon, and think nothing has been installed. Such people need to learn how to use the start menu, where all of Python's shortcuts are installed in a folder named "Python ". One can also press t

Re: No shortcut Icon on Desktop

2022-04-15 Thread Mirko via Python-list
Am 15.04.2022 um 18:53 schrieb Mats Wichmann: > On 4/15/22 08:59, Grant Edwards wrote: > >> Of course it's easy to add. But, we're talking about people who have >> no idea how to do that. They have no clue how to "navigate to the >> install directory". They don't even realize anything _was_ instal

Re: No shortcut Icon on Desktop

2022-04-15 Thread Grant Edwards
On 2022-04-15, Mats Wichmann wrote: > I'd add - not naming the installer something Windows' memory of recent > files retains as being Python itself - could be as simple as including > the word "setup" in the name. Oh yes, that's been suggested many, many times also. :) I always name all my inst

Re: No shortcut Icon on Desktop

2022-04-15 Thread Christian Gollwitzer
Am 15.04.22 um 02:49 schrieb Mats Wichmann: On 4/14/22 18:06, Grant Edwards wrote: On 2022-04-14, Richard Damon wrote: I think the issue is that the 'python' interpreter/compiler isn't the sort of program that makes sense to make a desktop icon for, as it is a command line utility. Yes, it

Re: No shortcut Icon on Desktop

2022-04-15 Thread Mats Wichmann
On 4/15/22 08:59, Grant Edwards wrote: > Of course it's easy to add. But, we're talking about people who have > no idea how to do that. They have no clue how to "navigate to the > install directory". They don't even realize anything _was_ installed. I dunno, it's a pretty WIndows-y thing, right-

Re: No shortcut Icon on Desktop

2022-04-15 Thread Grant Edwards
On 2022-04-15, Mats Wichmann wrote: > On 4/14/22 18:06, Grant Edwards wrote: >> On 2022-04-14, Richard Damon wrote: >> >>> I think the issue is that the 'python' interpreter/compiler isn't the >>> sort of program that makes sense to make a desktop icon for, as it is a >>> command line utility.

Re: No shortcut Icon on Desktop

2022-04-14 Thread Mats Wichmann
On 4/14/22 18:06, Grant Edwards wrote: > On 2022-04-14, Richard Damon wrote: > >> I think the issue is that the 'python' interpreter/compiler isn't the >> sort of program that makes sense to make a desktop icon for, as it is a >> command line utility. > > Yes, it is a command line utility. Why

Re: No shortcut Icon on Desktop

2022-04-14 Thread Grant Edwards
On 2022-04-14, Richard Damon wrote: > I think the issue is that the 'python' interpreter/compiler isn't the > sort of program that makes sense to make a desktop icon for, as it is a > command line utility. Yes, it is a command line utility. Why does that mean you shouldn't have a desktop short

Re: No shortcut Icon on Desktop

2022-04-14 Thread Mats Wichmann
On 4/14/22 17:08, Richard Damon wrote: > I think the issue is that the 'python' interpreter/compiler isn't the > sort of program that makes sense to make a desktop icon for, as it is a > command line utility. > > Perhaps making an icon for IDLE, if it has also been installed, but then > the issue

Re: No shortcut Icon on Desktop

2022-04-14 Thread Richard Damon
On 4/14/22 2:42 PM, Mirko via Python-list wrote: Am 13.04.2022 um 20:39 schrieb Dennis Lee Bieber: On Thu, 14 Apr 2022 03:38:11 +1000, Tim Deke declaimed the following: Dear Sir, I have successfully downloaded Python into my laptop but the shortcut icon is not appearing on the desktop. I am

Re: No shortcut Icon on Desktop

2022-04-14 Thread Grant Edwards
On 2022-04-14, Mirko via Python-list wrote: >> Python normally does not create "shortcut icon"s -- one downloads an > > The Python Windows installer *absolutely* should. Agreed. I'm not much of a Windows user, but I do maintain a few Windows applications with installers. They all create des

Re: No shortcut Icon on Desktop

2022-04-14 Thread Mirko via Python-list
Am 13.04.2022 um 20:39 schrieb Dennis Lee Bieber: > On Thu, 14 Apr 2022 03:38:11 +1000, Tim Deke declaimed > the following: > >> Dear Sir, >> >> I have successfully downloaded Python into my laptop but the shortcut icon >> is not appearing on the desktop. I am using Windows 10 with the PC >> spec

Re: No shortcut Icon on Desktop

2022-04-13 Thread Barry
> On 13 Apr 2022, at 19:46, Dennis Lee Bieber wrote: > > C:\Users\Wulfraed>rem "py launcher" (which I don't trust as it has been > known to pick a different Python at times > C:\Users\Wulfraed>py > Python ActivePython 3.8.2 (ActiveState Software Inc.) based on > on win32 > Type "help", "copyrig

Re: No shortcut Icon on Desktop

2022-04-13 Thread dn
On 14/04/2022 05.38, Tim Deke wrote: > Dear Sir, > > I have successfully downloaded Python into my laptop but the shortcut icon > is not appearing on the desktop. I am using Windows 10 with the PC > specifications as per snap shot attached below. Can you advise what to do? https://docs.python.org

Re: No shortcut Icon on Desktop

2022-04-13 Thread Dennis Lee Bieber
On Thu, 14 Apr 2022 03:38:11 +1000, Tim Deke declaimed the following: >Dear Sir, > >I have successfully downloaded Python into my laptop but the shortcut icon >is not appearing on the desktop. I am using Windows 10 with the PC >specifications as per snap shot attached below. Can you advise what t

Re: No right operator in tp_as_number?

2021-11-20 Thread MRAB
On 2021-11-20 17:45, Marco Sulla wrote: I checked the documentation: https://docs.python.org/3/c-api/typeobj.html#number-structs and it seems that, in the Python C API, the right operators do not exist. For example, there is nb_add, that in Python is __add__, but there's no nb_right_add, that in

Re: No module named 'gi' [SOLVED]

2020-04-13 Thread Jon Danniken
On 4/13/20 8:46 PM, Jon Danniken wrote: Hello all, I am coming up with this error when, after installing Dropbox, I try to run Dropbox on my machine (kubuntu 18.04): SNIP Well it looks like I solved this issue with $pip uninstall conda. Sometimes I just have to ask a question bef

Re: no explanation towards not installing my application//

2020-02-03 Thread Bob Gailer
On Feb 3, 2020 8:18 AM, "the python app i had downloaded is not opening!" < mbharathi1...@gmail.com> wrote: I'm assuming you're using Windows 10. Correct? You're telling us you downloaded the program installer. Did you run the installer? Where did it tell you it was putting the program? Exactly

Re: (no subject)

2020-01-06 Thread Rob Gaddi
On 1/4/20 2:29 PM, William Johnsson wrote: Hello! My name is William and im 14 years old and live in sweden. Im pretty new to programing in python and i need some help with code, (That’s why i’m here). But i couldn’t really find what i was searching for on the internet. I’m trying to write co

Re: No option available for saving files

2019-06-07 Thread Terry Reedy
On 6/7/2019 10:51 AM, Calvin Spealman wrote: The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but a

Re: No option available for saving files

2019-06-07 Thread Calvin Spealman
The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but anything will do at all. There is also a simple

Re: (no subject)

2019-05-31 Thread Alister via Python-list
On Wed, 29 May 2019 08:07:06 +0530, Sri Tharun wrote: > Why I am unable to install packages because you are doing it wrong -- https://mail.python.org/mailman/listinfo/python-list

Re: (no subject)

2019-04-19 Thread Luuk
On 19-4-2019 16:37, Tamara Berger wrote: Hi Python-List, What code can I use to break out of a program completely, and not just out of a loop? I wrote code with 3 conditions for saving for a downpayment. The first addresses cases that don't meet the minimum condition; i.e., enough money to save

Re: (no subject)

2019-04-19 Thread Luuk
On 19-4-2019 16:37, Tamara Berger wrote: Hi Python-List, What code can I use to break out of a program completely, and not just out of a loop? I wrote code with 3 conditions for saving for a downpayment. The first addresses cases that don't meet the minimum condition; i.e., enough money to save

Re: No connection

2018-12-16 Thread Terry Reedy
On 12/16/2018 9:40 AM, Vasilis Mytilinaios wrote: Hello, I'm trying to open the interactive shell but it doesn't let me. It says that IDLE's subprocess didn't make connection. Read the doc section on possible reasons. https://docs.python.org/3/library/idle.html#startup-failure -- Terry Jan

Re: No connection

2018-12-16 Thread Igor Korot
Hi, On Sun, Dec 16, 2018 at 12:00 PM Vasilis Mytilinaios wrote: > > Hello, > > I'm trying to open the interactive shell but it doesn't let me. It says > that IDLE's subprocess didn't make connection. I unistall and install > python again and still doesn't work. > I was using it properly until 2 d

Re: No pip for my Python 3.6.5!

2018-07-09 Thread Abdur-Rahmaan Janhangeer
according to all probabilities you have pip, you just need to add pip to path go to environment variables -> path then add ; Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Mon, 9 Jul 2018, 16:14 卢 嘉幸, wrote: > > > 发送自 Windows 10 版邮件

Re: (no subject)

2018-06-10 Thread Rick Johnson
sagar daya wrote: > Couldn't install any module from pip > Plz help??? As with most actions, an algorithm is required. (shocking, i know!) What methodology have you implemented thus far to achieve your goal of "installing modules from PIP"? Please enumerate the steps you chose to take, and then w

Re: (no subject)

2018-03-27 Thread Rick Johnson
On Tuesday, March 27, 2018 at 7:19:53 AM UTC-5, kevon harris wrote: > Unable to pull up IDLE after downloading Python 3.6.4 > > Sent from Mail for Windows 10 What OS? On Windows running Python2.X, IDLE is located @ '/Python2X/Lib/idlelib/idle.pyw' -- https://mail.python.org/mailman/listinfo/pyt

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread Terry Reedy
On 9/6/2017 12:30 PM, Chris Angelico wrote: On Thu, Sep 7, 2017 at 2:17 AM, MRAB wrote: On 2017-09-06 14:00, Chris Angelico wrote: I'm not 100% sure, but I think that having two different versions of CPython X.Y isn't supported on Windows. I have both 64-bit and 32-bit Python 3.6 installed

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread breamoreboy
On Wednesday, September 6, 2017 at 2:42:06 PM UTC+1, Andrej Viktorovich wrote: > Found that pythons have different paths. It might be related? Definitely :) > > 64 bit > > C:\Users\me\AppData\Local\Programs\Python\Python36-32 > C:\Users\me\AppData\Local\Programs\Python\Python36-32\DLLs > C:\Use

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread Chris Angelico
On Thu, Sep 7, 2017 at 2:17 AM, MRAB wrote: > On 2017-09-06 14:00, Chris Angelico wrote: >> >> On Wed, Sep 6, 2017 at 10:41 PM, Andrej Viktorovich >> wrote: >>> >>> Hello, >>> >>> I have 32Bit and 64Bit installations on my Windows 10 machine. I do >>> import importlib in both of them. >>> >>> 32b

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread MRAB
On 2017-09-06 14:00, Chris Angelico wrote: On Wed, Sep 6, 2017 at 10:41 PM, Andrej Viktorovich wrote: Hello, I have 32Bit and 64Bit installations on my Windows 10 machine. I do import importlib in both of them. 32bit works fine while 64bit prints error: import importlib Traceback (most re

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread Chris Angelico
On Wed, Sep 6, 2017 at 10:41 PM, Andrej Viktorovich wrote: > Hello, > > I have 32Bit and 64Bit installations on my Windows 10 machine. I do import > importlib in both of them. > > 32bit works fine while 64bit prints error: > import importlib > Traceback (most recent call last): > File "",

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread Andrej Viktorovich
Found that pythons have different paths. It might be related? 64 bit C:\Users\me\AppData\Local\Programs\Python\Python36-32 C:\Users\me\AppData\Local\Programs\Python\Python36-32\DLLs C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib C:\Program Files\Python36\python36.zip C:\Program Files\P

Re: No module named vtkCommonCorePython

2017-05-20 Thread Jason Friedman
> > I have a problem to finding file in Python path,Anybody knows how to solve > it? > > Unexpected error: > Traceback (most recent call last): > File > "/home/nurzat/Documents/vmtk-build/Install/bin/vmtklevelsetsegmentation", > line 20, in > from vmtk import pypeserver > File "/usr/loca

Re: No module named 'encodings' Python 3.6 on Windows 10 failure

2017-03-07 Thread MRAB
On 2017-03-08 01:24, schneid...@law.byu.edu wrote: Every attempt to make Python 3.6.0 or 3.6.1rc1 to run on Windows 10 has resulted in the error message shown below. I was running Python 3.5.2 successfully and wanted to upgrade. C:\Python36-32>python Fatal Python error: Py_Initialize: unabl

Re: No module named 'encodings' Python 3.6 on Windows 10 failure

2017-03-07 Thread eryk sun
On Wed, Mar 8, 2017 at 1:24 AM, wrote: > > Every attempt to make Python 3.6.0 or 3.6.1rc1 to run on Windows 10 > has resulted in the error message shown below. I was running Python > 3.5.2 successfully and wanted to upgrade. > > C:\Python36-32>python > Fatal Python error: Py_Initialize: unable t

Re: No registration confirmation at https://bugs.python.org/

2016-10-17 Thread Al Schapira
No spam or junk on either email client or server. On Sun, 2016-10-16 at 11:20 +1100, Steve D'Aprano wrote: > On Sun, 16 Oct 2016 07:09 am, Al Schapira wrote: > > > > > I have tried to register at   https://bugs.python.org/  over a > > period > > of many months, and I never receive the confirmati

Re: No registration confirmation at https://bugs.python.org/

2016-10-15 Thread Steve D'Aprano
On Sun, 16 Oct 2016 07:09 am, Al Schapira wrote: > I have tried to register at   https://bugs.python.org/  over a period > of many months, and I never receive the confirmation email to complete > the process.  Who can help with this?  Thanks. > --Al Have you checked your Junk Mail folder? Unfort

Re: No SQLite newsgroup, so I'll ask here about SQLite, python and MS Access

2016-05-05 Thread cl
There's a gmane 'newsgroup from a mailing list' for sqlite:- gmane.comp.db.sqlite.general It's quite active and helpful too. (Also 'announce' and others) -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: No SQLite newsgroup, so I'll ask here about SQLite, python and MS Access

2016-05-04 Thread DFS
On 5/4/2016 10:02 PM, Stephen Hansen wrote: On Wed, May 4, 2016, at 03:46 PM, DFS wrote: I can't find anything on the web. Have you tried: http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users If you really must access it over a newsgroup, you can use the Gmane mirror: h

Re: No SQLite newsgroup, so I'll ask here about SQLite, python and MS Access

2016-05-04 Thread Michael Selik
On Wed, May 4, 2016, 6:51 PM DFS wrote: > Both of the following python commands successfully create a SQLite3 > datafile which crashes Access 2003 immediately upon trying to open it > (via an ODBC linked table). > Have you tried using Access 2013? On the other hand, a SQLite3 file created in VB

Re: No SQLite newsgroup, so I'll ask here about SQLite, python and MS Access

2016-05-04 Thread Stephen Hansen
On Wed, May 4, 2016, at 03:46 PM, DFS wrote: > I can't find anything on the web. Have you tried: http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users If you really must access it over a newsgroup, you can use the Gmane mirror: http://gmane.org/info.php?group=gmane.comp.db.

Re: No request in module urllib ?

2015-09-03 Thread Mark Lawrence
On 04/09/2015 03:30, Chris Angelico wrote: On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre wrote: import urllib.request urllib.request.urlopen('http://example.org') Thanks, that works with 3.4.0. No with 3.2.3 Hmm, not sure why it wouldn't. According to the docs [1] it should be avail

Re: No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Le 04/09/2015 04:30, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre wrote: import urllib.request urllib.request.urlopen('http://example.org') Thanks, that works with 3.4.0. No with 3.2.3 Hmm, not sure why it wouldn't. According to the docs [1] it should be avai

Re: No request in module urllib ?

2015-09-03 Thread MRAB
On 2015-09-04 03:17, Vincent Vande Vyvre wrote: Le 04/09/2015 04:08, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre wrote: >> import urllib.request >> urllib.request.urlopen('http://example.org') >> > > Thanks, that works with 3.4.0. No with 3.2.3 Hmm, not sure why it wouldn't. According to the docs [1] it should be available. But I don't have a 3.2 anywhere

Re: No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Le 04/09/2015 04:08, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. import urllib urllib.request.urlopen('http://exam

Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: > Python 3.2.3 (default, Jun 18 2015, 21:46:42) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import urllib urllib.request.urlopen('http://example.org') > Traceback (most recent

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread rurpy--- via Python-list
On 08/17/2015 01:52 AM, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list > writes: >> So I eventually found the kivy docs on their website where they >> list prerequisite packages for installing kivy on ubuntu. I'll >> translate those to hopefull

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Rustom Mody
On Monday, August 17, 2015 at 10:35:48 AM UTC+5:30, rurpy wrote: > I hope someday Python gets a decent packaging/distribution story. You are in august company | The final question was about what he (Guido) hates in Python. "Anything to do | with package distribution", he answered immediately. The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list write s: >So I eventually found the kivy docs on their website where they >list prerequisite packages for installing kivy on ubuntu. I'll >translate those to hopefully the equivalent fedora package names, >install them, re

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Dave Farrance
shiva upreti wrote: >Hi >I am new to linux. I tried various things in attempt to install kivy. I >installed python 2.7.10 Just to make clear what others have said -- replacing Ubuntu 14.04's system Python 2.7.6 is a bad idea and will break stuff, so if you really must have the latest version of

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 10:14:29 PM UTC-6, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list > writes: > >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > >>[...] > >> use pip (maybe inside a virtualenv). It'll chug for

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list write s: >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti >> wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > i

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti > wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 12:51 PM, Rustom Mody wrote: > On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > installed python 2.7.10 (I thin

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Rustom Mody
On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). Then

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > I am new to linux. I tried various things in attempt to install kivy. I > installed python 2.7.10 (I think python3 was already installed in ubuntu > 14.04). Then i downloaded kivy from > https://pypi.python.org/packages/source/K/Kivy/Kivy-1

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 12:16:53 -0700, shiva upreti writes: >I am still getting the error:"ImportError: No module named kivy". > >Any help will be highly appreciated. >Thanks. The preferred way to install kivy with ubuntu is to follow the instructions here: http://kivy.org/docs/installa

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread MRAB
On 2015-08-16 20:16, shiva upreti wrote: Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from https://pypi.python.org/packages/source/K/Kivy/Kivy-1.9.0.tar.gz, extr

Re: No Content-Length header, nor length property

2015-07-08 Thread zljubisic
> Ah - looking at the response headers, they include "Transfer-Encoding > chunked" - I don't think urlopen handles chunked responses by default, > though I could be wrong, I don't have time to check the docs right now. > > The requests library (https://pypi.python.org/pypi/requests) seems to han

Re: No Content-Length header, nor length property

2015-07-08 Thread Jon Ribbens
On 2015-07-08, zljubi...@gmail.com wrote: > Why I can't get the size of this particular file? > On other servers, the same procedure would return file size in > bytes, but not for this file? > > Does it depend on server itself, or there is a way to get remote > file size before downloading? Yes,

Re: No Content-Length header, nor length property

2015-07-07 Thread Kev Dwyer
zljubi...@gmail.com wrote: > > >> Hello, >> >> urlopen returns an HttpResponse >> object(https://docs.python.org/3/library/http.client.html#httpresponse-objects). >> You need to call read() on the return value to get the page content, or >> you could consider the getheader method to check for

Re: No Content-Length header, nor length property

2015-07-07 Thread zljubisic
> Hello, > > urlopen returns an HttpResponse > object(https://docs.python.org/3/library/http.client.html#httpresponse-objects). > You need to call read() on the return value to get the page > content, or you could consider the getheader method to check for a Content- > Length header. > > Hop

Re: No Content-Length header, nor length property

2015-07-07 Thread Kev Dwyer
zljubi...@gmail.com wrote: > Hi, > > if I put the link in the browser, I will be offered to save the file to > the local disk. > > If I execute these few lines of code, I will get None: > > import urllib.request > > url = 'http://radio.hrt.hr/prvi-program/aod/download/118467/' > site = urllib.

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 12:54 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof > writes: >> On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: >> >>> Do you have Jython 2.7 released a few weeks ago? >> >> Yes, but I was dumb enough to start the ol

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof writes: >On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > >> Do you have Jython 2.7 released a few weeks ago? > >Yes, but I was dumb enough to start the old version when I did this. >:-( > >There is still one problem: >=

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version when I did this. :-( There is still one problem: == >>> from __futur

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
Do you have Jython 2.7 released a few weeks ago? Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 09:56 CEST, Cecil Westerhof wrote: > When I execute in the latest Jython: > from __future__ import print_function > I get: > Traceback (innermost last): > (no code object) at line 0 > File "", line 1 > SyntaxError: future feature print_function is not defined > > This is not

Re: No ttk in 2.7

2015-05-21 Thread Sturla Molden
Zachary Ware wrote: > The way I would do it is as follows: > >try: >import tkinter as tk >from tkinter import ttk >except ImportError: >import Tkinter as tk >import ttk > > If I may suggest, just write it in Python3 first, then when it does > what you wan

Re: No ttk in 2.7

2015-05-20 Thread Mark Lawrence
On 20/05/2015 19:52, Cecil Westerhof wrote: Op Wednesday 20 May 2015 18:47 CEST schreef Ned Batchelder: On Wednesday, May 20, 2015 at 12:43:29 PM UTC-4, Ned Batchelder wrote: On Wednesday, May 20, 2015 at 12:35:40 PM UTC-4, Cecil Westerhof wrote: I want to start playing with tkinter, but ther

Re: No ttk in 2.7

2015-05-20 Thread Ian Kelly
On Wed, May 20, 2015 at 12:54 PM, Cecil Westerhof wrote: > Op Wednesday 20 May 2015 19:03 CEST schreef Zachary Ware: >> try: >> import tkinter as tk >> from tkinter import ttk >> except ImportError: >> import Tkinter as tk >> import ttk > > When there goes something wrong with: > from tkinter

Re: No ttk in 2.7

2015-05-20 Thread Cecil Westerhof
Op Wednesday 20 May 2015 18:47 CEST schreef Ned Batchelder: > On Wednesday, May 20, 2015 at 12:43:29 PM UTC-4, Ned Batchelder wrote: >> On Wednesday, May 20, 2015 at 12:35:40 PM UTC-4, Cecil Westerhof wrote: >>> I want to start playing with tkinter, but there are some >>> differences between 2 and

Re: No ttk in 2.7

2015-05-20 Thread Cecil Westerhof
Op Wednesday 20 May 2015 18:43 CEST schreef Ned Batchelder: > On Wednesday, May 20, 2015 at 12:35:40 PM UTC-4, Cecil Westerhof wrote: >> I want to start playing with tkinter, but there are some >> differences between 2 and 3. For this I use at the moment the >> following code: import sys >> >> if

Re: No ttk in 2.7

2015-05-20 Thread Cecil Westerhof
Op Wednesday 20 May 2015 19:03 CEST schreef Zachary Ware: > On Wed, May 20, 2015 at 11:01 AM, Cecil Westerhof wrote: >> >> I want to start playing with tkinter, but there are some >> differences between 2 and 3. For this I use at the moment the >> following code: import sys >> >> if sys.version_i

Re: No ttk in 2.7

2015-05-20 Thread Zachary Ware
On Wed, May 20, 2015 at 11:01 AM, Cecil Westerhof wrote: > > I want to start playing with tkinter, but there are some differences > between 2 and 3. For this I use at the moment the following code: > import sys > > if sys.version_info[0] < 3: > import Tkinter as tk > import

Re: No ttk in 2.7

2015-05-20 Thread Ned Batchelder
On Wednesday, May 20, 2015 at 12:43:29 PM UTC-4, Ned Batchelder wrote: > On Wednesday, May 20, 2015 at 12:35:40 PM UTC-4, Cecil Westerhof wrote: > > I want to start playing with tkinter, but there are some differences > > between 2 and 3. For this I use at the moment the following code: > > imp

  1   2   3   4   5   6   7   8   >