FTPUTIL WITH TKFILEDIALOG

2006-06-24 Thread veki
HI,ALL I am new ftputil user and I need help about something:
my prog:

>>> import tkFileDialog
>>> import ftputil
>>> name=tkFileDialog.askopenfile()
>>>ftp=ftputil.FTPHost() #Please when you want try this prog
use  your ftp server
>>> nesto1=name.name
>>> ftp.upload(nesto1,nesto1,'b')
ERROR IS:

Traceback (most recent call last):
  File "", line 1, in -toplevel-
ftp.upload(nesto1,nesto1,'b')
  File "C:\Python24\lib\ftputil.py", line 463, in upload
self.__copy_file(source, target, mode, open, self.file)
  File "C:\Python24\lib\ftputil.py", line 452, in
__copy_file
target = target_open(target, target_mode)
  File "C:\Python24\lib\ftputil.py", line 282, in file
raise ftp_error.FTPIOError("directory '%s' is not
accessible" %
FTPIOError: directory '/C:/Python24' is not accessible


THANKS!!

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


directpython question

2007-09-23 Thread veki
Hello,
I've got IBM Thinkpad 30 laptop with configuration:

IBM Thinkpad R30
P3 Mobile Celeron 900mhz
128mb sdram pc133
15gb hdd
cd-rom Teac cd-224e
56K V.90/92
10/100 Ethernet
lpt port
ps2 port
2 x usb port
vga-out
pcmcia

,then I have been install directx 9.0c,Python 2.5 and directpython for
python 2.5.On my two computers directpython works but on this
laptop it don't want work e.g:

When I want execute this script on laptop:

import d3dx
frame=d3dx.Frame(u'SOME FRAME')
frame.mainloop()

I get this error:

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\veki1.py", line 2, in 
fr=d3dx.Frame(u'SOME FRAME')
  File "C:\Python25\lib\site-packages\directpy\d3dx.py", line 639, in
__init__
self._createDevice(area[2:4])
  File "C:\Python25\lib\site-packages\directpy\d3dx.py", line 659, in
_createDevice
raise RuntimeError("No valid mode found")
RuntimeError: No valid mode found

Regards,
Vedran


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


Python script setup

2006-08-11 Thread 2Good4You-Veki(Cro)
Hi all,

When I want setup my script:

I write:

from distutils.core import setup
setup(name="myscript",
 version='1.0',
 scripts=["myscripts.py"])

or some else example,error is


Traceback (most recent call last):
  File "", line 1, in -toplevel-
setup(name="myscript",
 version='1.0',
 scripts=["myscripts.py"])
  File "C:\Python24\distutils\core.py", line 101, in setup
_setup_distribution = dist = klass(attrs)
  File "C:\Python24\distutils\dist.py", line 130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'

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


NNTPLIB STRANGE ERROR

2006-08-13 Thread 2Good4You-Veki(Cro)
HI,
when I want use python nntplib:

>>> import nntplib
>>> s=nntplib.NNTP('news.t-com.hr')
>>> s.group('hr.mag.bug')

THEN ERROR IS:

Traceback (most recent call last):
  File "", line 1, in -toplevel-
s.group('hr.mag.bug')
  File "C:\Python24\lib\nntplib.py", line 346, in group
resp = self.shortcmd('GROUP ' + name)
  File "C:\Python24\lib\nntplib.py", line 260, in shortcmd
return self.getresp()
  File "C:\Python24\lib\nntplib.py", line 215, in getresp
resp = self.getline()
  File "C:\Python24\lib\nntplib.py", line 204, in getline
line = self.file.readline()
  File "C:\Python24\lib\socket.py", line 340, in readline
data = self._sock.recv(self._rbufsize)
error: (10053, 'Software caused connection abort')

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