Re: Unable to make ironpython run in browser with silverlight

2011-05-25 Thread Sunny
On May 26, 9:44 am, Jimmy Schementi  wrote:
> You need to run it from a web-server; it doesn't work when running from 
> file:// due to Silverlight's security sandbox. Read the comments on my 
> blog-post, it mentions the web-server there.

I see..
But here: http://silverlighttest.zzl.org/silverlighttest.html , it
runs from a web server, but still gives error.
And it has the same source code as your example, except that I replace
repl.py with the direct link, as you advise on your blog.

I think the problem is with this part:
http://github.com/jschementi/pycon2010/
raw/master/repl.py">

Because when I delete it, it runs properly.

Do you know why is that?
-- 
http://mail.python.org/mailman/listinfo/python-list


Python Developers needed in Austin TX with a top notch IT company

2012-10-02 Thread sunny narang
Job Title: Python developers
Duration: 6 months; 
Location: Austin TX

Responsibilities / Skills: 
1) distributed complex application experience
2) prefer experience with enterprise class identity management systems, 
particularly around auth/credentials
3) experience with openstack
4) experience with large scale systems
5) Proficiency with Linux, ability to write Bash / Perl / Python scripts to run 
CRON jobs
6) Experience working in an agile environment and with a distributed team


If interested, please reply with your updated Resume at 
sunny_nar...@persistent.co.in

Regards,

Sunny Narang 
Talent Acquisition
sunny_nar...@persistent.co.in
Persistent Systems Ltd. | 20 Glorious Years | www.persistentsys.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ValueError: invalid literal for int():

2010-07-26 Thread Sunny chilgod
Hi Chris,

Thanks for your help. but i need to to convert the whole string to int.

heres my full code,

ptid = 'item_01bom'
so item_01bom is a field name in form, so i get its value,
partintid = int(form[ptid]).  # the value of form[ptid] is 'Screw plugg
 (91_10 - untitled)'

Hence i get the error. hope i am clear now.

-
Sunny


On Mon, Jul 26, 2010 at 4:25 PM, Chris Rebert  wrote:

> On Mon, Jul 26, 2010 at 3:25 AM, lee  wrote:
> > Hi,
> >
> > I have a value,
> >
> > partintid = int(Screw plugg  (91_10 -> untitled))
> >
> > but i get ValueError: invalid literal for int(): Screw plugg  (91_10 -
> >> untitled)
> > any help?
>
> That is most certainly not your actual exact code, since it has a few
> SyntaxErrors and thus Python would have bailed-out long before it ever
> got the chance to raise ValueError. Please copy-and-paste the *actual
> exact code* and exact error message.
> Also, next time say what the desired output/behavior you're seeking is.
>
> That being said, if your code is (as I suspect) in actuality:
>
> partintid = int("Screw plugg  (91_10 -> untitled)")
>
> then I would agree with int() and say that that string is nowhere
> close to representing an integer (how precisely is "Screw" to be
> interpreted as an integer, pray tell?); so what's so surprising about
> getting an error when trying to convert it to one?
>
> I suspect you're trying to extract 91 or 10 from the string. Use
> string methods[1] to parse the desired numerical section out of the
> string, and then pass the resulting numerical string to int(), which
> will accept it without error and properly convert it.
>
> If you want more detailed help, please provide a specification of
> typical input strings and desired output integers.
>
> [1]: http://docs.python.org/library/stdtypes.html#string-methods
>
> Regards,
> Chris
> --
> http://blog.rebertia.com
>



-- 
All that we are is the result of what we have thought. The mind is
everything. What we think we become.

Regards,
Sunny
-- 
http://mail.python.org/mailman/listinfo/python-list


Tkinter problem

2021-06-18 Thread Liya Ann Sunny
I am using Colab. How could  solve this problem.
import tkinter as Tk
from tkinter import *
import sys
import os
#create main window
master = Tk()
master.title("tester")
master.geometry("300x100")


#make a label for the window
label1 = tkinter.Label(master, text='Hello')
# Lay out label
label1.pack()

# Run forever!
master.mainloop()
The error shows that : 
 in ()
  9 
 10 #create main window
---> 11 master = Tk()
 12 master.title("tester")
 13 master.geometry("300x100")

/usr/lib/python3.7/tkinter/__init__.py in __init__(self, screenName, baseName, 
className, useTk, sync, use)
   2021 baseName = baseName + ext
   2022 interactive = 0
-> 2023 self.tk = _tkinter.create(screenName, baseName, className, 
interactive, wantobjects, useTk, sync, use)
   2024 if useTk:
   2025 self._loadtk()

TclError: couldn't connect to display ":0.0"
-- 
https://mail.python.org/mailman/listinfo/python-list


Anaconda navigator not working

2021-06-20 Thread Liya Ann Sunny
After installing Anaconda, I tried to open the anaconda navigator but it did 
not work.
When i check in anaconda prompt by running code
>>>anaconda
it got error like this
(base) C:\Users\Acer>anaconda
Traceback (most recent call last):
  File "C:\Users\Acer\anaconda3\Scripts\anaconda-script.py", line 6, in 
from binstar_client.scripts.cli import main
  File "C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\__init__.py", 
line 17, in 
from .utils import compute_hash, jencode, pv
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\__init__.py", 
line 17, in 
from .config import (get_server_api, dirs, load_token, store_token,
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\config.py", 
line 54, in 
USER_LOGDIR = dirs.user_log_dir
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 257, in user_log_dir
return user_log_dir(self.appname, self.appauthor,
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 205, in user_log_dir
path = user_data_dir(appname, appauthor, version); version = False
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: %1 is not a valid Win32 
application.

what is its solution?
-- 
https://mail.python.org/mailman/listinfo/python-list