![]() ![]() ![]() Any thoughts? Is there a way to prevent python from upgrading to 3.6. Why 3.6.8? While closely watching the before mentioned tutorial, during Paul’s 2020 upgrade installation of JP-4.3, python 3.6.8 was the version being used. So now on to the next great adventure, I am pursing how to possibly downgrade my python to 3.6.8 and hold it there, as long as the pip installation does not upgrade python. So, I used the Python Interpreter Selector in VS-Code to run the program, now the error changes to: from adafruit_servokit import ServoKit ModuleNotFoundError: No module named 'adafruit_servokit. My next step was to upgrade python on the Nano to 3.7.5 as annotations was supposedly part of this version, but I did not update-alternatives because when 3.7.5 is used, opencv does not work, it cannot be found. McWhorter, so by inference the problem is in python 3.6.9. Unfortunately, when installing PIP3 on my unit, that installation takes py-3.6.8 to 3.6.9 where I believe this error begins to raise its head, as this error did not show during the tutorials by P. So much for defining, huh? Well… I was successful in moving the error and determining that it is a Python issue. Reading through the pydoc of future, it does not list annotations, it is not part of 0.18.2, hence the error future annotations not defined. ![]() But next came another issue the original syntax error now appears in the terminal of VS-Code and my program doesn’t leave the ground. With those two modules installed and upgraded, I was finally able to install Adafruit-Crcuitpython-Servokit without annotations error. Additionally, after reading through pythons documents, it was found that the system may need an upgrade of the setuptools module, so I updated it :~$ python3 -m pip install -upgrade pip setuptools wheel, this took pip to (21.3.1), setuptools to (59.6.0) and wheel to (0.37.1), it appears progress is being made. In this instance I have learned_future_ is a module that Python uses, so I installed it: :~$ python3 -m pip install future, and then upgraded it to as high as it could go on JP 4.6.2, to 0.18.2. After contemplation, I determined that the issue was not needing to go back but forward reason- future annotations “NOT DEFINED”, so then, let’s define them. Does anyone have any suggestions to the anomaly above? Have even gone as far as to flash my SD with JP422 but the error is the same. I have tried to install different servokit versions, from 1.1.0 to 1.3.10 to no avail. Synta圎rror: future feature annotations is not defined -Ĭommand “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-3sovcjkv/adafruit-circuitpython-servokit/Īs I referenced, I’m a newbie to programming so to deep I’ll drown at this point. Module = import(self.module_name, fromlist=, level=0)įile “/tmp/pip-build-3sovcjkv/adafruit-circuitpython-servokit/.eggs/setuptools_scm-7.0.5-p圓.6.egg/setuptools_scm/ init.py”, line 5 _setup_distribution = dist = klass(attrs)įile “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 372, in initįile “/usr/lib/python3.6/distutils/dist.py”, line 281, in initįile “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 528, in finalize_optionsįile “/usr/lib/python3/dist-packages/pkg_resources/ init.py”, line 2324, in loadįile “/usr/lib/python3/dist-packages/pkg_resources/ init.py”, line 2330, in resolve usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: ‘long_description_content_type’įile “/tmp/pip-build-3sovcjkv/adafruit-circuitpython-servokit/setup.py”, line 59, inįile “/usr/lib/python3/dist-packages/setuptools/ init.py”, line 129, in setupįile “/usr/lib/python3.6/distutils/core.py”, line 108, in setup ![]() Sudo -H pip3 install adafruit-circuitpython-servokit=1.2.1Ĭollecting adafruit-circuitpython-servokit=1.2.1Ĭomplete output from command python setup.py egg_info: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |