missing redis library when redis is installed - python

I have redis and celery python libraries installed. I have redis server installed and running. using bash i can run python and import redis without errors. I have python-celery-common installed. I am using PyCharm and WSL. For some reason when i create tasks.py and try to run celery -A tasks worker --loglevel=info
in bash i get the following stack trace (note the python3 in the path to celery when i am running python 2.7 - i have a feeling this is important but not sure how, or how to change):
Traceback (most recent call last):
File "/usr/bin/celery", line 26, in <module>
load_entry_point("celery", "console_scripts", "celery")()
File "/usr/lib/python3/dist-packages/celery/__main__.py", line 14, in main
_main()
File "/usr/lib/python3/dist-packages/celery/bin/celery.py", line 326, in main
cmd.execute_from_commandline(argv)
File "/usr/lib/python3/dist-packages/celery/bin/celery.py", line 488, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/usr/lib/python3/dist-packages/celery/bin/base.py", line 281, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/usr/lib/python3/dist-packages/celery/bin/celery.py", line 480, in handle_argv
return self.execute(command, argv)
File "/usr/lib/python3/dist-packages/celery/bin/celery.py", line 412, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "/usr/lib/python3/dist-packages/celery/bin/worker.py", line 221, in run_from_argv
return self(*args, **options)
File "/usr/lib/python3/dist-packages/celery/bin/base.py", line 244, in __call__
ret = self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/celery/bin/worker.py", line 255, in run
**kwargs)
File "/usr/lib/python3/dist-packages/celery/worker/worker.py", line 99, in __init__
self.setup_instance(**self.prepare_args(**kwargs))
File "/usr/lib/python3/dist-packages/celery/worker/worker.py", line 122, in setup_instance
self.should_use_eventloop() if use_eventloop is None
File "/usr/lib/python3/dist-packages/celery/worker/worker.py", line 241, in should_use_eventloop
self._conninfo.transport.implements.async and
File "/usr/lib/python3/dist-packages/kombu/connection.py", line 832, in transport
self._transport = self.create_transport()
File "/usr/lib/python3/dist-packages/kombu/connection.py", line 576, in create_transport
return self.get_transport_cls()(client=self)
File "/usr/lib/python3/dist-packages/kombu/transport/redis.py", line 1009, in __init__
raise ImportError('Missing redis library (pip install redis)')
ImportError: Missing redis library (pip install redis)
output from bash when i run python:
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
output from pip freeze
amqp==2.3.2
asn1crypto==0.24.0
billiard==3.5.0.5
celery==4.2.1
cryptography==2.1.4
Django==1.11.11
djangorestframework==3.9.0
enum34==1.1.6
idna==2.6
ipaddress==1.0.17
keyring==10.6.0
keyrings.alt==3.0
kombu==4.2.2
psycopg2==2.7.4
pycrypto==2.6.1
pygobject==3.26.1
pytz==2018.7
pyxdg==0.25
redis==3.0.1
SecretStorage==2.3.1
six==1.11.0
sqlparse==0.2.4
vine==1.1.4

The more plausible problem is that in pycharm when you set up the interpreter you gave it the wrong path.You set it to /usr/bin/python3 instead of the path to python2

Related

Unable to run pytest setup through pycharm

Running pytest through CLI with pytest-xdist runs fine (pytest -n 3 {test}). When running the same set up in PyCharm I get Context version conflict, stating that I need to lower my pytest version. When I lower the version to below 4, pycharm is able to run the pytest script through the pytest runner.
Here is the requirements.txt:
apipkg==1.5
atomicwrites==1.3.0
attrs==19.1.0
execnet==1.5.0
more-itertools==6.0.0
pluggy==0.9.0
py==1.8.0
pytest==4.3.1
pytest-forked==1.0.2
pytest-rerunfailures==6.0
pytest-xdist==1.27.0
selenium==3.141.0
six==1.12.0
urllib3==1.24.1
and the error:
Traceback (most recent call last):
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/manager.py", line 274, in load_setuptools_entrypoints
plugin = ep.load()
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pkg_resources/init.py", line 2342, in load
self.require(*args, **kwargs)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pkg_resources/init.py", line 2365, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pkg_resources/init.py", line 786, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pytest 4.3.1 (/Users//.pyenv/versions/3.6.7/lib/python3.6/site-packages), Requirement.parse('pytest<4.0.0'), {'pytest-fixture-config'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pycharm/_jb_pytest_runner.py", line 31, in <module>
pytest.main(args, plugins_to_load)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/config/init.py", line 59, in main
config = _prepareconfig(args, plugins)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/config/init.py", line 194, in _prepareconfig
pluginmanager=pluginmanager, args=args
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in call
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/manager.py", line 68, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/manager.py", line 62, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
gen.send(outcome)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse
config = outcome.get_result()
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/config/init.py", line 653, in pytest_cmdline_parse
self.parse(args)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/config/init.py", line 870, in parse
self._preparse(args, addopts=addopts)
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/_pytest/config/init.py", line 815, in _preparse
self.pluginmanager.load_setuptools_entrypoints("pytest11")
File "/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pluggy/manager.py", line 280, in load_setuptools_entrypoints
message="Plugin %r could not be loaded: %s!" % (ep.name, e),
pluggy.manager.PluginValidationError: Plugin 'webdriver' could not be loaded: (pytest 4.3.1 (/Users/{name}/.pyenv/versions/3.6.7/lib/python3.6/site-packages), Requirement.parse('pytest<4.0.0'), {'pytest-fixture-config'})!
Currently running through venv on the command line.
I want to be able to run the same setup in pycharm as I do from CLI
Solved the issue: PyCharm had pytest-fixture-config installed. I had to remove the package and running my tests worked. pytest-fixture-config states Pinned pytest<4.0.0 until all deprecation warnings are fixed.

Could not install 'xlwings' in my Ubuntu machine

I am trying to install xlwings module in my Ubuntu machine but failed as below
pip3 install xlwings
Collecting xlwings
Using cached https://files.pythonhosted.org/packages/cc/c9/6bb1849dbee6e8a40beb9a0d21df9787bee45cda1d0bb575a0cd388dd260/xlwings-0.15.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-u90aes_a/xlwings/setup.py", line 33, in <module>
raise OSError("currently only Windows and OSX are supported.")
OSError: currently only Windows and OSX are supported.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-u90aes_a/xlwings/
What is the resolution of this error? Is xlwings not supported in Ubuntu? I also tried to install the same manually as below but failed too.
cd xlwings
python setup.py install
Any suggestion will be highly appreciated.
Update on 10th July 2019
I ran code export INSTALL_ON_LINUX=1 and then installed xlwings. Installation was fine.
However when I tried to import xlwings in Python, that failed with below error:
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlwings
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/xlwings/__init__.py", line 44, in <module>
from . import _xlmac as xlplatform
File "/usr/local/lib/python3.6/dist-packages/xlwings/_xlmac.py", line 10, in <module>
import aem
ModuleNotFoundError: No module named 'aem'
I could not install package aem with below error:
pip3 install aem
Collecting aem
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages
page = self._get_page(location)
File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/usr/lib/python3/dist-packages/pip/index.py", line 795, in get_page
resp.raise_for_status()
File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/aem/
Any solution will be highly appreciated.
please run this command before ruining pip install xlwings (for linux users)
export INSTALL_ON_LINUX=1
nice coding
You could potentially install Anaconda for Windows within Wine and then also install Excel within Wine and then maybe, maybe (no promises), you might find that xlwings... just... might... work... ... but there will likely be many speed bumps along the way...

Why can't python find this module that I've installed django-lockdown?

I have a Django app that is failing because it cannot find a module that I've installed. It's called Django-Lockdown. Can someone show me how to fix this issue?
Step 1: Start the virtualEnv and make sure that the module is installed:
$ source /opt/virtualEnvs/myApp/bin/activate
(myApp)$ pip -r requirements.txt
<SNIPPED>
(myApp)$ pip show django-lockdown
---
Name: django-lockdown
Version: 1.0
Location: /opt/virtualEnvs/jobBidSite/lib/python2.7/site-packages/django_lockdown-1.0-py2.7.egg
Requires:
Step #2: Run the python shell and manually import this module. It works.
(myApp)$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lockdown
>>> exit()
Step #3: Start the debelopment server. It fails because it says it cannot find this module. Why?
(myApp)$ sudo python ./manage.py runserver 0.0.0.0:80
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 280, in execute
translation.activate('en-us')
File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 130, in activate
return _trans.activate(language)
File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 188, in activate
_active.value = translation(language)
File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 159, in _fetch
app = import_module(appname)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
ImportError: No module named lockdown
/opt/virtualEnvs/jobBidSite/lib/python2.7/site-packages the module is in your virtualenv python packages, you are using the system python /usr/local/lib/python2.7/ for django.
Don't use sudo, it is running the system python.

virtualenv --python=2.5 error

i am trying to install virtualenv to use python2.5 on my apple OSX 10.6 machine, but get this error when i try to:
☺ virtualenv --python=python2.5 /Users/khinester/.virtualenvs/cccorder2.5 ruby-2.0.0-p195""
Running virtualenv with interpreter /usr/bin/python2.5
New python executable in /Users/khinester/.virtualenvs/cccorder2.5/bin/python2.5
Not overwriting existing python script /Users/khinester/.virtualenvs/cccorder2.5/bin/python (you must use /Users/khinester/.virtualenvs/cccorder2.5/bin/python2.5)
Installing setuptools......................................
Complete output from command /Users/khinester/.vi...der2.5/bin/python2.5 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools:
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 3.3
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-3.3.zip#md5=284fa92c5e32c113a4bc00bd20c4eef8
Processing setuptools-3.3.zip
Running setuptools-3.3/setup.py -q bdist_egg --dist-dir /var/folders/it/itEAjVAME2GWcW-Q6QxMBU+++TI/-Tmp-/easy_install-5rSJOe/setuptools-3.3/egg-dist-tmp-IL4Z_W
setup.py:17: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "<string>", line 278, in <module>
File "<string>", line 213, in main
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1712, in main
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 211, in run
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 446, in easy_install
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 476, in install_item
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 919, in run_setup
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 62, in run_setup
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 105, in run
File "/Users/khinester/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 64, in <lambda>
File "setup.py", line 17
with open(init_path) as init_file:
^
SyntaxError: invalid syntax
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 2577, in <module>
main()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 979, in main
no_pip=options.no_pip)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 1091, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 611, in install_setuptools
search_dirs=search_dirs, never_download=never_download)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 583, in _install_req
cwd=cwd)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.9.1-py2.7.egg/virtualenv.py", line 1057, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /Users/khinester/.vi...der2.5/bin/python2.5 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools failed with error code 1
all other versions of python work fine, but just this.
python2.5 is fine on the machine, as per:
☺ python2.5 ruby-2.0.0-p195""
Python 2.5.4 (r254:67916, Aug 1 2011, 15:52:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print( sys.path )
['', '/Library/Python/2.5/site-packages/virtualenv-1.11.4-py2.5.egg', '/Library/Python/2.5/site-packages/MySQL_python-1.2.5-py2.5-macosx-10.6-i386.egg', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/Library/Python/2.5/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode']
>>>
any advice much appreciated.
I think your issue is not with virtualenv but with setuptools, that dropped python 2.5 support a few months ago. You should install an older version (probably 1.X)

hg+svn clone repository error

i'm trying to clone svn repository on windows as explained here:
https://www.mercurial-scm.org/wiki/HgSubversion
and here:
https://www.mercurial-scm.org/wiki/WorkingWithSubversion
i'm normally using x64 2.6.6 python but i also need 32-bit so i have 32bit 2.7 into which i've put swig python svn bindings from
http://sourceforge.net/projects/win32svn/
problem is when i clone mercurial seems to use 2.6.6 which does not have binding hence i guess this error:
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.1)
** Extensions loaded: hgsubversion
Traceback (most recent call last):
File "hg", line 42, in <module>
File "mercurial\dispatch.pyo", line 27, in run
File "mercurial\dispatch.pyo", line 64, in dispatch
File "mercurial\dispatch.pyo", line 87, in _runcatch
File "mercurial\dispatch.pyo", line 683, in _dispatch
File "mercurial\dispatch.pyo", line 465, in runcommand
File "mercurial\dispatch.pyo", line 737, in _runcommand
File "mercurial\dispatch.pyo", line 691, in checkargs
File "mercurial\dispatch.pyo", line 680, in <lambda>
File "mercurial\util.pyo", line 456, in check
File "mercurial\extensions.pyo", line 139, in wrap
File "mercurial\util.pyo", line 456, in check
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 495, in c
lone
orig(ui, source, dest, **opts)
File "mercurial\util.pyo", line 456, in check
File "mercurial\commands.pyo", line 1157, in clone
File "mercurial\extensions.pyo", line 184, in wrap
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 484, in h
gclonewrapper
data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
File "mercurial\hg.pyo", line 350, in clone
File "mercurial\localrepo.pyo", line 2265, in clone
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 70, in wra
pper
return fn(self, *args, **opts)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 89, in pul
l
return wrappers.pull(self, remote, heads, force)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 353, in p
ull
firstrun)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\replay.py", line 67, in conv
ert_rev
svn.get_replay(r.revnum, editor, meta.revmap.oldest)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 403, in get_replay
self.init_ra_and_client()
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 226, in init_ra_and_client
raise common.SubversionConnectionException(msg)
hgext_hgsubversion.svnwrap.common.SubversionConnectionException: Failed to open Subversion repository;
i've put 2.7 before 2.6.6 in ENV VARIABLES and when into cmd i write python i see 2.7 as my defult python dist.
what am i missing?
thanks
EDIT:
i use tortoise hg for 64-bit windows with built in mercurial, could that be the problem?
You forgot to include last line of error message "please try running 'svn ls
URL-of-repo' for details.", but you done svn ls, sure?
If it's big repo with deep history anyway it's not recommended to clone from start to HEAD. Clone some revisions and pull rest
Or read this topic for subvertpy, subvertpy binding details and Subvertpy Binary for Win32

Categories