Code Monkey home page Code Monkey logo

Comments (12)

remram44 avatar remram44 commented on July 23, 2024

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.

axfelix avatar axfelix commented on July 23, 2024

d'oh. thanks.

from scp.py.

axfelix avatar axfelix commented on July 23, 2024

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.

remram44 avatar remram44 commented on July 23, 2024

Hard to tell from the code you didn't paste... what are the arguments?

from scp.py.

axfelix avatar axfelix commented on July 23, 2024

Sorry, same as the above example.

from scp.py.

remram44 avatar remram44 commented on July 23, 2024

You didn't give the arguments above, what are bag_dir_parent and remote_path?

from scp.py.

axfelix avatar axfelix commented on July 23, 2024

bag_dir_parent
'C:\Users\Alex\AppData\Local\Temp\tmpxniltb'
remote_path
'~/deposit_here/324-444'

from scp.py.

axfelix avatar axfelix commented on July 23, 2024

I can't seem to duplicate on OSX, so this is probably a Windows issue...

from scp.py.

remram44 avatar remram44 commented on July 23, 2024

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.

axfelix avatar axfelix commented on July 23, 2024

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.

remram44 avatar remram44 commented on July 23, 2024

the username or password

I don't understand how you can fail to locate that.

from scp.py.

axfelix avatar axfelix commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.