question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to use git clone, downloading dulwich fails.

See original GitHub issue

When trying to clone a git repo, I get the following…

Need to download dulwich.  OK to download [y/n]?y
Opening: https://github.com/jsbain/dulwich/archive/ForStaSH_0.12.2.zip
Save as: /private/var/mobile/Containers/Data/Application/30242052-8625-4665-9AB7-67AE63969A2F/tmp/dulwich.zip  
    400490 
/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/lib/dulwich.old: does not exist
mv: /private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/lib/dulwich: no such file or directory
/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/lib/dulwich.old: does not exist
Opening: https://github.com/jsbain/gittle/archive/master.zip
Save as: /private/var/mobile/Containers/Data/Application/30242052-8625-4665-9AB7-67AE63969A2F/tmp/gittle.zip  
     28334 
Opening: https://github.com/FriendCode/funky/archive/master.zip
Save as: /private/var/mobile/Containers/Data/Application/30242052-8625-4665-9AB7-67AE63969A2F/tmp/funky.zip  
      8474 
stash: <class 'ImportError'>: No module named 'urlparse'

[~/Documents]$ 

Worth mentioning I did do self update

StaSh v0.7.0a10
Tip: You can omit .py when typing command name, e.g. pwd is the same as pwd.py
[~/Documents]$ selfupdate
Running selfupdate ...
Branch: master
Checking for new version ...
Already at latest version

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Tkizzycommented, Jul 11, 2016

I see @ywangd. Sounds like you are on top of it. Forgive me if this is an inappropriate place to ask this next question.

I’m trying to follow along w/the stash github tutorial, but there is no mention of how to authenticate w/a github account to be able to push to it… How does one do so?

1reaction
ywangdcommented, Jul 11, 2016

This is because you ran the tests with Python 3 interpreter and stash is not Python 3 ready yet. The launch_stash.py script has a python2 shebang to tell Pythonista to use Python 2, while the runtests does not contain any shebang lines.

PS: I have Travis CI configured to run the tests on every commit. So rest assured that they are always up to date.

On Tue, Jul 12, 2016 at 9:26 AM, Tizzy notifications@github.com wrote:

By the way when I run the stash tests, here’s what I get.

EEEEE

ERROR: tests.test_completer (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_completer Traceback (most recent call last): File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 429, in _find_test_path module = self._get_module_from_name(name) File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 370, in _get_module_from_name import(name) File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/system/tests/test_completer.py”, line 4, in <module> import stash File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/stash.py”, line 12, in <module> from ConfigParser import ConfigParser ImportError: No module named ‘ConfigParser’

ERROR: tests.test_expander (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_expander Traceback (most recent call last): File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 429, in _find_test_path module = self._get_module_from_name(name) File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 370, in _get_module_from_name import(name) File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/system/tests/test_expander.py”, line 5, in <module> import stash File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/stash.py”, line 12, in <module> from ConfigParser import ConfigParser ImportError: No module named ‘ConfigParser’

ERROR: tests.test_runtime (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_runtime Traceback (most recent call last): File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 429, in _find_test_path module = self._get_module_from_name(name) File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 370, in _get_module_from_name import(name) File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/system/tests/test_runtime.py”, line 5, in <module> import stash File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/stash.py”, line 12, in <module> from ConfigParser import ConfigParser ImportError: No module named ‘ConfigParser’

ERROR: tests.test_termemu (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_termemu Traceback (most recent call last): File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 429, in _find_test_path module = self._get_module_from_name(name) File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 370, in _get_module_from_name import(name) File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/system/tests/test_termemu.py”, line 4, in <module> import stash File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/stash.py”, line 12, in <module> from ConfigParser import ConfigParser ImportError: No module named ‘ConfigParser’

ERROR: tests.test_threads (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_threads Traceback (most recent call last): File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 429, in _find_test_path module = self._get_module_from_name(name) File “/var/containers/Bundle/Application/537C5EDE-81F5-4C3E-9B60-31E2AC62368D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/unittest/loader.py”, line 370, in _get_module_from_name import(name) File “/private/var/mobile/Containers/Shared/AppGroup/579D678C-22E6-4C16-A07A-D661B02C66E1/Pythonista3/Documents/site-packages/stash/system/tests/test_threads.py”, line 5, in <module> from StringIO import StringIO ImportError: No module named ‘StringIO’


Ran 5 tests in 0.002s

FAILED (errors=5)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ywangd/stash/issues/192#issuecomment-231895305, or mute the thread https://github.com/notifications/unsubscribe/ACPFdIasCDBXAUa7QXhvjes2AkadOUb5ks5qUtFBgaJpZM4JJ27v .


                  Life is elsewhere
Read more comments on GitHub >

github_iconTop Results From Across the Web

git clone ssh failing - omz:forum
Then try running git again, which will download dulwich again. ... You might try using https for the initial clone, then ssh subsequently....
Read more >
How do I correctly install dulwich to get hg-git working on ...
ini, hg tries to import it using direct path, but dulwich library is not imported explicitly by hg and doesn't bundled with its...
Read more >
Python implementation of Git — dulwich 0.20.46 documentation
By default, Dulwich' setup.py will attempt to build and install the optional C extensions. The reason for this is ... Cleanup new directory...
Read more >
Git clone or Git push fails to an Azure DevOps repository
This article discusses problems that might occur when you try to perform Git clone or Git push function to an Azure DevOps repository....
Read more >
1.5 Getting Started - Installing Git
You can either install it as a package or via another installer, or download the source code and compile it yourself. Note. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found