@antiartist wrote:
First things first, my current versions are as follows::
Flexget 2.0.34
setuptools (21.2.1)
Python 2.7.10After some trouble, I was able to upgrade to 2.0.34:
tom@HouseMedia:~/.flexget$ flexget -V
2.0.34
You are on the latest release.but the check crashes with the following output:
tom@HouseMedia:~/.flexget$ flexget check
2016-05-26 20:37 CRITICAL plugin Pluginflexget.plugins.urlrewrite_bakabt
failed to import dependencies
2016-05-26 20:37 ERROR plugin cannot import name urlopener
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite_bakabt.py", line 8, in
from flexget.utils.tools import urlopener
ImportError: cannot import name urlopener
2016-05-26 20:37 CRITICAL plugin Pluginflexget.plugins.urlrewrite_newtorrents
failed to import dependencies
2016-05-26 20:37 ERROR plugin cannot import name urlopener
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite_newtorrents.py", line 13, in
from flexget.utils.tools import urlopener
ImportError: cannot import name urlopener
2016-05-26 20:37 CRITICAL plugin Pluginflexget.plugins.urlrewrite_frenchtorrentdb
failed to import dependencies
2016-05-26 20:37 ERROR plugin cannot import name urlopener
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite_frenchtorrentdb.py", line 8, in
from flexget.utils.tools import urlopener
ImportError: cannot import name urlopener
2016-05-26 20:37 CRITICAL plugin Pluginflexget.plugins.urlrewrite_koreus
failed to import dependencies
2016-05-26 20:37 ERROR plugin cannot import name urlopener
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite_koreus.py", line 9, in
from flexget.utils.tools import urlopener
ImportError: cannot import name urlopener
2016-05-26 20:37 CRITICAL plugin Exception while loading plugin flexget.plugins.urlrewrite.torrent411
2016-05-26 20:37 ERROR plugin Table 't411_accounts' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite/torrent411.py", line 214, in
class torrent411Account(Base):
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/api.py", line 55, in init
asdeclarative(cls, classname, cls.dict)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 88, in asdeclarative
MapperConfig.setupmapping(cls, classname, dict_)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 103, in setup_mapping
cfg_cls(cls_, classname, dict_)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 131, in init
self.setuptable()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 395, in setuptable
**table_kw)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 398, in new
"existing Table object." % key)
InvalidRequestError: Table 't411_accounts' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.
Traceback (most recent call last):
File "/usr/local/bin/flexget", line 9, in
load_entry_point('FlexGet==1.2.414', 'console_scripts', 'flexget')()
File "/usr/local/lib/python2.7/dist-packages/flexget/__init__.py", line 42, in main
manager.start()
File "/usr/local/lib/python2.7/dist-packages/flexget/manager.py", line 309, in start
self.initialize()
File "/usr/local/lib/python2.7/dist-packages/flexget/manager.py", line 181, in initialize
plugin.load_plugins(extra_dirs=[os.path.join(self.config_base, 'plugins')])
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 431, in load_plugins
loadplugins_from_dirs(extra_dirs)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 387, in loadplugins_from_dirs
import(module_name)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/urlrewrite/torrent411.py", line 214, in
class torrent411Account(Base):
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/api.py", line 55, in init
asdeclarative(cls, classname, cls.dict)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 88, in asdeclarative
MapperConfig.setupmapping(cls, classname, dict_)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 103, in setup_mapping
cfg_cls(cls_, classname, dict_)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 131, in init
self.setuptable()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/base.py", line 395, in setuptable
**table_kw)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 398, in new
"existing Table object." % key)
sqlalchemy.exc.InvalidRequestError: Table 't411_accounts' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.Troubleshooting attempted so far:
My initial problems with upgrading were that after the upgrade, attempting to check the current flexget version ended with an error about Flask-restplus being the incorrect distribution:tom@HouseMedia:~/.flexget$ flexget -V
Traceback (most recent call last):
File "/usr/local/bin/flexget", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2927, in
@callaside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2913, in callaside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2940, in initializemaster_working_set
working_set = WorkingSet.buildmaster()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 637, in buildmaster
return cls.buildfrom_requirements(requires)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 650, in buildfrom_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'flask-restplus==0.7.2' distribution was not found and is required by FlexGetI resolved this by manually downgrading to the required distribution and the version command started working:
tom@HouseMedia:~/.flexget$ sudo pip install flask-restplus==0.7.2
Downloading/unpacking flask-restplus==0.7.2
Downloading flask_restplus-0.7.2-py2.py3-none-any.whl (445kB): 445kB downloaded
Requirement already satisfied (use --upgrade to upgrade): flask-restful>=0.3.2 in /usr/local/lib/python2.7/dist-packages (from flask-restplus==0.7.2)
Installing collected packages: flask-restplus
Found existing installation: flask-restplus 0.8.6
Uninstalling flask-restplus:
Successfully uninstalled flask-restplus
Successfully installed flask-restplus
Cleaning up...
tom@HouseMedia:~/.flexget$ flexget -V
2.0.34
You are on the latest release.Unfortunately, the check crashed (output provided at the top of this post).
When wrestling with the flask-restplus issue, I noticed that my installed pip version was WAY out of date (1.5.4) and so I upgraded it to the current 8.1.2. Unfortunately, now I cannot reinstall flexget, as suggested here (https://github.com/Flexget/Flexget/issues/1188). I was able to reinstall prior to upgrading pip (which didn't resolve anything) but now cannot:
tom@HouseMedia:~$ pip install --upgrade --force-reinstall flexget
Collecting flexget
Using cached FlexGet-2.0.34-py2.py3-none-any.whl
Collecting pynzb (from flexget)
Using cached pynzb-0.1.0.tar.gz
Collecting flask-restplus==0.8.6 (from flexget)
Using cached flask_restplus-0.8.6-py2.py3-none-any.whl
Collecting pathlib>=1.0 (from flexget)
Using cached pathlib-1.0.1.tar.gz
Collecting rpyc (from flexget)
Using cached rpyc-3.3.0.tar.gz
Collecting flask-cors>=2.1.2 (from flexget)
Using cached Flask-Cors-2.1.2.tar.gz
Collecting flask-restful>=0.3.3 (from flexget)
Using cached Flask_RESTful-0.3.5-py2.py3-none-any.whl
Collecting cherrypy>=3.7.0 (from flexget)
Using cached CherryPy-5.4.0.zip
Collecting guessit<=2.0.4 (from flexget)
Using cached guessit-2.0.4.tar.gz
Complete output from command python setup.py egg_info:
install_dir .
install_dir .Installed /tmp/easy_install-A4b8Eg/pytest-runner-2.8/setuptools_scm-1.11.0-py2.7.egg your setuptools is too old (<12) setuptools_scm functionality is degraded zip_safe flag not set; analyzing archive contents... Installed /tmp/pip-build-8eHh6F/guessit/pytest_runner-2.8-py2.7.egg running egg_info creating pip-egg-info/guessit.egg-info writing requirements to pip-egg-info/guessit.egg-info/requires.txt writing pip-egg-info/guessit.egg-info/PKG-INFO writing top-level names to pip-egg-info/guessit.egg-info/top_level.txt writing dependency_links to pip-egg-info/guessit.egg-info/dependency_links.txt writing entry points to pip-egg-info/guessit.egg-info/entry_points.txt writing manifest file 'pip-egg-info/guessit.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-8eHh6F/guessit/setup.py", line 78, in <module> setup(**args) File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/egg_info.py", line 179, in run self.find_sources() File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/egg_info.py", line 254, in find_sources mm.run() File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/egg_info.py", line 308, in run self.add_defaults() File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/egg_info.py", line 335, in add_defaults rcfiles = list(walk_revctrl()) File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/sdist.py", line 46, in walk_revctrl for item in ep.load()(dirname): File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named setuptools_scm.integration
Your help/suggestions are appreciated!
Posts: 6
Participants: 3