Invalid syntax with "packages": [], "during installation setup.py

I am new to programming and have spent the past few weeks learning python on my own. Most of the instructions were from the Learn Python the Hard Way resource.

Now, to my problem, I just started working on a quiz that basically completed and installed your own setup.py file. However, after spending some time understanding the file and trying to run it; I keep getting the "Invalid syntax" error in the second single quote here:

'packages': [ ],

I tried everything that I can think of, for example, removing all single quotes from variables on the left side, replacing doubletones with equal characters, renaming certain files and folders, or a combination of three. I compared the code with other sites offering similar tutorials. where previous ideas came up, and searched in several places, including Google and stackoverflow.com, to solve this problem. However, so far I have not found any posts related to this particular situation.

I am using Ubuntu 12.04 LTS as my operating system.


I have a screenshot of the problem, but I don't have enough reputation to post it here. :(


This code should be exactly the same as the β€œLearn Python the Hard Way” code and I just changed the variables according to the instructions, such as name or email address.

Get code from 'setup.py'

 try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Amateur Remake of the Clannad Visual Novel', 'author': 'Kristopher Anders', 'url': 'Unavailable Online.', 'download_url': 'Not Available online.', 'author_email': ' kanders91@gmail.com ', 'version': '0.1', 'install_requires': ['nose'] 'packages': ['seen0414'], 'scripts': [], 'name': 'Clannad Visual Novel' } setup(**config) 

Hashes the file tree for 'setup.py'

 |---Clannad \\root directly for 'setup.py' \\ |---bin |---docs |---seen0414 |---__init__.py --\\contents is exact copy of 'seen0414.py'\\ |---__init__.pyc \\otherwise '__init__.py' was empty.\\ |---module0414.py --\\contains functions for 'seen0414'\\ |---module0414.pyc |---script0414.txt --\\contains necessary text for 'module0414.py'\\ |---seen0414.py --\\original(main) script\\ |---tests |---clannad_tests.py |---clannad_tests.pyc |---__init__.py |---__init__.pyc |---setup.py 

I am sure this is probably a very simple solution, but I just can't figure out how to do this. Thanks in advance for any help.

+6
source share
1 answer
 'install_requires': ['nose'] 

Missing

Try

 'install_requires': ['nose'], 
+6
source

Source: https://habr.com/ru/post/926056/


All Articles