Jump to content


Surajkishan

Member Since 03 Jul 2014
Offline Last Active Jul 03 2014 05:50 AM
-----

Topics I've Started

Unable To Install Thd Distribution

03 July 2014 - 05:07 AM

Hello all.

This is all about the Distribution. I created a module by name pester( instead of nester). Retained the same code. I am able to build the distribution but on trying to install it, an error is shown. The error is as follows:

SyntaxError: invalid or missing encoding declaration for 'scripts\\easy_install-3.4.exe'

I was able to build the distribution with the command: "python setup.py sdist"
But when i try it as "python setup.py install" I get the above error.

My OS is xp - 2.
Python version is: Python 3.4
My installation of Python is at: C:\Installations\Program Files\Python

The exact messages rolled out in command prompt are:


C:\Installations\Program Files\Python>python setup.py install
running install
running build
running build_py
running build_scripts
Traceback (most recent call last):
File "C:\Installations\Program Files\Python\lib\tokenize.py", line 369, in fin
d_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 2: invalid
start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 33, in <module>
'Operating System :: OS Independent',
File "C:\Installations\Program Files\Python\lib\distutils\core.py", line 149,
in setup
dist.run_commands()
File "C:\Installations\Program Files\Python\lib\distutils\dist.py", line 955,
in run_commands
self.run_command(cmd)
File "C:\Installations\Program Files\Python\lib\distutils\dist.py", line 974,
in run_command
cmd_obj.run()
File "C:\Installations\Program Files\Python\lib\distutils\command\install.py",
line 554, in run
self.run_command('build')
File "C:\Installations\Program Files\Python\lib\distutils\cmd.py", line 313, i
n run_command
self.distribution.run_command(command)
File "C:\Installations\Program Files\Python\lib\distutils\dist.py", line 974,
in run_command
cmd_obj.run()
File "C:\Installations\Program Files\Python\lib\distutils\command\build.py", l
ine 126, in run
self.run_command(cmd_name)
File "C:\Installations\Program Files\Python\lib\distutils\cmd.py", line 313, i
n run_command
self.distribution.run_command(command)
File "C:\Installations\Program Files\Python\lib\distutils\dist.py", line 974,
in run_command
cmd_obj.run()
File "C:\Installations\Program Files\Python\lib\distutils\command\build_script
s.py", line 50, in run
self.copy_scripts()
File "C:\Installations\Program Files\Python\lib\distutils\command\build_script
s.py", line 82, in copy_scripts
encoding, lines = tokenize.detect_encoding(f.readline)
File "C:\Installations\Program Files\Python\lib\tokenize.py", line 410, in det
ect_encoding
encoding = find_cookie(first)
File "C:\Installations\Program Files\Python\lib\tokenize.py", line 374, in fin
d_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'scripts\\easy_install-
3.4.exe'