← Back to team overview

dulwich-users team mailing list archive

Re: ValueError: invalid literal for int() with base 16: 'logi'

 

Injected paramiko subdir into library.zip
Injected Crypto into library.zip
Patched
 REMOTE/BRANCH STUFF
diff -r 711baa274f78 hggit/git_handler.py
--- a/hggit/git_handler.py      Sun Dec 22 16:31:12 2013 +0000
+++ b/hggit/git_handler.py      Thu Jan 02 07:35:00 2014 +0300
@@ -1351,6 +1351,9 @@
         if not issubclass(client.get_ssh_vendor, _ssh.SSHVendor):
             client.get_ssh_vendor = _ssh.generate_ssh_vendor(self.ui)

+        import dulwich.client
+        client.get_ssh_vendor = dulwich.client.ParamikoSSHVendor
+
         git_match = RE_GIT_URI.match(uri)
         if git_match:
             res = git_match.groupdict()

Got error:
destination directory: recordscreen
abort: No module named _fastmath!

There is something badly wrong with the way HG loads extensions,
because I can see that every ImportError for _fastmath is catched in
PyCrypto.

Traceback (most recent call last):
  File "mercurial\dispatch.pyc", line 133, in _runcatch
  File "mercurial\dispatch.pyc", line 806, in _dispatch
  File "mercurial\dispatch.pyc", line 585, in runcommand
  File "mercurial\extensions.pyc", line 196, in wrap
  File "hgext\color.pyc", line 417, in colorcmd
  File "mercurial\dispatch.pyc", line 897, in _runcommand
  File "mercurial\dispatch.pyc", line 868, in checkargs
  File "mercurial\dispatch.pyc", line 803, in <lambda>
  File "mercurial\util.pyc", line 512, in check
  File "mercurial\commands.pyc", line 1286, in clone
  File "mercurial\hg.pyc", line 372, in clone
  File "mercurial\localrepo.pyc", line 2431, in clone
  File "C:\hg-git\hggit\hgrepo.py", line 14, in pull
  File "C:\hg-git\hggit\git_handler.py", line 205, in fetch
  File "C:\hg-git\hggit\git_handler.py", line 1016, in fetch_pack
  File "dulwich\client.pyc", line 521, in fetch_pack
  File "dulwich\client.pyc", line 881, in _connect
  File "dulwich\client.pyc", line 843, in run_command
  File "mercurial\demandimport.pyc", line 102, in __getattribute__
  File "mercurial\demandimport.pyc", line 74, in _load
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "C:\Mercurial\library.zip\paramiko\__init__.py", line 65, in <module>
  File "mercurial\demandimport.pyc", line 130, in _demandimport
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "C:\Mercurial\library.zip\paramiko\transport.py", line 34, in <module>
  File "mercurial\demandimport.pyc", line 130, in _demandimport
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "C:\Mercurial\library.zip\paramiko\auth_handler.py", line 29, in <module>
  File "mercurial\demandimport.pyc", line 111, in _demandimport
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "C:\Mercurial\library.zip\paramiko\common.py", line 101, in <module>
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\__init__.py",
line 33, in new
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\_UserFriendlyRNG.py",
line 206, in new
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\_UserFriendlyRNG.py",
line 200, in _get_singleton
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\_UserFriendlyRNG.py",
line 144, in __init__
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\_UserFriendlyRNG.py",
line 85, in __init__
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\Fortuna\FortunaAccumulator.py",
line 102, in __init__
  File "mercurial\demandimport.pyc", line 102, in __getattribute__
  File "mercurial\demandimport.pyc", line 74, in _load
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Random\Fortuna\FortunaGenerator.py",
line 34, in <module>
  File "mercurial\demandimport.pyc", line 130, in _demandimport
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
  File "zipextimporter.pyc", line 82, in load_module
  File "c:\temp\easy_install-k9gjdd\pycrypto-2.6-py2.7-win32.egg.tmp\Crypto\Util\number.py",
line 56, in <module>
  File "mercurial\demandimport.pyc", line 102, in __getattribute__
  File "mercurial\demandimport.pyc", line 74, in _load
  File "mercurial\demandimport.pyc", line 43, in _hgextimport
ImportError: No module named _fastmath
abort: No module named _fastmath!

I am stuck


On Thu, Jan 2, 2014 at 3:54 AM,  <jelmer@xxxxxxxxx> wrote:
> FWIW I don't have access to windows either (though I'll happily take patches
> to improve support for it).
>
> It seems like the culprit here is the subprocess invocations of git and SSH.
>
> Anatoly, If it is git+ssh that is not working for you, can you try the
> experimental paramiko SSH vendor?
>
>
> Augie Fackler <raf@xxxxxxxxxxx> wrote:
>>
>>
>> On Jan 1, 2014 7:00 PM, "anatoly techtonik" <techtonik@xxxxxxxxx> wrote:
>> >
>> > On Thu, Jan 2, 2014 at 2:00 AM, Augie Fackler <raf@xxxxxxxxxxx> wrote:
>> > > On Jan 1, 2014, at 11:43 AM, anatoly techtonik <techtonik@xxxxxxxxx>
>> > > wrote:
>> > >
>> > >> Unfortunately, Mercurial comes with its own version of Dulwich (0.9.4
>> > >> for 2.8.1).
>> > >
>> > > Only on Windows, for what it's worth. That's a packaging-level
>> > > decision, not a code-author level decision.
>> > >
>> > > It's probably a bug if hg-git doesn't work with dulwich 0.9.4, but I
>> > > can only speak to the fact that it works on my machines when tested with the
>> > > test suite.
>> >
>> > Do you want to say that command line "hg clone
>> > git+ssh://github.com/techtonik/recordscreen " works ok? Are you on
>> > Windows too?
>>
>> I push to github using git+ssh. Works fine.
>>
>> I own no windows machines, nor do I have access to one.


Follow ups

References