Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread o1bigtenor via Python-list
On Tue, Aug 6, 2024 at 10:53 AM Bill Deegan wrote: > I’m not looking through all the packages you have installed > > (Ctrl-F is your friend - - - ) > What version of python is installed on your system? > > There are actually 3 versions installed - - - which is why the whole list was posted. You

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread Bill Deegan via Python-list
I’m not looking through all the packages you have installed What version of python is installed on your system? On Tue, Aug 6, 2024 at 5:24 AM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan > wrote: > >> why reply to me instead of to the list? >> It's generally considered

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread o1bigtenor via Python-list
On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan wrote: > why reply to me instead of to the list? > It's generally considered bad form to do so. > Got it - - - except this list wants only reply all the next one wants only reply and keeping straight which is which isn't always happening. I did apologi

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
why reply to me instead of to the list? It's generally considered bad form to do so. Do you have any python 3 installed on your system? Or python 2.7? If not, can you install such via system package? -Bill On Mon, Aug 5, 2024 at 6:06 PM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 5:28 PM

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
Did Mats suggestion of: python3.13 -m venv new_venv $ new_venv/bin/python --version Python 3.13.0b4 $ source new_venv/bin/activate Not work? That should work on any system, with any system installl python. It's not trying to modify the system installed python in anyway... If not, please paste the

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 15:17, o1bigtenor via Python-list wrote: That's something like pyenv install 3.12.4 $ pyenv install 3.12.4 bash: pyenv: command not found pyenv is not a 'global' package there is a mountain of /root/.pyenv files though there is also quite a number of /root/.pyenv/plugins/pyen

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
On Mon, Aug 5, 2024 at 3:56 PM Mats Wichmann wrote: > > > On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann > > wrote: > > > > On 8/5/24 06:48, o1bigtenor via Python-list wrote: > > > On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < > > > python-li

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
On Mon, Aug 5, 2024 at 3:55 PM Bill Deegan wrote: > Your approach is wrong. > You don't build python from source using pip. > > You don't install new versions of python into a venv either. > > Have you read the following? > https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html > > Th

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 14:39, o1bigtenor wrote: Matt - if you would rather that you were not included in the address list - - please advise. On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann > wrote: On 8/5/24 06:48, o1bigtenor via Python-list wrote: > On Sun, Aug 4, 2024 at 8

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
Your approach is wrong. You don't build python from source using pip. You don't install new versions of python into a venv either. Have you read the following? https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html That seems to have instructions for what you want to do.. -Bill O

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
Matt - if you would rather that you were not included in the address list - - please advise. On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann wrote: > On 8/5/24 06:48, o1bigtenor via Python-list wrote: > > On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < > > python-list@python.org> wro

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 06:48, o1bigtenor via Python-list wrote: On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote: On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do I install a diff

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote: > On 8/3/24 20:03, o1bigtenor via Python-list wrote: > > > My question was, is and will be (and the doc absolutely doesn't cover it) > > how do I install a different version in the venv so that python 3.1

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
On Sun, Aug 4, 2024 at 4:24 AM Peter J. Holzer via Python-list < python-list@python.org> wrote: > On 2024-08-03 15:17:11 -0500, o1bigtenor via Python-list wrote: > > One of the tools I need to be able to use is esptools - - well in the > > devuan world you need to run that on either Devaun 3 or 5

Re: Help needed - - running into issues with python and its tools

2024-08-04 Thread Mats Wichmann via Python-list
On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do I install a different version in the venv so that python 3.11.x on the system is not discombobulated by the python 3.12.x in the venv. That python 3.12 would let me

Re: Help needed - - running into issues with python and its tools

2024-08-04 Thread Peter J. Holzer via Python-list
On 2024-08-03 15:17:11 -0500, o1bigtenor via Python-list wrote: > One of the tools I need to be able to use is esptools - - well in the > devuan world you need to run that on either Devaun 3 or 5 - - - its just > not available on devuan 4. Couldn't you just upgrade to Devuan 5, then? > Tried in

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
On Sat, Aug 3, 2024 at 7:11 PM dn via Python-list wrote: > On 4/08/24 09:34, o1bigtenor via Python-list wrote: > > On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list < > python-list@python.org> > > wrote: > > > >> On 4/08/24 08:17, o1bigtenor via Python-list wrote: > >>> Greetings > >>> > >>> Look

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
On Sat, Aug 3, 2024 at 6:20 PM Cameron Simpson via Python-list < python-list@python.org> wrote: > On 03Aug2024 16:34, o1bigtenor wrote: > >So please - - - how do I set up a venv so that I can install and run > >python > >3.12 > >(and other needed programs related to 3.12) inside? > > Maybe this g

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread dn via Python-list
On 4/08/24 09:34, o1bigtenor via Python-list wrote: On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list wrote: On 4/08/24 08:17, o1bigtenor via Python-list wrote: Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough hours

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread Cameron Simpson via Python-list
On 03Aug2024 16:34, o1bigtenor wrote: So please - - - how do I set up a venv so that I can install and run python 3.12 (and other needed programs related to 3.12) inside? Maybe this github comment will help with this: https://github.com/orgs/micropython/discussions/10255#discussioncomment-444

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list wrote: > On 4/08/24 08:17, o1bigtenor via Python-list wrote: > > Greetings > > > > Looking at ESP8266 and wanting to program it using micropython (really > > don't want to have to learn C++ (not enough hours in the day as it > is!!)). > > > > One

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread dn via Python-list
On 4/08/24 08:17, o1bigtenor via Python-list wrote: Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough hours in the day as it is!!)). One of the tools I need to be able to use is esptools - - well in the devuan world you

Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough hours in the day as it is!!)). One of the tools I need to be able to use is esptools - - well in the devuan world you need to run that on either Devaun 3 or 5 - - - its ju

Re: Help Needed With a Python Gaming Module

2024-04-03 Thread Thomas Passin via Python-list
On 4/3/2024 3:06 PM, WordWeaver Evangelist via Python-list wrote: Hello everyone! It has been a l-o-n-g time -- nine years in fact --since I last participated on this mailing list. [snip] 3. You are very familiar with the Jython 2 environment, which I am told is based on Python 2 and NOT Pyt

Help Needed With a Python Gaming Module

2024-04-03 Thread WordWeaver Evangelist via Python-list
Hello everyone! It has been a l-o-n-g time -- nine years in fact --since I last participated on this mailing list. At that time, I was trying to write a door/external for my PC-ANSI, Macintosh-based BBS. Thanks to some of the folks here, I got it done although I eventually lost the module

HELP NEEDED application error 0xc000005

2019-09-25 Thread arshad ali via Python-list
Note: Forwarded message attached -- Original Message -- From: "arshad ali"arsh...@rediffmail.com To: python-list@python.org Subject: HELP NEEDED application error 0xc05--- Begin Message --- Respected sir, In my laptop with windows 7 ultimate 64 bit, when py

Re: Help needed urgently for running some code!!!!

2019-09-03 Thread Joel Goldstick
On Tue, Sep 3, 2019 at 1:38 PM Dennis Lee Bieber wrote: > > On Mon, 2 Sep 2019 08:05:14 -0700 (PDT), Spencer Du > declaimed the following: > > >Hi > > > >I want to execute > > > >"from devicesEmbedded import *": in GUI.py after all code in GUI.py is run. > >Also how do I make the devicesEmbedded

Re: Help needed to run some code!!!!

2019-09-03 Thread Calvin Spealman
It sounds like you have module-level behavior you don't want to happen during normal import-time. If that is the case, move that behavior into a class or function you can invoke at the correct time, rather than trying to do your imports at strange times. On Mon, Sep 2, 2019 at 11:50 AM Spencer Du

Help needed to run some code!!!!

2019-09-02 Thread Spencer Du
Hi How can I execute "from devicesEmbedded import *" after this: "print("Device added to list")" in GUI.py because currently if I have the import added at the top of GUI.py file it always executes first before the GUI.py file is executed. I want the devicesEmbedded.py to execute after GUI.py ha

Help needed urgently for running some code!!!!

2019-09-02 Thread Spencer Du
Hi I want to execute "from devicesEmbedded import *": in GUI.py after all code in GUI.py is run. Also how do I make the devicesEmbedded.py reload and run when a txt file is created in the name of "list_of_devices.txt" in the GUI.py python program. GUI.py import logging from datetime import

Re: Python help needed

2019-08-08 Thread Dan Sommers
On 8/8/19 12:26 PM, Paolo G. Cantore wrote: > I think the special case treatment could be avoided. > > First: Join all items with ' and ' > Second: Replace all ' and ' with ', ' except the last That works great, until one of the elements of the original list is "spam and eggs": >>> spam = [

Re: Python help needed

2019-08-08 Thread Paolo G. Cantore
Am 08.08.19 um 01:18 schrieb MRAB: On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous sp

Re: Python help needed

2019-08-07 Thread MRAB
On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would return

Python help needed

2019-08-07 Thread Kuyateh Yankz
#trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would return 'apples, bananas, tofu, and cats'. But y

Re: Help Needed : script weird result.

2018-09-01 Thread mohan4h
On Sunday, September 2, 2018 at 1:12:17 AM UTC+8, moh...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given array of > numbers. The script works fine for various combination of inputs but fails in > a weird way for a particular set of inputs, can anyo

Re: Help Needed : script weird result.

2018-09-01 Thread Peter Pearson
On Sat, 1 Sep 2018 10:11:59 -0700 (PDT), moha...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given > array of numbers. The script works fine for various combination of > inputs but fails in a weird way for a particular set of inputs, can > anyone point

Re: Help Needed : script weird result.

2018-09-01 Thread Dan Sommers
On 9/1/18 1:11 PM, moha...@gmail.com wrote: All, I m trying to run this small script to find the lowest of the given array of numbers. The script works fine for various combination of inputs but fails in a weird way for a particular set of inputs, can anyone point the mistake in the script an

Re: Help Needed : script weird result.

2018-09-01 Thread Joel Goldstick
On Sat, Sep 1, 2018 at 1:26 PM duncan smith wrote: > > On 01/09/18 18:11, moha...@gmail.com wrote: > > All, > > > > I m trying to run this small script to find the lowest of the given array > > of numbers. The script works fine for various combination of inputs but > > fails in a weird way for a

Re: Help Needed : script weird result.

2018-09-01 Thread duncan smith
On 01/09/18 18:11, moha...@gmail.com wrote: > All, > > I m trying to run this small script to find the lowest of the given array of > numbers. The script works fine for various combination of inputs but fails in > a weird way for a particular set of inputs, can anyone point the mistake in > the

Help Needed : script weird result.

2018-09-01 Thread mohan4h
All, I m trying to run this small script to find the lowest of the given array of numbers. The script works fine for various combination of inputs but fails in a weird way for a particular set of inputs, can anyone point the mistake in the script and the behavior. Script x = input ("Enter the

Help needed in mapping Magento 1.x/PHP data structure into Python equivalent for suds

2016-05-31 Thread Parul M
Hello All, I need assistance in calling Magento 1.x SOAP API's using Python suds library. How to map the *PHP data structure array(array(k1=>v1, k2=>v2,.)) in terms of python suds*??? The exposed SOAP API syntax for creating a new customer in magento: ult = $client->call($session, 'customer.

Re: Help needed with compiling python

2015-11-26 Thread Kev Dwyer
Cecil Westerhof wrote: > On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > >> On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: >> >>> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof write

Re: Help needed with compiling python

2015-11-26 Thread Zachary Ware
On Thu, Nov 26, 2015 at 3:39 PM, Cecil Westerhof wrote: > On Thursday 26 Nov 2015 12:07 CET, Dave Farrance wrote: >> zypper in -f >> >> So you'll want to try package names like "python" and "python2.7". > > Sadly that also only installs only libraries and no applications. Try "python-base". (Se

Re: Help needed with compiling python

2015-11-26 Thread Cecil Westerhof
On Thursday 26 Nov 2015 12:07 CET, Dave Farrance wrote: > Cecil Westerhof wrote: > >> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> >>> Your Suse system probably wants to use python for something. If >>> your system python is damaged, you badly need to fix that, using >>> the sys

Re: Help needed with compiling python

2015-11-26 Thread Cecil Westerhof
On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: > >> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >> >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof >>> writes: My system python was

Re: Help needed with compiling python

2015-11-26 Thread Dave Farrance
Cecil Westerhof wrote: >On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >> >> Your Suse system probably wants to use python for something. If your >> system python is damaged, you badly need to fix that, using the >> system package managers tools, before Suse does some sort of update >

Re: Help needed with compiling python

2015-11-26 Thread Steven D'Aprano
On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: > On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: > >> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof >> writes: >>> >>> My system python was all-ready damaged: that is why I wanted to >>> build myself. >> >>

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: > In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof > writes: >> >> My system python was all-ready damaged: that is why I wanted to >> build myself. > > Your Suse system probably wants to use python for something. If your >

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 23:39 CET, Zachary Ware wrote: > On Wed, Nov 25, 2015 at 3:52 PM, Cecil Westerhof wrote: >> My system python was all-ready damaged: that is why I wanted to >> build myself. > > Then you should try to repair the system Python install via the > system package manager. It's

Re: Help needed with compiling python

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof writes: > >My system python was all-ready damaged: that is why I wanted to build >myself. Your Suse system probably wants to use python for something. If your system python is damaged, you badly need to fix that, using the system p

Re: Help needed with compiling python

2015-11-25 Thread Zachary Ware
On Wed, Nov 25, 2015 at 3:52 PM, Cecil Westerhof wrote: > My system python was all-ready damaged: that is why I wanted to build > myself. Then you should try to repair the system Python install via the system package manager. It's not worth the hassle to try to replace it; it almost certainly wo

Re: Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
On Wednesday 25 Nov 2015 21:49 CET, Zachary Ware wrote: > On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof wrote: >> I wanted to install python myself. I started with 2.7.10. If that >> works I also will install 3.5.0. >> >> I did: >> ./configure --prefix=/usr >> make >> make altinstall >> >> I h

Re: Help needed with compiling python

2015-11-25 Thread Zachary Ware
On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof wrote: > I wanted to install python myself. I started with 2.7.10. If that > works I also will install 3.5.0. > > I did: > ./configure --prefix=/usr > make > make altinstall > > I have: > /usr/bin/python2.7 > > But when I execute thi

Help needed with compiling python

2015-11-25 Thread Cecil Westerhof
I wanted to install python myself. I started with 2.7.10. If that works I also will install 3.5.0. I did: ./configure --prefix=/usr make make altinstall I have: /usr/bin/python2.7 But when I execute this, I get: Could not find platform dependent libraries Consider settin

Re: Help needed

2014-11-30 Thread Denis McMahon
On Sat, 29 Nov 2014 11:35:18 -0800, Gautam R Bharadwaj wrote: > Here is the code in python, this code arranges the alphabets in > descending order and now I want to encode each alphabet with 0 and next > alphabet with 1, then 00,01,10,11,000,001 and so on. Please help me with > that. > >

Help needed

2014-11-29 Thread Gautam R Bharadwaj
Here is the code in python, this code arranges the alphabets in descending order and now I want to encode each alphabet with 0 and next alphabet with 1, then 00,01,10,11,000,001 and so on. Please help me with that. // //CODE

Re: Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-23 Thread Rustom Mody
On Sunday, March 23, 2014 6:37:11 PM UTC+5:30, Jens Thoms Toerring wrote: > Simon Hardy-Francis wrote: > > Hi Python fans, I just released my first open source project ever called > > SharedHashFile [1]. It's a shared memory hash table written in C. Some guy > > on Quora asked [2] whether there's

Re: Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-23 Thread Jens Thoms Toerring
Simon Hardy-Francis wrote: > Hi Python fans, I just released my first open source project ever called > SharedHashFile [1]. It's a shared memory hash table written in C. Some guy > on Quora asked [2] whether there's an extension library for Python coming > out. I would like to do one but I know li

Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-22 Thread Simon Hardy-Francis
Hi Python fans, I just released my first open source project ever called SharedHashFile [1]. It's a shared memory hash table written in C. Some guy on Quora asked [2] whether there's an extension library for Python coming out. I would like to do one but I know little about Python. I was wonderin

Re: Anki add-on - Help needed

2013-11-06 Thread Joel Goldstick
On Wed, Nov 6, 2013 at 9:17 AM, SH wrote: > Is anybody here able to help me finish off an Anki add-on? If you're not > familiar with it, Anki (http://ankisrs.net/) is an open source, cross > platform flashcard learning program, in PyQT. It's extensible, with add- > ons. > > Thing is, I'm not a pro

Anki add-on - Help needed

2013-11-06 Thread SH
Is anybody here able to help me finish off an Anki add-on? If you're not familiar with it, Anki (http://ankisrs.net/) is an open source, cross platform flashcard learning program, in PyQT. It's extensible, with add- ons. Thing is, I'm not a programmer, but I've managed to make my own add-on by try

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, bingefel...@gmail.com wrote: > Hi folks, > > I'm trying to run a program called Nicotine+ on my Mac which is running > 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have > all of these installed via Macports (please see here - > http://pastebin.c

pyGTK Help Needed Please

2013-09-20 Thread bingefeller
Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here - http://pastebin.com/nwmrpp2Y ) When I try to run Nicotine+ I get this message: '/

Re: help needed

2013-04-09 Thread leonardo
thanks i did it! Il giorno 08/apr/2013, alle ore 13:56, rusi ha scritto: > On Apr 8, 4:41 pm, Dave Angel wrote: > >> Go back to the previous message and you'll see Adam tells you exactly >> what to type at the terminal. But to be more literal: >> >> python ex13.py first 2nd 3rd > > > fo

Re: help needed

2013-04-08 Thread rusi
On Apr 8, 4:41 pm, Dave Angel wrote: > Go back to the previous message and you'll see Adam tells you exactly > what to type at the terminal.  But to be more literal: > > python ex13.py  first 2nd 3rd followed by RET (also called ENTER) key -- http://mail.python.org/mailman/listinfo/python-list

Re: help needed

2013-04-08 Thread Dave Angel
On 04/08/2013 07:24 AM, leonardo wrote: thanks adam, but it is not clear to me yet. if i open the terminal how do i work on it? what should i type in? Please don't top-post. It kills off the context. Go back to the previous message and you'll see Adam tells you exactly what to type at the t

Re: help needed

2013-04-08 Thread leonardo
thanks adam, but it is not clear to me yet. if i open the terminal how do i work on it? what should i type in? thanks Il giorno 08/apr/2013, alle ore 11:25, Adam Mesha ha scritto: > On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi wrote: > then i get this error: > > Traceback (most recent ca

Re: help needed

2013-04-08 Thread Chris Angelico
On Mon, Apr 8, 2013 at 7:29 PM, leonardo wrote: > thanks barrett, but i am using a mac.. Open up Terminal - that'll give you a window with a bash prompt. Proceed from there; it's the same as the default shell on many Linuxes. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: help needed

2013-04-08 Thread leonardo
thanks barrett, but i am using a mac.. Il 08/04/2013 11.15, Barrett Lewis ha scritto: Do you happen to be on windows? Because if you are then you need to edit the registry. If you are on windows let me know and I will walk you through the fix, but if not then it would be a waste of time for

Re: help needed

2013-04-08 Thread Adam Mesha
On Mon, Apr 8, 2013 at 11:01 AM, leonardo selmi wrote: > then i get this error: > > Traceback (most recent call last): > File "/Users/leonardo/Documents/ex13.py", line 3, in > script, first, second, third = argv > ValueError: need more than 1 value to unpack > You didn't provide any argum

Re: help needed

2013-04-08 Thread Barrett Lewis
Do you happen to be on windows? Because if you are then you need to edit the registry. If you are on windows let me know and I will walk you through the fix, but if not then it would be a waste of time for me to explain it. -- http://mail.python.org/mailman/listinfo/python-list

help needed

2013-04-08 Thread leonardo selmi
hello all, i have typed the following program from the book "learn python the hard way": from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "Your second variable is:", second print "Your third variable is:"

Re: Help needed installing easy_install and lxml2

2012-08-16 Thread Ian
On 16/08/2012 08:01, Stefan Behnel wrote: http://lxml.de/FAQ.html#where-are-the-binary-builds Stefan Hi Stefan, Thanks Stefan, everything is working fine now. Regards Ian -- http://mail.python.org/mailman/listinfo/python-list

Re: Help needed installing easy_install and lxml2

2012-08-16 Thread Stefan Behnel
Ian, 15.08.2012 21:39: > On a reasonably fresh (3 day old) install of 64 bit windows 7, I have > installed the 64 bit Python 2.7.3 from http://www.python.org/download/ > > Then I installed the 64 bit version of easy_install using > http://pypi.python.org/pypi/setuptools > > And then install lxml

Help needed installing easy_install and lxml2

2012-08-15 Thread Ian
Hi, On a reasonably fresh (3 day old) install of 64 bit windows 7, I have installed the 64 bit Python 2.7.3 from http://www.python.org/download/ Then I installed the 64 bit version of easy_install using http://pypi.python.org/pypi/setuptools And then install lxml 2.3.5, for which I use the

Re: help needed with subprocess, pipes and parameters

2012-07-17 Thread John Pote
nuffi, Have you tried running your piped commands c:\Programs\bob\bob.exe -x -y "C:\text\path\to some\file.txt" | c:\Programs\kate\kate.exe -A 2 --dc "Print Media Is Dead" --da "Author" --dt "Title" --hf "Times" --bb "14" --aa "" --font "Ariel" - "C:\rtf\path\to some\file.rtf" in a single i

Re: help needed with subprocess, pipes and parameters

2012-07-14 Thread Chris Rebert
On Friday, July 13, 2012, nuffi wrote: > > If I copy and paste the following command into a command window, it does > what I need. > > c:\Programs\bob\bob.exe -x -y "C:\text\path\to some\file.txt" | > c:\Programs\kate\kate.exe -A 2 --dc "Print Media Is Dead" --da "Author" > --dt "Title" --hf "Ti

help needed with subprocess, pipes and parameters

2012-07-13 Thread nuffi
If I copy and paste the following command into a command window, it does what I need. c:\Programs\bob\bob.exe -x -y "C:\text\path\to some\file.txt" | c:\Programs\kate\kate.exe -A 2 --dc "Print Media Is Dead" --da "Author" --dt "Title" --hf "Times" --bb "14" --aa "" --font "Ariel" - "C:\rtf

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:33 pm, Alain Ketterlin wrote: > richard writes: > >> > An instance of TestArray > >> >  a=a > >> >  b=b > >> >  c=c > >> >  List of 2 A elements: > >> >   Instance of A element > >> >    a=1 > >> >    b=2 > >> >    c=3 > >> >   Instance of A element > >> >    d=1 > >> >    e=2 > >> >

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard writes: >> > An instance of TestArray >> >  a=a >> >  b=b >> >  c=c >> >  List of 2 A elements: >> >   Instance of A element >> >    a=1 >> >    b=2 >> >    c=3 >> >   Instance of A element >> >    d=1 >> >    e=2 >> >    f=3 >> >  List of 1 B elements >> >   Instance of B element >> >  

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:21 pm, richard wrote: > On Jun 5, 9:40 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > [I'm leaving the data in the message in case anybody has troubles going > > up-thread.] > > > > Hi guys still struggling to get the code that was posted to me on this > >

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this > > forum to work in my favour and get the output in t

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this > > forum to work in my favour and get the output in t

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] > Hi guys still struggling to get the code that was posted to me on this > forum to work in my favour and get the output in the format shown > above. This is what I have so far. Any help will be

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 8:50 pm, Eelco wrote: > > thank you both for your replies. Unfortunately it is a pre-existing > > file format imposed by an external system that I can't > > change. Thank you for the code snippet. > > Hi Richard, > > Despite the fact that it is a preexisting format, it is very close > in

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 4, 3:20 pm, richard wrote: > On Jun 4, 3:14 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > Hi guys i am having a bit of dificulty finding the best approach / > > > solution to parsing a file into a list of objects / nested objects any > > > help would be greatly

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Eelco
> thank you both for your replies. Unfortunately it is a pre-existing > file format imposed by an external system that I can't > change. Thank you for the code snippet. Hi Richard, Despite the fact that it is a preexisting format, it is very close indeed to valid YAML code. Writing your own whit

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread richard
On Jun 4, 3:14 pm, Alain Ketterlin wrote: > richard writes: > > Hi guys i am having a bit of dificulty finding the best approach / > > solution to parsing a file into a list of objects / nested objects any > > help would be greatly appreciated. > > > #file format to parse .txt > > [code] > > An i

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Alain Ketterlin
richard writes: > Hi guys i am having a bit of dificulty finding the best approach / > solution to parsing a file into a list of objects / nested objects any > help would be greatly appreciated. > > #file format to parse .txt > [code] > An instance of TestArray > a=a > b=b > c=c > List of 2 A

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Roy Smith
In article <6b296278-fd32-45fb-b5c7-6c0fe5ce4...@q2g2000vbv.googlegroups.com>, richard wrote: > Hi guys i am having a bit of dificulty finding the best approach / > solution to parsing a file into a list of objects / nested objects any > help would be greatly appreciated. The first question is

Help needed with nested parsing of file into objects

2012-06-04 Thread richard
Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file format to parse .txt [code] An instance of TestArray a=a b=b c=c List of 2 A elements: Instance of A element a

Re: help needed to understand an error message.

2012-03-30 Thread J. Cliff Dyer
So the problem is that python doesn't know what you're trying to do. It doesn't know that you meant to say "print." When the parser is looking at the word Print, it assumes you are referencing an object named Print, which is completely legal. It's only once you've created the next token, a strin

RE: help needed to understand an error message.

2012-03-26 Thread Prasad, Ramit
>> I feel the error is in Capital P in print . >> However the error indicated with "*^*" >> hints at quote at the end of the line. > > Anyway, the hint indicates the last quote because this is the location > where the python interpreter realizes it won't be able to execute the > code. You should

Re: help needed to understand an error message.

2012-03-26 Thread Jean-Michel Pichavant
Aloke Ghosh wrote: Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *Print"I like typing this."* and got the following error message: *In [2]: Print"I like typing t

help needed to understand an error message.

2012-03-26 Thread Aloke Ghosh
Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *Print"I like typing this."* and got the following error message: *In [2]: Print"I like typing this."* *-

Re: Help needed to understand the error message

2012-03-23 Thread MRAB
On 24/03/2012 03:37, Aloke Ghosh wrote: Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *Print"I like typing this."* and got the following error message: *In [2]: Prin

Help needed to understand the error message

2012-03-23 Thread Aloke Ghosh
Hi, I am learning Python and do not have programming experience. I was following an exercise from http://learnpythonthehardway.org/book/ex2.html and made a mistake in entry : *Print"I like typing this."* and got the following error message: *In [2]: Print"I like typing this."* *-

RE: Help needed: dynamically pull data from different levels of a dict

2012-03-01 Thread Peter Rubenstein
Thanks, Chris. That's the algorithm I was looking for. And I will be converting most of this data to objects. Thanks again. -Original Message- From: Chris Rebert [mailto:c...@rebertia.com] Sent: Wednesday, February 29, 2012 11:44 PM Subject: Re: Help needed: dynamically pull

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Terry Reedy
On 2/29/2012 11:04 PM, Peter Rubenstein wrote: I'd appreciate a bit of help on this problem. I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } } I'

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Chris Rebert
On Wed, Feb 29, 2012 at 7:56 PM, Peter Rubenstein wrote: > Hi, > > I'd appreciate a bit of help on this problem.  I have some data that I've > converted to a dict and I want to pull out individual pieces of it. > > Simplified version-- > > a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'

  1   2   3   4   5   >