I may have found a solution to this myself. After searching for *jose* on the Python package index, I found *python-jose* as an alternative which seemed to have the missing *jws* name needed for an import.
I therefore ran pip uninstall jose pip install python-jose and my python manage.py migrate then produced an error message relating to the database contents, instead of reporting a missing module: 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') (Full details in the gist at https://gist.github.com/daosborne/24a698df329f097b0e683fe89da20d69) Might this sort of database migration error be expected and is it serious? The database works well with 4.0.1 TL;DR To recap for anyone else with missing modules after doing an upgrade from 4.0.1 to 4.1.0, try pip install django-recaptcha pip install python-jose which (almost) worked for me (your mileage may vary). David On Tuesday, 6 March 2018 12:26:36 UTC, David Osborne wrote: > > I have a working Arches 4.0.1 installation in a Vagrant VM which I want to > upgrade to 4.1.0, to check the process in advance of upgrading our project > server. > > Following the upgrade instructions in > https://github.com/archesproject/arches/blob/master/docs/releases/4.1.0.md, > I get an error at the step > > python manage.py migrate due to the captcha module not being installed: > > (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 327, in execute > django.setup() > File > "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/__init__.py", > line 18, in setup > apps.populate(settings.INSTALLED_APPS) > File > "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/registry.py", > line 85, in populate > app_config = AppConfig.create(entry) > File > "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/config.py", > line 90, in create > module = import_module(entry) > File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module > __import__(name) > ImportError: No module named captcha > > > I then attempted variously to install, in turn, the captcha, > django-simple-captcha and django-recaptcha modules, finally sticking with > django-recaptcha, > which required a module "jose" but that eventually had a missing "jws" name > it couldn't find, and at that point I gave up and decided to shout "Help!" > > There's a log of all this at > https://gist.github.com/daosborne/d867f8a2a457aa7b7652cb9432e0321d > beginning and ending with "pip list" to show the modules which were installed. > > I'm sure there will be a simple solution! > cheers > David > > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
