[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError
Maria Kazakova added the comment: Thank you so much for the answers!! The problem was indeed with the data source, they have fixed it. Sorry for bothering you! Wish you all the best!!! -- nosy: -paul.moore, steve.dower, tim.golden, zach.ware resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43775> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError
New submission from Maria Kazakova : I tried to use the usual code: response = requests.get (url) response.json () OR json.loads (response.text) BUT it returns JSONDecodeError Expecting value: line 1 column 1 (char 0) — no matter, which website I am trying to parse, with headers or without them. However, response.status_code = 200 and response.text returns the whole html-content. Two days ago everything worked completely fine, and now this disaster happens. I asked a couple of friends to try the same — and everyone failed to succeed, everyone gets this error — using Jupyter Notebook (+Anaconda, Python 3.7), PyCharm (+Python 3.9) and Google Colab. Please help :( -- components: Windows messages: 390539 nosy: marikasakowa, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: JSON Parsing Alarm: Requests + Json = JSONDecodeError type: crash versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue43775> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38052] Include sspipe Module with Core Python
Maria Alguea added the comment: Will discuss it on the Mailing Lists. Thank you. Yet is important it is important to understand this powerful concept, based on R's pipe: https://magrittr.tidyverse.org Eg: MyObj = Class \ .method1() %>% f_function1() \ # Obj is 1st argument .method2() %>% f_function2(param1 = "ABC", param2 = .) And in the last function, the the previous object is saved named as a for "." -- nosy: +Maria Alguea ___ Python tracker <https://bugs.python.org/issue38052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Fwd: Welcome to the "Python-list" mailing list
Good afternoon, I sent you an email this afternoon asking for help. As you can see in this email, I have been admited already. Could you help me with the matter I asked you please? Thanks. Kind regards, María Alonso-Martirena. -- Forwarded message -- From: <python-list-requ...@python.org> Date: 2017-06-05 21:32 GMT+02:00 Subject: Welcome to the "Python-list" mailing list To: maria.alonso.martir...@gmail.com Welcome to the Python-list@python.org mailing list! The purpose of this mailing list is to support general discussions about the Python programming language. Please remember that this list is mirrored to the Usenet newsgroup comp.lang.python. For more information on the Python programming language see <http://www.python.org/> To post to this list, send your message to: python-list@python.org General information about the mailing list is at: https://mail.python.org/mailman/listinfo/python-list If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://mail.python.org/mailman/options/python-list/maria. alonso.martirena%40gmail.com You can also make such adjustments via email by sending a message to: python-list-requ...@python.org with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe without confirmation. It is: maiebsam Normally, Mailman will remind you of your python.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. -- https://mail.python.org/mailman/listinfo/python-list
Download
Good morning, You asked me to subscribe before writing to you and i've already done so. I need your help: I’ve just downloaded Python for Windows (versión 3.6.1.). However, when I try to open it, it just says “modify”, “repair” or “uninstall”. How can I solve this problem? Why is it not working correctly? Thank you beforehand. Kind regards, María Alonso. -- https://mail.python.org/mailman/listinfo/python-list
[issue30445] test_traceback fails when run early
Changes by Maria Mckinley <mar...@mariakathryn.net>: -- pull_requests: +1855 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30445> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30445] test_traceback fails when run early
Changes by Maria Mckinley <mar...@mariakathryn.net>: -- components: Tests nosy: maria priority: normal severity: normal status: open title: test_traceback fails when run early type: behavior versions: Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30445> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Invitation to support our research (by responding to the questionnaire) on analogy based code reuse
At Birkbeck, University of London in collaboration with the Faculty of Electrical Engineering and Computing, University of Zagreb, we are doing research on reusing source code based on analogical reasoning. We appreciate the importance of your time and we hope you will be able to invest approximately 15 minutes of your time and fill in our questionnaire. The questionnaire will be available in the next few weeks. We did our best to reduce the amount of questions to the most important ones of our interest. Please note that your feedback is critical to the success of this research. Your answers are completely anonymous. Please follow this link to fill in the questionnaire: https://docs.google.com/forms/d/e/1FAIpQLSc0A_z8Z2zOeElqA_dWBijc04Fh5qARy9PdV63D7QzpFq3rbA/viewform?usp=send_form Thank you very much in advance for your time and for supporting our research. Kind regards, Marija, Martin and Mario -- https://mail.python.org/mailman/listinfo/python-list
Invitation to support our research (by responding to the questionnaire) on analogy based code reuse
At Birkbeck, University of London in collaboration with the Faculty of Electrical Engineering and Computing, University of Zagreb, we are doing research on reusing source code based on analogical reasoning. We appreciate the importance of your time and we hope you will be able to invest approximately 15 minutes of your time and fill in our questionnaire. The questionnaire will be available in the next few weeks. We did our best to reduce the amount of questions to the most important ones of our interest. Please note that your feedback is critical to the success of this research. Your answers are completely anonymous. Please follow this link to fill in the questionnaire: https://docs.google.com/forms/d/e/1FAIpQLSc0A_z8Z2zOeElqA_dWBijc04Fh5qARy9PdV63D7QzpFq3rbA/viewform?usp=send_form Thank you very much in advance for your time and for supporting our research. Kind regards, Marija, Martin and Mario -- https://mail.python.org/mailman/listinfo/python-list
Re: help
Done! Thank you! 2016-04-22 12:57 GMT+02:00 vittorio maria iacullo <vmiacu...@gmail.com>: > Hi > I've just installed on my laptop python 3.5.1 > > but I get a error message. I alredy ran the "repair session". May you tell > me please what should I do? > > Best, > > -- > > > *Vittorio Maria Iacullo* > -- *Vittorio Maria Iacullo* -- https://mail.python.org/mailman/listinfo/python-list
Next CodinGame online programming contest on June, 27 - Python available
Hi everyone! On June 27th, Code of the Rings, an online coding battle will launch. It's Free open to all. You will have 24 hours to code and optimize your solution to a puzzle. What will be exciting and fun is that it will be VERY EASY to start and to get something that works, but complex to produce the most efficient code... Over the 24 hours, you will be able to submit your code as much as you like, whenever you like. No restrictions, no obligation :) Registration is open: http://www.codingame.com/challenge/code-of-the-rings - Duration: 24 hours ; 1 game to solve - Participation is 100% online and free - Over 23 coding languages to choose from including Python - Prizes to win, and 25+ t-shirts - Apply to sponsoring companies offering jobs and internships International Leaderboard + Leaderboard by University Please, feel free to share the information and your feedback are more than welcome! :) Hope to see you there and keep coding! -- https://mail.python.org/mailman/listinfo/python-list
[issue23543] encoding error trying to save string to file
New submission from Rosa Maria: I made a program to read which files are in a windows folder, and saves in a file in order to print it, but when it tries to write in a file the following error appears: UnicodeEncodeError: 'charmap' codec can't encode character '\u2010' in position 8: character maps to undefined I extpected that being Python-3 an utf8 native, I do'n have this problems. I send the Python script and some examples of files to read. One of the failures example is the file named: 'LKC.6558‐100‐HD‐P‐101_C.xlsx\n' which appears in windows as: 'LKC6558100HDP101_C.xlsx\n' -- components: Unicode files: Redear_Carpetotas.py messages: 236841 nosy: Gravitania, ezio.melotti, haypo priority: normal severity: normal status: open title: encoding error trying to save string to file type: crash versions: Python 3.4 Added file: http://bugs.python.org/file38268/Redear_Carpetotas.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23543 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23131] saving to file add inexistance characters
New submission from Rosa Maria: I make an xml extractor for mexican internet invoices; the extraction is correct, but when save to csv, some numbers has additional numbers that does not exist, for example 5010.00 is saved as 5010.002. As you can see in the print function at line 155. The problem is in Python 3.4.2 in machines with windows xp, windows 7 and windows 8 It is an small error, but this data is used for Accounting. Thanks in advance and best regards. Rosa Maria -- components: IO files: Python_Send.7z messages: 233190 nosy: Gravitania priority: normal severity: normal status: open title: saving to file add inexistance characters type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file37559/Python_Send.7z ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23131 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16417] Integer converted in tuple without request
Rosa Maria added the comment: Thanks Thanks Thanks Thanks Thanks Thanks Thanks you very much, You are going to go to heaven with your shoes included. Best regards and have a nice year end. Rosa María Cuídate de la Ciencia que no Llora, de la Filosofía que no Ríe y de la Grandeza que no se inclina ante los niños Madre es el nombre de dios en los labios y en los corazones de todos los niños De: R. David Murray rep...@bugs.python.org Para: rosem...@yahoo.com.mx Enviado: Lunes, 5 de noviembre, 2012 17:17:35 Asunto: [issue16417] Integer converted in tuple without request R. David Murray added the comment: You did request a tuple: r = a - q * b, That is equivalent to r = (a - q * b,) which is a single element tuple. I had to put in some print statements in your loop to find that, it wasn't obvious. This is perhaps a disadvantage of Python's tuple notation, but the benefits of the notation outweigh this small disadvantage, I think. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16417 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16417] Integer converted in tuple without request
New submission from Rosa Maria: in instruction: b = int(input('Dame valor (mayor) de b = ')) later is an instruction: while b 0: and the result is: Traceback (most recent call last): File H:\Soft_nuevo\Reptil\GCD_MCD_Euclides_Extendido-0.py, line 39, in module while b 0: TypeError: unorderable types: tuple() int() -- components: IDLE files: GCD_MCD_Euclides_Extendido-0.py messages: 174945 nosy: Gravitania priority: normal severity: normal status: open title: Integer converted in tuple without request type: crash versions: Python 3.3 Added file: http://bugs.python.org/file27904/GCD_MCD_Euclides_Extendido-0.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: my email
lolz sorry i already change it..just a newbhie, that's why :Dv From: MRAB pyt...@mrabarnett.plus.com To: python-list@python.org Sent: Wednesday, July 18, 2012 10:08 AM Subject: Re: my email On 18/07/2012 02:44, Maria Hanna Carmela Dionisio wrote: mmdionisio1...@yahoo.com.ph Just a newbhie here : ...who has just revealed her password! [remainder snipped] -- http://mail.python.org/mailman/listinfo/python-list-- http://mail.python.org/mailman/listinfo/python-list
Python Programming expert - adding user
Im just a student :) Our prof gave as a task that we need to make a program using python (for redhat) and c++(for windows) Our objective is to make a program file and we will said it remotely to another computer via network ( its easy and i could do it lolz).. the hard part is the programming..that when the user click the file a box will prompt and ask for username and a password(even without a password) then the username that he inputted will add to the user account of his/her computer :DD HELP HELP EXPERTSS THANKS :D -- http://mail.python.org/mailman/listinfo/python-list
my email
mmdionisio1...@yahoo.com.ph Just a newbhie here : From: python-list-requ...@python.org python-list-requ...@python.org To: mmdionisio1...@yahoo.com.ph Sent: Saturday, July 7, 2012 7:41 PM Subject: Welcome to the Python-list mailing list Welcome to the Python-list@python.org mailing list! The purpose of this mailing list is to support general discussions about the Python programming language. Please remember that this list is mirrored to the Usenet newsgroup comp.lang.python. For more information on the Python programming language see lt;http://www.python.org/ To post to this list, send your email to: python-list@python.org General information about the mailing list is at: http://mail.python.org/mailman/listinfo/python-list If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://mail.python.org/mailman/options/python-list/mmdionisio1993%40yahoo.com.ph You can also make such adjustments via email by sending a message to: python-list-requ...@python.org with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: sweet103093 Normally, Mailman will remind you of your python.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you.-- http://mail.python.org/mailman/listinfo/python-list
Free download: Hot HD movies: Torrent, RAPIDSHARE, megaupload .... LINK, update daily...
HD Family Club -- download HD DVD Movies with rapidshare, megaupload, torrent link ... 100% free .. The Expendables (2010), hot movie!!! Sylvester Stallone, Jason Statham, Jet Li, Dolph Lundgren http://hd-family.blogspot.com/2010/09/expendables-2010.html Redline (2007) RAPIDSHARE LINK; torrent, megaupload, ... Download now! http://hd-family.blogspot.com/2010/09/redline-2007.html -- The top ten of Western cowboy series .. http://hd-family.blogspot.com/2010/09/fistful-of-dollars-1964.html --- Michel Vaillant (2003) RAPIDSHARE LINK Download now! http://hd-family.blogspot.com/2010/09/michel-vaillant-2003.html Downloadd Transformers 2009 NOW with RAPIDSHARE LINK: http://hd-family.blogspot.com/2009/08/transformers-2-revenge-of-fallen-2009.html 21.twenty.one.2008.m-HD.x264 - RAPIDSHARE LINK http://hd-family.blogspot.com/2009/08/21twentyone2008m-hdx264-rapidshare.html Transformers 2 Revenge of The Fallen (hot of 2009) http://hd-family.blogspot.com/2009/06/transformers-revenge-of-fallen.html More and more here: Home page: http://hd-family.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list
Please I need help!
I urgently need money help!https://siteheart.com/js/chat/chat.html? ent=9228hash=97b8aa4b4eec4801f941b0aa97cd2587ipcsid=842e10a5515ee7299638a546b6b2997f Maria -- http://mail.python.org/mailman/listinfo/python-list
Re: any issues with long running python apps?
I can second the stated opinion that Python per se is stable enough. We deliver production systems running 24/7 with uptimes counted in several months and from what I can see, compared to the OP's app, ours is vastly more complex. The only Python-related issue we have encountered so far, wrt to stability, is how timers are working. Extensive creation of timer threads have locked up after some indeterminable time. We found that the issue was probably related to some update in Windows at the time. We do not know whether this issue is resolved (we encountered it back in Python 1.4) and we rewrote our code to use timers differently. I also second that partitioning the solution in working (server) parts and GUI (client) parts is important. I do not second the generally outspoken distrust in Windows. Indeed, I would prefer *nix/*nux but in our case, stability concerns is not one of the issues behind that. We use threading to a certain extent (in addition to partioning into processes). One approach we have, and have shown very useful to gain stability, is to use Exception handling carefully and extensively. We catch *every* exception, report and counteract but do not allow the process/thread to die. This is not a trival approach, by no means, but when one know the app sufficiently, it can be applied with good results. Just my 2 c //Maria -- http://mail.python.org/mailman/listinfo/python-list
FW: MemoryError, can I use more?
I use the physical and kernel memory boxes in the windows task manager under the performance tab... in that way I can see the exact RAM that just OS and idle processes occupy before I run my app, and then also the limit at which my app pushes the memory... M. Angelica Echavarria-Gregory, M.Sc., E.I. Ph.D Candidate University of Miami Phone 305 284-3611 From: sstein...@gmail.com [sstein...@gmail.com] Sent: Friday, February 12, 2010 7:58 PM To: Echavarria Gregory, Maria Angelica Cc: python-list@python.org Subject: Re: MemoryError, can I use more? On Feb 12, 2010, at 7:21 PM, Echavarria Gregory, Maria Angelica wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the machine, python always gives the MemoryError message when it has occupied exactly only 2.2 GB. I have tested this in 4 different machines, all with memory of 3 to 4 GB... I'm amazed. Could any of you please help me to figure out how to change that limit? I typed help(MemoryError) and it is a class itself, but that help told me nothing I can use... How are you determining that it has occupied exactly only 2.2GB? S -- http://mail.python.org/mailman/listinfo/python-list
FW: MemoryError, can I use more?
Dear Chris, One of the machines I tested my app in is 64 bit and happened the same. The RAM consumed by the OS and other processes is already included in the 2.2 I'm telling... my app enters to work when the RAM is already consumed in ~600 MB in the 3- 32 bit machines ... in the 64 bit machine was exactly the same only that it started a little bit higher because it has windows 7... so should I understand that there is nothing I can do for my app to use up more RAM? Thanks for your time and answer, Angelica. M. Angelica Echavarria-Gregory, M.Sc., E.I. Ph.D Candidate University of Miami Phone 305 284-3611 From: Chris Kaynor [ckay...@zindagigames.com] Sent: Friday, February 12, 2010 7:44 PM To: Echavarria Gregory, Maria Angelica Cc: python-list@python.org Subject: Re: MemoryError, can I use more? A 32 bit app can only use 4 GB of memory itself (regardless of the amount of system ram), the OS claims some of this for the system, dlls occupy some of it, etc. As such, the app can only really use a smaller subset (generally between 2 to 3 GB, depending upon the app and the OS). Chris On Fri, Feb 12, 2010 at 4:21 PM, Echavarria Gregory, Maria Angelica m.echavarriagreg...@umiami.edumailto:m.echavarriagreg...@umiami.edu wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the machine, python always gives the MemoryError message when it has occupied exactly only 2.2 GB. I have tested this in 4 different machines, all with memory of 3 to 4 GB... I'm amazed. Could any of you please help me to figure out how to change that limit? I typed help(MemoryError) and it is a class itself, but that help told me nothing I can use... Thanks, Angelica. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
MemoryError, can I use more?
Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the machine, python always gives the MemoryError message when it has occupied exactly only 2.2 GB. I have tested this in 4 different machines, all with memory of 3 to 4 GB... I'm amazed. Could any of you please help me to figure out how to change that limit? I typed help(MemoryError) and it is a class itself, but that help told me nothing I can use... Thanks, Angelica. -- http://mail.python.org/mailman/listinfo/python-list
Any built-in function for smallest positive floating point number?
Hello everybody, Is somebody aware of built-in Python's function that would return a value for smallest positive double precision floating point number (analogous to 'realmin' in Matlab). Python has built-in sys.maxint but I could not find anything for float. Any help would be greatly appreciated. Thanks, Masha liu...@usc.edu -- http://mail.python.org/mailman/listinfo/python-list
Re: Any built-in function for smallest positive floating point number?
A bit more of googling gave me an answer: import numpy as np np.finfo(np.double).tiny array(2.2250738585072014e-308) Thanks, Masha liu...@usc.edu On Aug 11, 2009, at 10:29 AM, Maria Liukis wrote: Hello everybody, Is somebody aware of built-in Python's function that would return a value for smallest positive double precision floating point number (analogous to 'realmin' in Matlab). Python has built-in sys.maxint but I could not find anything for float. Any help would be greatly appreciated. Thanks, Masha liu...@usc.edu -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
shutil.rmtree raises OSError: [Errno 39] Directory not empty exception
Hello, Has anybody seen an exception OSError: [Errno 39] Directory not empty raised by shutil.rmtree? The code that raised an exception creates a lot of directories with files, and then removes them. I got an exception when one of such directories was removed. Here is the backtrace: shutil.rmtree(filename) File /usr/lib64/python2.5/shutil.py, line 178, in rmtree onerror(os.rmdir, path, sys.exc_info()) File /usr/lib64/python2.5/shutil.py, line 176, in rmtree os.rmdir(path) OSError: [Errno 39] Directory not empty: /path/to/my/dir According to the documentation, shutil.rmtree should not care about directory being not empty. Thanks for the help, Masha liu...@usc.edu -- http://mail.python.org/mailman/listinfo/python-list
Re: shutil.rmtree raises OSError: [Errno 39] Directory not empty exception
Thanks for pointing out the parameters for ignore_errors and an onerror callback function. I have been running this code for more than an year, and this is the very first time I see the problem. We switched to the NFS mounted storage though, but there is nothing unusual logged by the system in the /var/log/messages. I checked the permissions - the directory is still there and has exactly the same permissions as other successfully copied and removed directories (the very same process creates the directory and later removes it). The directory is empty though - so the process removed all the entries in it, then some kind of an error occured that triggered the exception. There are lots of similar directories that the process creates and removes, but only one of them raised an exception. Thanks, Masha liu...@usc.edu On Jul 10, 2009, at 5:10 PM, Tim Chase wrote: shutil.rmtree(filename) File /usr/lib64/python2.5/shutil.py, line 178, in rmtree onerror(os.rmdir, path, sys.exc_info()) File /usr/lib64/python2.5/shutil.py, line 176, in rmtree os.rmdir(path) OSError: [Errno 39] Directory not empty: /path/to/my/dir According to the documentation, shutil.rmtree should not care about directory being not empty. This sounds suspiciously like a permission issue. rmtree() *should* walk the tree removing items *if it can*. If a file can't be deleted, it treats it as an error. rmtree() takes parameters for ignore_errors and an onerror callback function, so you can catch these error conditions. -tkc -- http://mail.python.org/mailman/listinfo/python-list
comtypes CreateObject problem
We get the following, less favourable respons :o( Any advice is greatly appreciated!! Setting is python 2.5.2, windows xp professional SP3, SolidEdge V20 SP10 We have success with comtypes interfacing other software like SmarTeam (PDM/PLM software) and of course Excel and alike. Thnx IDLE 1.2.2 import comtypes.client foo = comtypes.client.CreateObject(SolidEdge.Application) # Generating comtypes.gen._8A7EFA3A_F000_11D1_BDFC_080036B4D502_0_1_0 # Generating comtypes.gen._00020430___C000_0046_0_2_0 # Generating comtypes.gen.stdole Traceback (most recent call last): File pyshell#2, line 1, in module foo = comtypes.client.CreateObject(SolidEdge.Application) File C:\Python25\lib\site-packages\comtypes\client\__init__.py, line 204, in CreateObject return _manage(obj, clsid, interface=interface) File C:\Python25\lib\site-packages\comtypes\client\__init__.py, line 165, in _manage obj = GetBestInterface(obj) File C:\Python25\lib\site-packages\comtypes\client\__init__.py, line 102, in GetBestInterface mod = GetModule(tlib) File C:\Python25\lib\site-packages\comtypes\client\_generate.py, line 112, in GetModule mod = _CreateWrapper(tlib, pathname) File C:\Python25\lib\site-packages\comtypes\client\_generate.py, line 188, in _CreateWrapper mod = _my_import(fullname) File C:\Python25\lib\site-packages\comtypes\client\_generate.py, line 26, in _my_import return __import__(fullname, globals(), locals(), ['DUMMY']) File C:\Python25\lib\site-packages\comtypes\gen \_8A7EFA3A_F000_11D1_BDFC_080036B4D502_0_1_0.py, line 3393, in module ( ['in'], POINTER(_midlSAFEARRAY(c_char)), 'Accelerators' )), File C:\Python25\lib\site-packages\comtypes\safearray.py, line 18, in _midlSAFEARRAY sa_type = _make_safearray_type(itemtype) File C:\Python25\lib\site-packages\comtypes\safearray.py, line 52, in _make_safearray_type raise TypeError(itemtype) TypeError: class 'ctypes.c_char' -- http://mail.python.org/mailman/listinfo/python-list
Defunct when using subprocess.Popen
Title: Defunct when using subprocess.Popen Hi! I hope someone can help me out here! I'm running a GUI in python which is able to launch a separate python process that will run forever. In rare cases I will want to kill the launched process. Every time I do so, I end up with the process as defunct. Can anybody help me clean it up in a nice way? My code snippets: #Launching a separate process (no communication in between the process needed) # When closing the GUI, the launched program should not be killed. command = ['test.py',' -c ',config] process = subprocess.Popen(command, preexec_fn = os.setsid) On request from GUI I do the following: os.kill(process.pid,9) FYI, it is all running on Linux. All suggestions are appreciated! -- http://mail.python.org/mailman/listinfo/python-list
Defunct when using subprocess.Popen
Title: Defunct when using subprocess.Popen Hi! I hope someone can help me out here! I'm running a GUI in python which is able to launch a separate python process that will run forever. In rare cases I will want to kill the launched process. Every time I do so, I end up with the process as defunct. Can anybody help me clean it up in a nice way? My code snippets: #Launching a separate process (no communication in between the process needed) # When closing the GUI, the launched program should not be killed. command = ['test.py',' -c ',config] process = subprocess.Popen(command, preexec_fn = os.setsid) On request from GUI I do the following: os.kill(process.pid,9) FYI, it is all running on Linux. All suggestions are appreciated! -- http://mail.python.org/mailman/listinfo/python-list
Re: C++ or Python
On Jun 28, 12:22 am, Kurda Yon [EMAIL PROTECTED] wrote: I would like to know what are advantages of Python in comparison with C ++? In which cases and why Python can be a better tool than C++? Thank you! Back in 2002, we made a hard decision between c++ (well established here) java (not as mature back then) and python (completely new to my company). The task was to do a complete rewrite of our control software running our fully automatic pallet conveyor systems. The architecture is three-tier; host (not our system), service with GUI (com uppwards and downwards plus supporting the operators of the plant) and PLC nearest the el-mech. We decided to go for python since we always could fallback on ansi c in case of performance issues. We have today no regretted this! We have extended the architecure since with handhelds and they are programmed with java due to lack of proper python possibilities (at the time). We have further programmed code generatord for the PLC code. and so on.. :o) Sure, c++ could have been used but not at the effort(lessness) we now experience. Mu 2 cents//Maria -- http://mail.python.org/mailman/listinfo/python-list
run shell commands
Hello! :) I'm trying to run shell commands both with os.system() and subprocess.Popen() class. But I can't run aliases or function defined in my .bashrc file, like in the login interactive shell. Can you help me? Maybe have I to add some commands to load the .bashrc? Thanks a lot! :) Ric. -- http://mail.python.org/mailman/listinfo/python-list
Re: Who uses Python?
I tend to agree with some earlier poster that if you use Python you are, in a sense, a programmer :o) But seriously, we use Python for controlling fully automated logistics solutions (conveyors and stacker cranes), for generating PLC code etc etc. We are also about to start using FactoryCAD (a thingy from UGS to run on top af AutoCAD) in which we have intelligent objects. These objects have action code and FactoryCAD contains an embedded Python interpreter. Our mech engineers thus write (although a bit simple but still..) Python to make things work :o) We further have generators of mechanical assemblies in SolidEdge. We use a rule based approach and both the configuration files and the rule base are in Python. Our Mech engineers maintain that too. My two cent.. -- http://mail.python.org/mailman/listinfo/python-list
Re: What is deployment?
On May 20, 7:28 am, Paul Rubin http://[EMAIL PROTECTED] wrote: Ben Finney [EMAIL PROTECTED] writes: Agreed. I usually discuss deployment as meaning everything required to take something from the point of working in a vendor's lab environment, to an actual working installation in a production environment. I'd go beyond that. It includes putting the people and procedures in place for keeping the production system operating, upgrading it as needed, customer support, the whole bit. It's all the stuff that happens on the other side of the line separating development from operations. I would suggest a somewhat more limited view. That is, deployment is the process after development is finished (or the product system is purchased) up until it is in full operation (including establishing support organisation etc). The exact point of time is, of course, not very clear cut. Upgrading the product, adding more users, extending the use etc. is not, as I see it, *deployment*. But then again, one could say that an upgrade is deployed. However, I prefer to view that as a separate project with its own process. -- http://mail.python.org/mailman/listinfo/python-list
Processing Solid Edge objects
I consider using Python to process Solid Edge .par .asm etc objects. Solid Edge provides a pretty rich documentation and tutorials. Still, when trying it out, using PyWin32, I get somewhat frustrated. So, I hope for someone out there to be willing to share experiences. The objective is to automate generation of customer specific machine elements from project spec's. In particular, we wish to be able to use .par files as templates and, by taking a copy and changing attribute values, instantiate components to be used in an assembly. The end result shall be a complete construction structure from which, among many things, customer doc's drawings and Bill Of Materials are to be extracted. //M -- http://mail.python.org/mailman/listinfo/python-list
Re: Processing Solid Edge objects
olive skrev: It would help if you could give an exemple of .par and .asm file. Is it human readable, XML ... ? Is there any other import/export file format provided ? The .par files and friends are in binary format so the method I prefer is using the provided COM interfaces and access the various objects that way. Therefor I seek advice from those who have tried this so I may decide whether I shall pursue the Python trail or go for some other language like VB or C# where there are code samples. -- http://mail.python.org/mailman/listinfo/python-list
Using py2exe to wrap a service?
I have an app using active_directory.py and the std module asyncore in a Windows Service. Works perfectly! That is, until I try to use py2exe to create a standalone (need to avoid installing the entire Python etc. on the target system). When I try to start the installed Service, the system tells me it terminates prematurely and in the event log I find: The instance's SvcRun() method failed File win32serviceutil.pyc, line 785, in SvcRun File XXProxySvc.pyc, line 126, in SvcDoRun File XXProxySvc.pyc, line 94, in setup File D:\projects\XXProxy\DB.py, line 54, in loadFromAD File active_directory.pyc, line 402, in search File active_directory.pyc, line 398, in root File active_directory.pyc, line 371, in AD File active_directory.pyc, line 378, in _root File win32com\client\__init__.pyc, line 73, in GetObject File win32com\client\__init__.pyc, line 88, in Moniker pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None) The offending line is: import active_directory as AD ... for item in AD.search (objectCategory='Person'): ... I.e. the call to AD.search() is the entry point to the problem. The setup.py is (pretty straight forward..): from distutils.core import setup import py2exe class Target: def __init__(self, **kw): self.__dict__.update(kw) # for the versioninfo resources self.version = 0.9.0 self.company_name = My Company self.copyright = My Company (c) self.name = FilterProxy # a NT service, modules is required myservice = Target( # used for the versioninfo resource description = AD Driven Mail Filter, # what to build. For a service, the module name (not the # filename) must be specified! modules = [ProxySvc] ) excludes = [] setup(options = {py2exe: {# create a compressed zip archive #compressed: 1, #optimize: 2, excludes: excludes } }, service=[myservice] ) 'elp! Plz! -- http://mail.python.org/mailman/listinfo/python-list
CMFBoard
Hi everybody! I use CMFBoard 2.2.1 as a discussion board on my website. I want to open the forum to all users, anonymous and registred users! But my problem is, that whenever an ano user posts a topic, the overview doesn't display the message correctly. Instead of a table containing topic-title, short description, last reply, user.. there is only some text shown, like this: {'last_reply_created': '2006-05-27 09:36', 'msgIcon': 'nbsp;', 'Title': 'test', 'actions': {'reply': 'http://forumfolder.2006-05-27.1751137831/public/0002/forum_reply_form', 'delete': 'http://forumfolder.2006-05-27.1751137831/public/0002/forum_message_delete_form'}, 'topic': ForumTopic instance at 2a9fe083a0, 'last_user': 'Anonymous User', 'topicIcon': u'', 'Description': '', 'creator': 'admin', 'replyCount': 1, 'msg': ForumMessage instance at ff9af30, 'review_state': 'published', 'topicId': '0002', 'last_reply_title': '', 'topicDesc': u'', 'pages_links': [], 'view_mode': 'flat', 'last_reply_topic': 0, 'anonymous': 1, 'last_user_isanon': 1, 'icon': 'img src=http:///fcTopic_icon.gif; alt=Normal topic title=Normal topic longdesc= height=11 width=17 /', 'hits': 1, 'created': '2006-05-27 09:35', 'url': 'http:///forumfolder.2006-05-27.1751137831/public/0002', 'sticky_flag': 1, 'last_reply_link': 'http://forumfolder.2006-05-27.1751137831/public/0002/0002'} I would be very happy, if anyone can help me!! Best regards, Maria -- http://mail.python.org/mailman/listinfo/python-list
TEENS FUCKIN FOR CASH
18 Years young Teenies fuckin for Cash! Geile Teens ficken fuer Taschengeld! http://www.sexycorner.biz Enjoy Maria -- http://mail.python.org/mailman/listinfo/python-list