Public paste
bidwire alembic strangeness
By: LogicalDash | Date: Jun 4 2017 21:21 | Format: Python | Expires: never | Size: 2.53 KB | Hits: 57

  1. (bidwire) sanotehu@sanotehu-MacBookPro ~/src/bidwire/bidwire $ alembic upgrade head
  2. Traceback (most recent call last):
  3.   File "/home/sanotehu/bidwire/bin/alembic", line 11, in <module>
  4.     sys.exit(main())
  5.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/config.py", line 479, in main
  6.     CommandLine(prog=prog).main(argv=argv)
  7.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/config.py", line 473, in main
  8.     self.run_cmd(cfg, options)
  9.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/config.py", line 456, in run_cmd
  10.     **dict((k, getattr(options, k, None)) for k in kwarg)
  11.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/command.py", line 254, in upgrade
  12.     script.run_env()
  13.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/script/base.py", line 421, in run_env
  14.     util.load_python_file(self.dir, 'env.py')
  15.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file
  16.     module = load_module_py(module_id, path)
  17.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/util/compat.py", line 64, in load_module_py
  18.     module_id, path).load_module(module_id)
  19.   File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
  20.   File "<frozen importlib._bootstrap_external>", line 823, in load_module
  21.   File "<frozen importlib._bootstrap_external>", line 682, in load_module
  22.   File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
  23.   File "<frozen importlib._bootstrap>", line 675, in _load
  24.   File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  25.   File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  26.   File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  27.   File "alembic/env.py", line 18, in <module>
  28.     config.set_main_option('sqlalchemy.url', os.environ.get('POSTGRES_ENDPOINT'))
  29.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/config.py", line 218, in set_main_option
  30.     self.set_section_option(self.config_ini_section, name, value)
  31.   File "/home/sanotehu/bidwire/lib/python3.6/site-packages/alembic/config.py", line 245, in set_section_option
  32.     self.file_config.set(section, name, value)
  33.   File "/usr/lib/python3.6/configparser.py", line 1192, in set
  34.     self._validate_value_types(option=option, value=value)
  35.   File "/usr/lib/python3.6/configparser.py", line 1177, in _validate_value_types
  36.     raise TypeError("option values must be strings")
  37. TypeError: option values must be strings
  38.  
Latest pastes
19 hours ago
19 hours ago
21 hours ago
2 days ago
4 days ago