I’m having various Python errors that seem to point to some kind of a Python installation issue.
This repo is a simple test to see whether I can install a dependency and use it, and to record errors that may occur when I do.
Here’s a repo to serve as a simple reproduction case of an issue I’m having with ColdType, which may boil down to a Python path issue.
Create and activate a virtual environment with:
python3 -m venv venv && source venv/bin/activateInstall requirements:
pip install -r requirements.txtRun ColdType from example script:
coldtype src/coldtype-example.pyThe error I am getting is this:
Traceback (most recent call last):
File "/Users/stephennixon/type-repos/basic-python-test/venv/lib/python3.11/site-packages/coldtype/renderer/__init__.py", line 548, in _single_thread_render
result = render.normalize_result(render.run(rp, self.state))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/stephennixon/type-repos/basic-python-test/venv/lib/python3.11/site-packages/coldtype/renderable/animation.py", line 214, in run
return super().run(render_pass, renderer_state, render_bg=render_bg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/stephennixon/type-repos/basic-python-test/venv/lib/python3.11/site-packages/coldtype/renderable/renderable.py", line 348, in run
res = render_pass.fn(*render_pass.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/folders/qx/2l9crthn3rb450m148nmpfb80000gn/T/coldtype__coldtype-example_s3xrswyr.py", line 16, in versioned_ƒVERSION
__VERSION__["text"].upper(),
~~~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptableI am have the venv active, and I have ColdType 0.10.14 installed, which I’ve verified this with pip show coldtype. However, the ColdType creator said that these code line numbers don’t match up with ColdType 0.10.14, and suggested that it may be a Python path issue. I’ve had somewhat similar, strange Python issues in the recent past, so I think they may be right. This repo is made in part to share when I seek out help.
- I’ve removed and remade the venv, then reinstalled the dependency.
- I’ve restarted my computer.
- I’ve installed the latest stable Python, 3.12, from python.org.
- I repeated this test after each step, with the same result.
- I’m on an M1 Mac, running Ventura
- I’ve tried this with Python 3.10 and 3.12
- I have ensured that I’m on ColdType 0.10.14