On 03/26/2013 12:36 AM, Robert Sjoblom wrote:
Hi again, Tutor List.
I am trying to figure out a problem I've run into. Let me first say
that this is an assignment, so please don't give me any answers, but
just nudge me in the general direction. So the task is this: from a
text file, populate thr
On 26/03/13 04:36, Robert Sjoblom wrote:
Georgie Porgie
87%
$$$
Canadian, Pub Food
So a 5 line pattern with 4 data fields. The last one containing multiple
comma separated values, potentially.
The three dictionaries are:
name_to_rating = {}
price_to_names = {'$': [], '$$': [], '$$$': [],
I have installed PyDtls from the link:-"
https://pypi.python.org/pypi/Dtls/0.1.0";.
While creating the server and client objects in
"sslconnection.py", it is referring to "x509.py" for certificates.
Following error is occurring :-
File
"C:\dtls\Dtls-0.1.0.sdist_with
On 03/26/2013 08:16 AM, Mousumi Basu wrote:
I have installed PyDtls from the link:-"
https://pypi.python.org/pypi/Dtls/0.1.0";.
While creating the server and client objects in
"sslconnection.py", it is referring to "x509.py" for certificates.
Following error is o
Thank you for reading this.
I'm a bit out of my depth here. I'm attempting to set up a simple udp
client.
The example that follows results in an error message and I'm wondering
if I should be importing a different module. A Google search doesn't
support that idea.
''
udp socket cli
On 03/26/2013 07:30 AM, Phil wrote:
Thank you for reading this.
I'm a bit out of my depth here. I'm attempting to set up a simple udp
client.
The example that follows results in an error message and I'm wondering
if I should be importing a different module. A Google search doesn't
support that
On 26/03/13 12:16, Mousumi Basu wrote:
I have installed PyDtls from the
link:-"https://pypi.python.org/pypi/Dtls/0.1.0";.
This list is for learning the python language and standard library.
Anything beyond that you are taking pot luck whether anyone here knows
about it.
You
On Tue, Mar 26, 2013 at 8:16 AM, Mousumi Basu wrote:
> File"C:\dtls\Dtls-0.1.0.sdist_with_openssl.win32\Dtls-0.1.0\dtls\"openssl.py",
> line 74 in
You didn't install the package. Run "python setup.py install". This
will install it to Lib\site-packages\Dtls and copy the pre-built DLLs
into the pa
I'm attempting to use setup.py to build an RPM, but ran into this error:
[scarolan@cobbler:~/rpmbuild/BUILD/Python-2.7.3]$ python27 setup.py
bdist_rpm
File "setup.py", line 361
with open(tmpfile) as fp:
^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.8
On Wed, Mar 27, 2013 at 12:55 AM, Sean Carolan wrote:
> I'm attempting to use setup.py to build an RPM, but ran into this error:
>
> [scarolan@cobbler:~/rpmbuild/BUILD/Python-2.7.3]$ python27 setup.py
> bdist_rpm
>
> File "setup.py", line 361
> with open(tmpfile) as fp:
> ^
> Syn
> Could it be that it is taking the system python executable which is
> probably 2.4?
>
> -Amit.
I've tried it with python24, python25 and python27 and all of them give the
same error.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change sub
Ok, so I'm now attempting a "clean room" installation using Python 2.7.3 to
build the RPM. Here's my installation command:
./configure --with-zlib=/usr/include; make; sudo make install
But the bdist_rpm setup command fails:
[scarolan@titania:~/Python-2.7.3]$ python2.7 setup.py bdist_rpm
error:
On Tue, Mar 26, 2013 at 3:18 PM, Sean Carolan wrote:
>
> Could it be that it is taking the system python executable which is
>> probably 2.4?
>>
>> -Amit.
>
>
> I've tried it with python24, python25 and python27 and all of them give
> the same error.
>
>
What it looks like to me is that while yo
> What it looks like to me is that while you run (using python 2.7):
>
> > python27 setup.py bdist_rpm
>
> doing that generates a temporary bash script, which in turn runs:
>
> > python setup.py build
>
Yea, I checked this, and /usr/local/bin/python is just a symlink pointing
at /usr/local/bin/py
Hi,
On 26 March 2013 16:54, Hugo Arts wrote:
> On Tue, Mar 26, 2013 at 3:18 PM, Sean Carolan wrote:
>
>>
>> Could it be that it is taking the system python executable which is
>>> probably 2.4?
>>>
>>> -Amit.
>>
>>
>> I've tried it with python24, python25 and python27 and all of them give
>>
On Tue, Mar 26, 2013 at 11:18 AM, Sean Carolan wrote:
> I've tried it with python24, python25 and python27 and all of them give the
> same error.
After looking at the source, I think the option python=python2.7 may
solve the problem.
http://hg.python.org/cpython/file/d321885ff8f3/Lib/distutils/c
On Tue, Mar 26, 2013 at 12:59 PM, Mousumi Basu wrote:
>
> I have run the following command previously in the command prompt:-
>
> C:\dtls\Dtls-0.1.0.sdist_with_openssl.win32\Dtls-0.1.0\dtls>
> python setup.py install
>
> Was that incorrect?Please help me out as i am eager to learn about pydtls.
T
On Tue, Mar 26, 2013 at 1:35 PM, eryksun wrote:
>> C:\dtls\Dtls-0.1.0.sdist_with_openssl.win32\Dtls-0.1.0\dtls>
>> python setup.py install
>>
>> Was that incorrect?Please help me out as i am eager to learn about pydtls.
>
> That's fine,
On 2nd thought, that's not fine. setup.py is located in the
* Robert Sjoblom [2013-03-26 05:36]:
>
> brittle. However, even if I was happy with that, I can't figure out
> what to do in the situation where:
> data[i+3] = 'Canadian, Pub Food' #should be two items, is currently a string.
> My problem is that I'm... stupid. I can split the entry into a list
>
>
> http://hg.python.org/cpython/file/d321885ff8f3/Lib/distutils/command/bdist_rpm.py#l23
>
No dice.
[scarolan@titania:~/Python-2.7.3]$ alias | grep python
alias python='/usr/local/bin/python2.7'
[scarolan@titania:~/Python-2.7.3]$ /usr/local/bin/python2.7 setup.py
bdist_rpm
error: pyconfig.h: No
> If so, what was your secret?
>
>
I tried running this again with strace, and it looks like it's finding the
pyconfig.h file:
open("/usr/local/include/python2.7/pyconfig.h", O_RDONLY) = 4
read(4, "/* pyconfig.h. Generated from p"..., 4096) = 4096
stat("pyconfig.h", {st_mode=S_IFREG|0664, st_size
On 26/03/13 19:04, Sean Carolan wrote:
Has anyone on this list successfully built a python 2.7 RPM using this
command?
python2.7 setup.py bdist_rpm
Given that most folks on this list are only learning Python its pretty
unlikely that they are building bespoke RPMs...
You might find more expe
> Given that most folks on this list are only learning Python its pretty
> unlikely that they are building bespoke RPMs...
>
> You might find more experience of RPM building on the general Python
> mailing list/newsgroup.
Sorry 'bout that. I'll follow up with the bug report and possibly the
gene
Sean Carolan wrote:
> [Alan Gauld wrote:]
> > Given that most folks on this list are only learning Python its pretty
> > unlikely that they are building
> > bespoke RPMs...
> >
> > You might find more experience of RPM building on the general Python
> > mailing list/newsgroup.
>
> Sorry 'bout t
On Wed, Mar 27, 2013 at 7:32 AM, Sean Carolan wrote:
>
>> Given that most folks on this list are only learning Python its pretty
>> unlikely that they are building bespoke RPMs...
>>
>> You might find more experience of RPM building on the general Python
>> mailing list/newsgroup.
>
>
> Sorry 'bou
On Wed, Mar 27, 2013 at 7:32 AM, Sean Carolan wrote:
>
>> Given that most folks on this list are only learning Python its pretty
>> unlikely that they are building bespoke RPMs...
>>
>> You might find more experience of RPM building on the general Python
>> mailing list/newsgroup.
>
>
> Sorry 'bou
On 26/03/13 23:15, Dave Angel wrote:
Traceback (most recent call last):
File "socket2.py", line 6, in
import socket #for sockets
File "/home/phil/Python/socket.py", line 7, in
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
AttributeError: 'module' object has no att
Dear All,
I am a newbie to Python but have a fair know how of other languages i.e C
etc.
I want to run an astrophysical simulation in Python. All I have to do it to
generate a set of 'plots' depending on a varying parameter and then stitch
them up.
1) Is it possible to automatically generate dif
Hi Sayan,
On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee
wrote:
> Dear All,
>
> I am a newbie to Python but have a fair know how of other languages i.e C
> etc.
>
> I want to run an astrophysical simulation in Python. All I have to do it to
> generate a set of 'plots' depending on a varying pa
On Wed, Mar 27, 2013 at 4:23 PM, Amit Saha wrote:
> Hi Sayan,
>
> On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee
> wrote:
>> Dear All,
>>
>> I am a newbie to Python but have a fair know how of other languages i.e C
>> etc.
>>
>> I want to run an astrophysical simulation in Python. All I have t
Thanks a lot for your prompt reply.
1. Yes. This is exactly what I wanted. Creating a bunch of data sets and
then writing script to plot them using gnuplot, but if something can
produce directly 'plots' it will certainly be helpful.
2. Yes. By stitching them up I meant an animation.Sorry for the
On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee
wrote:
> Thanks a lot for your prompt reply.
>
> 1. Yes. This is exactly what I wanted. Creating a bunch of data sets and
> then writing script to plot them using gnuplot, but if something can produce
> directly 'plots' it will certainly be helpful
Yes, ffmpeg will do if multiple plots can be generated using mathplotlib .
I'll look up the links you provided and get back to you, if I can't figure
it out. :)
On 27 March 2013 12:12, Amit Saha wrote:
> On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee
> wrote:
> > Thanks a lot for your pro
33 matches
Mail list logo