Skip to content

Instantly share code, notes, and snippets.

@daosborne
Created March 6, 2018 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daosborne/24a698df329f097b0e683fe89da20d69 to your computer and use it in GitHub Desktop.
Save daosborne/24a698df329f097b0e683fe89da20d69 to your computer and use it in GitHub Desktop.
Arches 4.0.1 to 4.1.0 upgrade, missing JOSE dependency
(ENV) vagrant@vagrant:~/Projects/my_project$ pip uninstall jose
Uninstalling jose-1.0.0:
[...]
Proceed (y/n)? y
Successfully uninstalled jose-1.0.0
(ENV) vagrant@vagrant:~/Projects/my_project$ pip install python-jose
Collecting python-jose
Downloading python_jose-2.0.2-py2.py3-none-any.whl
Collecting pycryptodome<4.0.0,>=3.3.1 (from python-jose)
Downloading pycryptodome-3.4.11-cp27-cp27mu-manylinux1_x86_64.whl (6.8MB)
100% |████████████████████████████████| 6.8MB 217kB/s
Requirement already satisfied: six<2.0 in /home/vagrant/Projects/ENV/lib/python2.7/site-packages (from python-jose)
Requirement already satisfied: future<1.0 in /home/vagrant/Projects/ENV/lib/python2.7/site-packages (from python-jose)
Collecting ecdsa<1.0 (from python-jose)
Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB)
100% |████████████████████████████████| 92kB 3.0MB/s
Installing collected packages: pycryptodome, ecdsa, python-jose
Successfully installed ecdsa-0.13 pycryptodome-3.4.11 python-jose-2.0.2
(ENV) vagrant@vagrant:~/Projects/my_project$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
arches (4.1)
decorator (4.1.2)
Django (1.9.2)
django-guardian (1.4.9)
django-ranged-response (0.2.0)
django-recaptcha (1.4.0)
ecdsa (0.13)
elasticsearch (5.4.0)
fields (5.0.0)
flexidate (1.0)
future (0.16.0)
isodate (0.6.0)
mapbox-vector-tile (0.5.0)
mapnik (0.1)
ModestMaps (1.4.7)
networkx (1.11)
Pillow (3.1.0)
pip (9.0.1)
protobuf (3.4.0)
psycopg2 (2.7.3.1)
pycrypto (2.6.1)
pycryptodome (3.4.11)
pyparsing (2.2.0)
pyshp (1.2.3)
python-dateutil (1.5)
python-jose (2.0.2)
python-memcached (1.58)
PyYAML (3.12)
rdflib (4.2.2)
rdflib-jsonld (0.4.0)
setuptools (38.5.1)
Shapely (1.6.1)
simplejson (3.11.1)
six (1.11.0)
SPARQLWrapper (1.8.0)
TileStache (1.51.6)
unicodecsv (0.14.1)
urllib3 (1.22)
Werkzeug (0.11.13)
wheel (0.30.0)
xlrd (0.9.4)
(ENV) vagrant@vagrant:~/Projects/my_project$ python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 29, in <module>
execute_from_command_line(sys.argv)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 89, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 49, in __init__
self.build_graph()
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 306, in build_graph
_reraise_missing_dependency(migration, parent, e)
File "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 276, in _reraise_missing_dependency
raise exc
django.db.migrations.exceptions.NodeNotFoundError: Migration models.0010_4_1_0 dependencies reference nonexistent parent node (u'auth', u'0008_alter_user_username_max_length')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment