• mstonespeedy

    Will do. Thanks again.

    posted in Pythonista read more
  • mstonespeedy

    Thanks for your additional help, @JonB.

    I've been trying this URL:

    'ssh://user@git.myCompany.com/git/MyRepository.git'

    I did some trial and error with your test script, since can_read() was always false. I finally got it to work with an extra slash after the host name, like this:

    'ssh://user@git.myCompany.com//git/MyRepository.git'

    I've never had to do this with the regular git client. Do you know if there is a reason for requiring the extra slash? If not, I can report it as a bug.

    Relieved to finally have it working, though. Thanks again for your patience and help!

    posted in Pythonista read more
  • mstonespeedy

    stash: <class 'dulwich.errors.HangupException'>: The remote server unexpectedly closed the connection.

    Traceback (most recent call last):
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/stash/system/shruntime.py", line 490, in exec_py_file
    execfile(file_path, namespace, namespace)
    File "test_dulwich_ssh.py", line 60, in <module>
    fetch_one()
    File "test_dulwich_ssh.py", line 58, in fetch_one
    progress=sys.stdout.write)
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 251, in fetch
    progress)
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 559, in fetch_pack
    refs, server_capabilities = read_pkt_refs(proto)
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 168, in read_pkt_refs
    for pkt in proto.read_pkt_seq():
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/protocol.py", line 201, in read_pkt_seq
    pkt = self.read_pkt_line()
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/protocol.py", line 152, in read_pkt_line
    raise HangupException()
    HangupException: The remote server unexpectedly closed the connection.

    posted in Pythonista read more
  • mstonespeedy

    When I run the script with your source, it creates a paramikolog.txt file just fine. But when I use my source, apparently there's nothing to write because the file is never created. And no other output on the command line. All I get is a dulwichtests/.git folder with initialized files and folders.

    posted in Pythonista read more
  • mstonespeedy

    Thanks for your continued help, @JonB.

    With your script, I don't get a paramikolog.txt at all. Just the same HangupException.

    Our company server reports:

    Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-100-generic x86_64)
    git version 1.7.9.5

    I don't believe we use submodules. How do I tell?

    posted in Pythonista read more
  • mstonespeedy

    Thanks, @JonB. Sorry, I thought I had already done that. OK, now that I have that back in there, I'm getting the same dulwich.errors.HangupException as I started with.

    Any other ideas for figuring out what's happening?

    posted in Pythonista read more
  • mstonespeedy

    @JonB, I get the same TypeError with Python 2 or 3. However, if I run the Python 2 script from the command line, I get the following:

    stash: <type 'exceptions.OSError'>: [Errno 1] Operation not permitted

    Traceback (most recent call last):
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/stash/system/shruntime.py", line 490, in exec_py_file
    execfile(file_path, namespace, namespace)
    File "test.py", line 6, in <module>
    dulwich.porcelain.clone('ssh://user@git.myCompany.com/MyRepository.git')
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/porcelain.py", line 258, in clone
    progress=errstream.write)
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 251, in fetch
    def abort():
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 557, in fetch_pack

    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 921, in _connect
    raise TypeError(path)
    File "/private/var/mobile/Containers/Shared/AppGroup/E35AE39A-48FB-44A1-BC2A-EE57EF6EAA4D/Pythonista3/Documents/site-packages/dulwich/client.py", line 877, in run_command
    if port is not None:
    File "/var/containers/Bundle/Application/297756CD-F73E-44E6-AB25-42E99062FE48/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/subprocess.py", line 711, in init
    errread, errwrite)
    File "/var/containers/Bundle/Application/297756CD-F73E-44E6-AB25-42E99062FE48/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/subprocess.py", line 1205, in _execute_child
    self.pid = os.fork()
    OSError: [Errno 1] Operation not permitted

    posted in Pythonista read more
  • mstonespeedy

    Thanks, @abcabc. Yes, I have Working Copy successfully cloning as I mentioned earlier. However, I'd like to see if I can get dulwich working properly, since it would be much more convenient for me.

    Jelmer says that the TypeError is a known issue with Python 3, and that it is in the bug tracker. So, I may be stuck for now.

    posted in Pythonista read more
  • mstonespeedy

    Thanks for the tips, @JonB.

    Has the subprocess issue been reported? I don't have a beta version of anything I'm using, as far as I know. Which files should I look for?

    I tried using dulwich.porcelain.clone('ssh://user@git.myCompany.com/MyRepository.git'). I get the following error. Any ideas?

    TypeError: MyRepository.git

    posted in Pythonista read more
  • mstonespeedy

    Thanks for the additional detail, @JonB.

    I did indeed need that second .ssh folder to get back where I was with Pythonista 2. And I did find the dulwich folder in stash/lib. Oh, and git.py has the ParamikoSSHVendor line. However, I'm back to the same error as before ("The remote server unexpectedly closed the connection.").

    I'll try to look into the subprocess issue later today. Is Jelmer aware of it?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!