Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with urllib3 install using mysqlclient database backend #180

Open
paul-english opened this issue Oct 19, 2016 · 0 comments
Open

Issues with urllib3 install using mysqlclient database backend #180

paul-english opened this issue Oct 19, 2016 · 0 comments

Comments

@paul-english
Copy link

I can't seem to get localshop to mirror a proper version of urllib3.

I can install it once no problem, but any additional attempt to install it fails. The latest version at this time is 1.18, but after I do a first initial install I get the following release record,

screen shot 2016-10-19 at 5 07 47 pm

which has no information stored in it.

I also get this error in the celery worker which I expect is the issue:

[2016-10-20 01:05:02,395: ERROR/MainProcess] Task localshop.apps.packages.tasks.fetch_package[a4e2b8fe-c460-46ad-9de1-06a0dbf5b7af] raised unexpected: Warning(1300L, u"Invalid utf8 character string: 'F09F91'")
Traceback (most recent call last):
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/localshop/utils.py", line 62, in wrapper
    function(self, *args, **kwargs)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/localshop/apps/packages/tasks.py", line 64, in fetch_package
    release_form.save()
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/forms/models.py", line 457, in save
    construct=False)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/forms/models.py", line 103, in save_instance
    instance.save()
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 591, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 619, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 681, in _save_table
    forced_update)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 725, in _do_update
    return filtered._update(values) > 0
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 600, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1004, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
    cursor.execute(sql, params)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 81, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 128, in execute
    return self.cursor.execute(query, args)
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 253, in execute
    self._warning_check()
  File "/home/deployer/.localshop/venv/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 155, in _warning_check
    warn(self.Warning(*w[1:3]), stacklevel=3)
Warning: (1300L, u"Invalid utf8 character string: 'F09F91'")

After the first pip install a second one yields the following from my local machine:

pip install -i https://<localshop_install>/simple/ -U --force-reinstall urllib3
Collecting urllib3
  Could not find a version that satisfies the requirement urllib3 (from versions: )
No matching distribution found for urllib3
@paul-english paul-english changed the title Issues with urllib3 install Issues with urllib3 install using mysqlclient database backend Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant