Sunbeam India UPS Point- unfair Trade Practices in Computer Business

2008-09-20 Thread ronald
Sunbeam India UPS Point- unfiar Trade Practices in Computer Business
Save Money, Tension, and Time. Avoid Nehru Place market to buy
Computer Goods

Hello All,

This is to inform you all the sellers at the Nehru Place are not
selling good products. Especially the shop-

Nishchal Joshi, Sunbeam India UPS Point, 103, S2 1st Floor, Siddhartha
Building, Nehru Place, New Delhi

110019. Phone - 9810276805, Email - [EMAIL PROTECTED]

Engineer at Shop- Subash - 996899657

I bought a motherboard from that shop and that computer don't even
worked for a single day. We called the

person in just two days of purchase and he said he was out of town and
so therefore bring it to me after one

week. We took the system to his shop after spending money to nehru
place, there he kept the system for five

days and returned it back to us. However it was not rectified. Then we
called him to our house and he charged

money for this and did some corrections in the system and restarted
the system. We told him to take his

motherboard and gave our own old motherboard, then he said that he
will rectify it, after making settings he left

for the day. When we started the system, it started and got shut down
immediately. And after that it never

started.

We called this person again and told him to take his motherboard back
and gave us our old motherboard, but

he said I am not the correct person, talk to the engineer who set the
system for you. That Engineer Subash

works for the Nishchal in his shop.

Please suggest what action can be taken against him.

Steps in the pipeline - Consumer Forum, Escalating issue to Consumer
Affairs, Online Web and Nehru Place

Online Community, so that others do not fall prey to this.

Thanks
Kritika Joshi
[EMAIL PROTECTED]


Save Money, Tension, and Time. Avoid Nehru Place (Nishchal Joshi,
Unbeam India UPS Point, 103, S2 1st

Floor, Siddhartha Building, Nehru Place, New Delhi ) market to buy
Computer Goods.

All the Best.
--
http://mail.python.org/mailman/listinfo/python-list


pythonw.exe

2011-08-14 Thread Ronald Reynolds
Dear Python Friends:
in my python directory there is a python.exe file which I understand completely 
but there is also a pythonw.exe DOS seems to honor the pythonw
command (No error message) but nothing happens. What is pythonw.exe?
Also is there a way to invoke idle from the DOS prompt?  I tried idle 
filename.py  and  just idle. Is there any .exe for idle?

Sincerely, 'Ron "bumpker" Reynolds' 
-- 
http://mail.python.org/mailman/listinfo/python-list


upgrade python

2011-08-23 Thread Ronald Reynolds
What is recommended for upgrading python for windows? Do I just install the new 
versionDo I edit my system path? Should I uninstall the old version.  Right now 
I have 2.7 and3.1  and 3.2  and I keep editing my system path when I install a 
new version but I'm notsure that's the right way to go.  Is there an upgrade 
way? I only found downloads at Python.org  thx     'Ron "bumpker" Reynolds' -- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyQt on MAC OS X

2004-12-15 Thread Ronald Oussoren
On 14-dec-04, at 0:42, Michael McGarry wrote:
Kevin,
thanks that did the trick!!!
One problem is my Window created in Qt appears underneath all others 
on the screen and focus never goes completely onto this window. Kind 
of weird.

Any ideas?
Did you use pythonw to start your script? If you use the normal 
interpreter (the one named python) you've run into an annoying feature 
of the MacOS X display system, pythonw can be used to circumvent that 
feature.

Ronald
--
http://mail.python.org/mailman/listinfo/python-list


ANN: pyobjc-1.2

2004-12-30 Thread Ronald Oussoren
PyObjC 1.2 is now available for download at 
http://pyobjc.sourceforge.net/

PyObjC is a bridge between Python and Objective-C.  It allows full
featured Cocoa applications to be written in pure Python.  It is also
easy to use other frameworks containing Objective-C class libraries
from Python and to mix in Objective-C, C and C++ source.
Python is a highly dynamic programming language with a shallow learning
curve.  It combines remarkable power with very clear syntax.
The installer package includes a number of Xcode templates
for easily creating new Cocoa-Python projects.
PyObjC also supports full introspection of Objective-C classes and
direct invocation of Objective-C APIs from the interactive interpreter.
PyObjC requires Mac OS X 10.2 or later and Python 2.3 or later.  PyObjC 
works
both with the Apple provided Python installation in Mac OS X 10.3 (and 
later)
and with MacPython 2.3.

This release features several bugfixes, improved documentation as well 
as
support for categories, easier customization and basic support for 
creating
Interface Builder palettes. See the news file at
http://pyobjc.sourceforge.net/NEWS-1.2.txt for more information.

PyObjC is released with an open source license (MIT style).
--
http://mail.python.org/mailman/listinfo/python-list


Re: py2app on Mac OS X 10.3

2004-12-31 Thread Ronald Oussoren
On 31-dec-04, at 11:12, Austin wrote:
"""
Minimal setup.py example, run with:
% python setup.py py2app
"""
from distutils.core import setup
import py2app
setup(
app = ['main.py'],
)
That is a sample code of wiki.
I have a file 'main.py' and several sub-folders.
After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' & 
'build'
which is the same as py2exe.
I open the 'dist' folder and see a file 'main'. Then I double-click the
'main' and appeared the error message.
'IOError:[Errno 2] No such file or directory:
'/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml
I feel so wildered because 'main.app' should be a file not a folder.
It's an application bundle, which is a folder. All '.app'-s on OS X are 
folders, it is a neat way of bundling the application program and all 
data files it needs.

I was wondering if some extra codes needed by setup.py
Could anyone give me an advice?
What is 'eventlog.xml' supposed to be? If you're going to write to it, 
it is in the wrong location. If it is a datafile that is used by your 
application you should mention it in the setup.py script (the 
data_files argument).

Ronald
--
http://mail.python.org/mailman/listinfo/python-list


web scraping

2013-10-12 Thread Ronald Routt
I am new to programming and trying to figure out python.  

I am trying to learn which tools and tutorials I need to use along with some 
good beginner tutorials in scraping the the web.  The end result I am trying to 
come up with is scraping auto dealership sites for the following:  

1.Name of dealership
2.  State where dealership is located
3.  Name of Owner, President or General Manager
4.  Email address of number 3 above
5.  Phone number of dealership

Note:  Many times the Owner, President or General Manager and their email 
address is under a tab on the website such as "Meet our team" or "Support".  
Sometimes this information is not available on the website.

I sure would appreciate any help I can get to get me on the right track.  From 
what I have read so far, believe I have to use urllib but know nothing about 
how to us it..

Thanks
[email protected] 
-- 
https://mail.python.org/mailman/listinfo/python-list


function code snippet that has function calls I have never seen before. How does it work.

2015-10-03 Thread Ronald Cosentino
def funA(x,y,z):
return (x+y) * z
def funB(x,y):
return(x-y)
print(funA(4,funB(2,3), funB(3,2)))

the answer is 3. I don't know how it works.

-- 
https://mail.python.org/mailman/listinfo/python-list


PEP 309 (Partial Function Application) Idea

2006-01-14 Thread Ronald Mai
In my opinion, Ellipsis might be in the middle, not only in leftmost or
rightmost, so a placeholder approach can be much more flexible and
convenient.

Here is a reference implementation:

_ = lambda x: x.pop(0)

def partial(func, *args, **keywords):
def newfunc(*fargs, **fkeywords):
newkeywords = keywords.copy()
newkeywords.update(fkeywords)
newargs = (lambda seq: tuple([(a == _ and a(seq)) or a for
a in args] + seq))(list(fargs))
return func(*newargs, **newkeywords)
newfunc.func = func
newfunc.args = args
newfunc.keywords = keywords
return newfunc

Here is example of use:

>>> def capture(*args):
return args

>>> partial(capture)()
()
>>> partial(capture, _)(1)
(1,)
>>> partial(capture, _, 2)(1)
(1, 2)
>>> partial(capture, 1)(2)
(1, 2)
>>> partial(capture, 1, _)(2)
(1, 2)
>>> partial(capture, 1, _)()
IndexError: pop from empty list
>>> partial(capture, 1, _, _)(2, 3)
(1, 2, 3)

Chris Perkins :

> Random idea of the day: How about having syntax support for
> currying/partial function application, like this:
>
> func(..., a, b)
> func(a, ..., b)
> func(a, b, ...)
>
> That is:
> 1) Make an Ellipsis literal legal syntax in an argument list.
> 2) Have the compiler recognize the Ellipsis literal and transform the
> function call into a curried/parially applied function.
>
> So the compiler would essentially do something like this:
>
> func(a, ...) ==> curry(func, a)
> func(..., a) ==> rightcurry(func, a)
> func(a, ..., b) ==> rightcurry(curry(func,a), b)
>
> I haven't though this through much, and I'm sure there are issues, but
> I do like the way it looks.  The "..." really stands out as saying
> "something is omitted here".
> 
> 
> Chris Perkins

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PEP 309 (Partial Function Application) Idea

2006-01-16 Thread Ronald Mai
for a new function, named parameter might be a better choise, but for
existing function, placeholder would be better, since you don't need to
modify the exiting code.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PEP 309 (Partial Function Application) Idea

2006-01-16 Thread Ronald Mai
sorry, should be "existing"

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PEP 309 (Partial Function Application) Idea

2006-01-16 Thread Ronald Mai
for a new function, named parameter might be a better choise, but for
existing function, placeholder would be better, since you don't need to
modify the existing code.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [python-nl] Compile python extension

2006-10-11 Thread Ronald Oussoren
 
On Wednesday, October 11, 2006, at 02:43PM, Martijn de Munnik <[EMAIL 
PROTECTED]> wrote:

>Hi,
>
>I'm trying to build/install pysqlite on a Solaris 10 platform. I've got
>Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie
>and just want to install trac. I've got ActiveState python:

This seems to be a bug in distutils, triggered by the %-signs in your CFLAGS. 
The easiest way to work around this is to change the CFLAGS and CXXFLAGS in 
your environment, just remove the options containing %-signs. Those seem to be 
related to optimization and I don't think those will affect the performance of 
pysqlite very much.

A more permanent fix is change /opt/python/lib/python2.4/distutils/spawn.py" 
line 122, insert "%s" as the first argument of the call to log.info. This might 
not be the only place that requires changes.

Ronald

P.S. please file a bug at http://www.sf.net/projects/python to ensure that this 
will get fixed in a future release of  python.

>
>ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on
>Python 2.4.3 (#1, Apr  3 2006, 18:07:58) [C] on sunos5
>Type "help", "copyright", "credits" or "license" for more information.
>
>And sqlite build with the following options ./configure
>--prefix=/opt/64/sqlite --enable-threadsafe --disable-tcl
>
>my environment looks like this:
>CC=cc
>CFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil
>-xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr
>CXX=CC
>CXXFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all
>-xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr
>LDFLAGS=-xtarget=opteron -xarch=amd64
>
>and setyp.cfg looks like this
>[build_ext]
>define=
>include_dirs=/opt/sqlite/include
>library_dirs=/opt/sqlite/lib
>libraries=sqlite3
>
>/opt/sqlite is a symlink to /opt/64/sqlite
>
>and finally the build command:
>
>% python setup.py build
>running build
>running build_py
>running build_ext
>building 'pysqlite2._sqlite' extension
>Traceback (most recent call last):
>  File "setup.py", line 159, in ?
>main()
>  File "setup.py", line 156, in main
>setup(**get_setup_args())
>  File "/opt/python/lib/python2.4/distutils/core.py", line 149, in setup
>dist.run_commands()
>  File "/opt/python/lib/python2.4/distutils/dist.py", line 946, in
>run_commands
>self.run_command(cmd)
>  File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in
>run_command
>cmd_obj.run()
>  File "/opt/python/lib/python2.4/distutils/command/build.py", line 112,
>in run
>self.run_command(cmd_name)
>  File "/opt/python/lib/python2.4/distutils/cmd.py", line 333, in run_command
>self.distribution.run_command(command)
>  File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in
>run_command
>cmd_obj.run()
>  File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
>279, in run
>self.build_extensions()
>  File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
>405, in build_extensions
>self.build_extension(ext)
>  File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
>470, in build_extension
>depends=ext.depends)
>  File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 699, in
>compile
>self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
>  File "/opt/python/lib/python2.4/distutils/unixccompiler.py", line 112,
>in _compile
>self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
>  File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 1040, in
>spawn
>spawn (cmd, dry_run=self.dry_run)
>  File "/opt/python/lib/python2.4/distutils/spawn.py", line 37, in spawn
>_spawn_posix(cmd, search_path, dry_run=dry_run)
>  File "/opt/python/lib/python2.4/distutils/spawn.py", line 122, in
>_spawn_posix
>log.info(string.join(cmd, ' '))
>  File "/opt/python/lib/python2.4/distutils/log.py", line 33, in info
>self._log(INFO, msg, args)
>  File "/opt/python/lib/python2.4/distutils/log.py", line 23, in _log
>print msg % args
>TypeError: not enough arguments for format string
>
>
>I've got the same issues with mysql and postgresql extensions, any ideas???
>
>BTW anybody succesfully compiled python on Solaris using Sun Studio?
>
>thanks,
>
>Martijn
>
>
>___
>Python-nl mailing list
>[email protected]
>http://mail.python.org/mailman/listinfo/python-nl
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] RELEASED Python 3.0.1

2009-02-14 Thread Ronald Oussoren


On 14 Feb, 2009, at 9:55, Martin v. Löwis wrote:


Any chance of getting a Mac installer for this one?


Chances are non-zero, yes.



I had hoped to build one last night, but got home way later than I had  
planned. The installer is building as I type this.


Ronald



smime.p7s
Description: S/MIME cryptographic signature
--
http://mail.python.org/mailman/listinfo/python-list


noob trouble with IDLE

2008-12-21 Thread Ronald Rodriguez
Hi, Im new to python and I've just started using Byte of Python, running the
samples etc. Im using IDLE on Xp. Ok, here's the thing.
A sample script makes a call to the os.system() function in order to zip
some files. Everything works fine when running from the command line, but
the same code fails when I try Run --> Run module on IDLE. Im using 7z to
zip the files. Again, everything is OK when running from the command line.
Remember, Im new to python and programming. I've done some google search
without results. Maybe its just too simple :-(  . Any help would be
appreciated. Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-16 Thread Ronald Oussoren


On 15 Apr, 2009, at 22:47, Russell E. Owen wrote:


Thank you for 2.6.2.

I see the Mac binary installer isn't out yet (at least it is not  
listed

on the downloads page). Any chance that it will be compatible with 3rd
party Tcl/Tk?


The Mac installer is late because I missed the pre-announcement of the  
2.6.2 tag. I sent the installer to Barry earlier today.


The installer was build using a 3th-party installation of Tcl/Tk.

Ronald

smime.p7s
Description: S/MIME cryptographic signature
--
http://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-16 Thread Ronald Oussoren


On 16 Apr, 2009, at 20:58, Russell Owen wrote:

I installed the Mac binary on my Intel 10.5.6 system and it works,  
except it still uses Apple's system Tcl/Tk 8.4.7 instead of my  
ActiveState 8.4.19 (which is in /Library/Frameworks where one would  
expect).


That's very string. I had ActiveState 8.4 installed (whatever was  
current about a month ago).




Just out of curiosity: which 3rd party Tcl/Tk did you have installed  
when you made the installer? Perhaps if it was 8.5 that would  
explain it. If so I may try updating my Tcl/Tk -- I've been wanting  
some of the bug fixes in 8.5 anyway.


Tcl 8.5 won't happen in 2.6, and might not happen in 2.7 either.   
Tkinter needs to work with the system version of Tcl, which is some  
version of 8.4,  Tkinter will not work when the major release of Tcl  
is different than during the compile. That makes it rather hard to  
support both 8.4 and 8.5 in the same installer.


Ronald



-- Russell

On Apr 16, 2009, at 5:35 AM, Ronald Oussoren wrote:



On 15 Apr, 2009, at 22:47, Russell E. Owen wrote:


Thank you for 2.6.2.

I see the Mac binary installer isn't out yet (at least it is not  
listed
on the downloads page). Any chance that it will be compatible with  
3rd

party Tcl/Tk?


The Mac installer is late because I missed the pre-announcement of  
the 2.6.2 tag. I sent the installer to Barry earlier today.


The installer was build using a 3th-party installation of Tcl/Tk.

Ronald






smime.p7s
Description: S/MIME cryptographic signature
--
http://mail.python.org/mailman/listinfo/python-list


Re: Advice for Python and Web Server/Services?

2006-03-27 Thread Ronald Davis
On Sunday 26 March 2006 5:00 pm, Dennis Lee Bieber wrote:

> Any possibility you need to specify an option on the socket
> connections to reuse-sockets without the normal time-out?

The problem turned out to be keep-alive. Apparently, Comcast is limiting my 
inbound connections. Apache keeps the connections alive so it works fine. The 
Python servers don't support keep-alive and are using up the available 
connections too quickly.

I'm now using Apache as a proxy to the Python server and it works well.

Thanks for the response.

> On Sun, 26 Mar 2006 14:55:12 -0500, Ron Davis <[EMAIL PROTECTED]>
>
> declaimed the following in comp.lang.python:
> > I've looked in to fastcgi and mod_python but I'm not sure either is what
> > I need. What I want is for my Python program to be polling the web
> > services 24/7 and Apache to serve static pages by itself but call a
> > function in my already running Python program for files with a certain
> > extension (.xml for example).
>
>   I think you'll first need to disconnect the two sides... The program
> doing the polling has to run completely stand-alone from your own
> web-server.  I also think you'll need to create some independent
> (file-system?) store which the polling program can write to; so your web
> server page can do the selected retrieval -- but since you don't want a
> database capable of concurrent access... The polling program needs to
> include an asynchronous or threaded scheme with a local socket so the
> web server (CGI) process can connect to it and requests the poller to
> return the data.
>
> > Ideally, I'd like to figure out why the Python servers are having
> > problems. This is a very low volume system so straight Python would be
> > great if I can get it working.
>
>   Any possibility you need to specify an option on the socket
> connections to reuse-sockets without the normal time-out?
> --
>
>  > == <
>  >   [EMAIL PROTECTED]  | Wulfraed  Dennis Lee Bieber  KD6MOG <
>  >  [EMAIL PROTECTED] |   Bestiaria Support Staff   <
>  > == <
>  >   Home Page: <
>  >Overflow Page: <

-- 
Ron Davis
Custom Software Engineering
-- 
http://mail.python.org/mailman/listinfo/python-list


Python 2.7 installation problem

2010-09-25 Thread Ronald Guida
Hi,

I am trying to perform a user-install of python 2.7 on Ubuntu 10.04, and my
installation is failing.

This sequence of commands reproduces the failure on my system:

$ tar -zxvf Python-2.7.tgz
$ cd Python-2.7/
$ ./configure --prefix=$HOME
$ make
$ ./python Lib/test/test_collections.py
doctest (collections) ... 54 tests with zero failures
$ make altinstall
$ cd
$ which python2.7
/home/oddron/bin/python2.7
$ python2.7
Python 2.7 (r27:82500, Sep 26 2010, 01:49:59)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import collections
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/oddron/lib/python2.7/collections.py", line 8, in 
from _collections import deque, defaultdict
ImportError: No module named _collections
>>> import sys
>>> sys.path
['', '/home/oddron/lib/python27.zip', '/home/oddron/lib/python2.7',
'/home/oddron/lib/python2.7/plat-linux2',
'/home/oddron/lib/python2.7/lib-tk', '/home/oddron/lib/python2.7/lib-old',
'/home/oddron/lib/python2.7/lib-dynload',
'/home/oddron/.local/lib/python2.7/site-packages',
'/home/oddron/lib/python2.7/site-packages']
>>>


Things I have already checked:
* My path includes ~/bin
* None of PYTHONHOME and friends are set.
* I have also tried "make install" instead of "make altinstall", and I get
the same failure.

Can anyone give me a hint regarding what has gone wrong?

Thank you
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.7 installation problem

2010-09-26 Thread Ronald Guida
Solved -- "make install" failed to actually install a subset of files.  I
had to manually copy them instead.

Specifics:
I started from /home/oddron/installers/python/Python-2.7/ and executed the
usual commands:
$ ./configure --prefix=$HOME
$ make
$ make install

I have found that the installer failed to install the contents of
"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
which contains *.so files.  This explains why "import collections" would
work from
the built python in /home/oddron/installers/python/Python-2.7/, but would
fail in the installed
python in /home/oddron/bin/ .

I manually copied the contents of
"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
to /home/oddron/lib/python2.7/ and now everything seems to work.

Thank you


On Sun, Sep 26, 2010 at 2:19 AM, Ronald Guida  wrote:

> Hi,
>
> I am trying to perform a user-install of python 2.7 on Ubuntu 10.04, and my
> installation is failing.
>
> This sequence of commands reproduces the failure on my system:
>
> $ tar -zxvf Python-2.7.tgz
> $ cd Python-2.7/
> $ ./configure --prefix=$HOME
> $ make
> $ ./python Lib/test/test_collections.py
> doctest (collections) ... 54 tests with zero failures
> $ make altinstall
> $ cd
> $ which python2.7
> /home/oddron/bin/python2.7
> $ python2.7
> Python 2.7 (r27:82500, Sep 26 2010, 01:49:59)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import collections
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/home/oddron/lib/python2.7/collections.py", line 8, in 
> from _collections import deque, defaultdict
> ImportError: No module named _collections
> >>> import sys
> >>> sys.path
> ['', '/home/oddron/lib/python27.zip', '/home/oddron/lib/python2.7',
> '/home/oddron/lib/python2.7/plat-linux2',
> '/home/oddron/lib/python2.7/lib-tk', '/home/oddron/lib/python2.7/lib-old',
> '/home/oddron/lib/python2.7/lib-dynload',
> '/home/oddron/.local/lib/python2.7/site-packages',
> '/home/oddron/lib/python2.7/site-packages']
> >>>
>
>
> Things I have already checked:
> * My path includes ~/bin
> * None of PYTHONHOME and friends are set.
> * I have also tried "make install" instead of "make altinstall", and I get
> the same failure.
>
> Can anyone give me a hint regarding what has gone wrong?
>
> Thank you
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.7 installation problem

2010-09-26 Thread Ronald Guida
Sorry, I have one additional piece of information that might be helpful to
others.  I have discovered that the *.so files that were not installed, were
actually installed to the ~/lib/python2.6/ folder instead of the
~/lib/python2.7/ folder where they belong.

On Sun, Sep 26, 2010 at 9:25 PM, Ronald Guida  wrote:

> Solved -- "make install" failed to actually install a subset of files.  I
> had to manually copy them instead.
>
> Specifics:
> I started from /home/oddron/installers/python/Python-2.7/ and executed the
> usual commands:
> $ ./configure --prefix=$HOME
> $ make
> $ make install
>
> I have found that the installer failed to install the contents of
> "/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
> which contains *.so files.  This explains why "import collections" would
> work from
> the built python in /home/oddron/installers/python/Python-2.7/, but would
> fail in the installed
> python in /home/oddron/bin/ .
>
> I manually copied the contents of
> "/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
> to /home/oddron/lib/python2.7/ and now everything seems to work.
>
> Thank you
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Installing new module

2010-10-11 Thread ronald brown
I uzipped to python Lib directory and try to run sample prog got this
error. What am I doing wrong?

Traceback (most recent call last):
  File "F:/Python25/Lib/MIDIUtil-0.87/a11", line 3, in 
from midiutil.MidiFile import MIDIFile
ImportError: No module named midiutil.MidiFile
-- 
http://mail.python.org/mailman/listinfo/python-list


TypeError: unhashable type: 'list'

2014-12-22 Thread ronald . kevin . burton
I am getting an exception that the traceback looks like:


Traceback (most recent call last):
  File "C:\Projects\QA\robot_20141103\resources\assessment_utilities.py", line 
29, in create_new_project
program = customer.add(program_code)
  File "C:\Projects\QA\robot_20141103\resources\assessment_customer.py", line 
589, in add
program = ProgramMaker.Code2Program(program_code, self)
  File "C:\Projects\QA\robot_20141103\resources\programmaker.py", line 25, in 
Code2Program
'ASSESS_PPL' : PPL(customer)
  File "C:\Projects\QA\robot_20141103\resources\ppl.py", line 20, in __init__
MeasureMaker.Code2Measure('Furnace Whistle', self)
TypeError: unhashable type: 'list'


My problem is that I am not sure what the problem is. I can check the type of 
'self' which is an object and the string 'Furnace Whistle' is obviously not a 
list. The static function 'MeasureMaker.Code2Measure' is a simple factory:

class MeasureMaker:

def Code2Measure(measure_code, core):
try:
return {
...
'Furnace Whistle': FurnaceWhistle(core)
}[measure_code]
except KeyError as error:
return None
Code2Measure = staticmethod(Code2Measure)

What is the 'list' that is in the exception? Or how do I find out?

Thank you.

Kevin
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Am I missing something here? ipaddress vs socket

2015-05-01 Thread Ronald van Zantvoort
Hi Chris & Alain, thanks for  responding :)

On Friday, 1 May 2015 12:11:20 UTC+2, Chris Angelico  wrote:
> On Fri, May 1, 2015 at 7:42 PM,  Ronald van Zantvoort wrote:
> > Hi all,
> >
> > Given the following code:
> >
> > import ipaddress
> > import socket
> >
> > ip = ipaddress.ip_address(mystring)
> > sock_family = ip.
> > socket = socket.socket(sock_family, socket.SOCK_STREAM)
> >
> > Am I crazy or is this undoable?
> >
> > sock.AF_INET == 2
> > sock.AF_INET6 == 10
> > ip.version == 4 or 6
> 
> Are you trying to look up a name to get an address? Or just look up an
> address? The easiest way would be to use a ternary if:
> 
> sock_family = sock.AF_INET if ip.version == 4 else sock.AF_INET6

mystring is already an IP address, sorry for not mentioning that.
The point is that ternary if; I've been scouring around the internet and 
there's a million different variations on the same idea. 
I'm completely flabberghasted it's not a simple property within the object 
though, e.g. ip.sock_family.

Was this a deliberate decision by the Python devs or can I try an RFE for that?

> But you may find it convenient to use a dedicated function for
> establishing a connection, which could look up an  or A record for
> a name, then proceed through all addresses, attempting connections in
> turn. I'm fairly sure one exists in Python, but I can't right now
> remember the name.
> 
> ChrisA

Well you've already got socket.create_connection(), which (I think) does 
perform that lookup.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Am I missing something here? ipaddress vs socket

2015-05-01 Thread Ronald van Zantvoort
On Friday, 1 May 2015 14:06:34 UTC+2, Chris Angelico  wrote:
> On Fri, May 1, 2015 at 8:41 PM, Ronald van Zantvoort wrote:
> > mystring is already an IP address, sorry for not mentioning that.
> > The point is that ternary if; I've been scouring around the internet and 
> > there's a million different variations on the same idea.
> > I'm completely flabberghasted it's not a simple property within the object 
> > though, e.g. ip.sock_family.
> >
> > Was this a deliberate decision by the Python devs or can I try an RFE for 
> > that?
> 
> You could ask. At very worst, you'll find someone explain to you why
> it shouldn't be done. I suggest using the python-ideas mailing list;
> people there are usually reasonably friendly, though occasionally you
> find a caustic response to a dumb idea like "Python should use braces
> for indentation" :)

There are no dumb ideas, just dumb people ;)

But seriously, I'll go see over there, thanks :) It's just that I'm amazed that 
this isn't in there yet; it's 2 simple properties added in for convenience and 
IMHO very Pythonic to be able to do aforementioned code.

Thanks again pplz :)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Am I missing something here? ipaddress vs socket

2015-05-01 Thread Ronald van Zantvoort
On Friday, 1 May 2015 15:46:32 UTC+2, Chris Angelico  wrote:
> On Fri, May 1, 2015 at 11:37 PM, Ronald van Zantvoort wrote:
> > But seriously, I'll go see over there, thanks :) It's just that I'm amazed 
> > that this isn't in there yet; it's 2 simple properties added in for 
> > convenience and IMHO very Pythonic to be able to do aforementioned code.
> >
> 
> There are lots of things that are so obvious they get added with
> little argument, but someone still has to think of them :)
> 
> ChrisA

Hehehe right you are. I've posted an idea to python-ideas, we'll see how it 
goes from there.
Thanks again!
-- 
https://mail.python.org/mailman/listinfo/python-list