Comments (12)
Looks like you passed a string for the 'recursive' parameter of put(). Don't do that, pass either True
(not "True"
) of False
.
from scp.py.
d'oh. thanks.
from scp.py.
different error after correcting that:
ERROR:paramiko.transport:Unknown exception: Unknown type
ERROR:paramiko.transport:Traceback (most recent call last):
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\transport.py", line 1643, in run
ERROR:paramiko.transport: self.auth_handler._handler_table[ptype](self.auth_handler, m)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\auth_handler.py", line 229, in _parse_service_accept
ERROR:paramiko.transport: m.add_string(self.username)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\message.py", line 285, in add_string
ERROR:paramiko.transport: s = asbytes(s)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\common.py", line 170, in asbytes
ERROR:paramiko.transport: raise Exception('Unknown type')
ERROR:paramiko.transport:Exception: Unknown type
ERROR:paramiko.transport:
this setup worked fine before trying to use the recursive option, FWIW.
from scp.py.
Hard to tell from the code you didn't paste... what are the arguments?
from scp.py.
Sorry, same as the above example.
from scp.py.
You didn't give the arguments above, what are bag_dir_parent
and remote_path
?
from scp.py.
bag_dir_parent
'C:\Users\Alex\AppData\Local\Temp\tmpxniltb'
remote_path
'~/deposit_here/324-444'
from scp.py.
I can't seem to duplicate on OSX, so this is probably a Windows issue...
from scp.py.
I'm gonna take a guess here and assume that you passed the wrong type, again, for the username or password. But really, I'm not gonna help you again if you don't paste some code.
from scp.py.
It's literally the same thing from my first comment except with recursive=True.
bag_dir_parent
'C:\Users\Alex\AppData\Local\Temp\tmpxniltb'
remote_path
'~/deposit_here/324-444'
scp.put(bag_dir_parent, remote_path, recursive="True")
ERROR:paramiko.transport:Unknown exception: Unknown type
ERROR:paramiko.transport:Traceback (most recent call last):
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\transport.py", line 1643, in run
ERROR:paramiko.transport: self.auth_handler._handler_table[ptype](self.auth_handler, m)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\auth_handler.py", line 229, in _parse_service_accept
ERROR:paramiko.transport: m.add_string(self.username)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\message.py", line 285, in add_string
ERROR:paramiko.transport: s = asbytes(s)
ERROR:paramiko.transport: File "c:\Users\Alex\Dropbox\Python27\lib\site-packages\paramiko\common.py", line 170, in asbytes
ERROR:paramiko.transport: raise Exception('Unknown type')
ERROR:paramiko.transport:Exception: Unknown type
Am I somehow being difficult?
from scp.py.
the username or password
I don't understand how you can fail to locate that.
from scp.py.
Oh, actually, you're right, those are probably QString :)
Sorry -- I got frustrated at you asking me for the same thing over again, and then didn't realize when you were actually raising something different. Closing this!
from scp.py.
Related Issues (20)
- Support streams HOT 3
- exlude some files HOT 1
- remote delete Files after successfully download HOT 1
- Freebsd (Juniper Junos) not happy with extra space in Secure Copy get HOT 2
- Creating directories HOT 1
- Transfer directory HOT 4
- paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key) on all tests HOT 1
- Get data into file-like object - getfo HOT 1
- scp does not work with pathlib.PurePath HOT 1
- How do I download multiple files at the same time?
- Permission denied with .put() HOT 10
- Remote wildcard does not work HOT 2
- File not closed in case SocketTimeout occured
- Pass progress callback when calling get/put methods on SCPClient HOT 3
- Retrieve scp errors HOT 6
- add support when both source and target are from remote locations (not necessary the same server)
- Add support for get() to keep downloaded file in memory via a BytesIO object as the "local_file" HOT 1
- Request for enhancement support to download all regular file in case of there is non-regular file under one folder HOT 3
- Using a trailing forward slash in Windows causes problems
- New Release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scp.py.