Answer the question
In order to leave comments, you need to log in
Anaconda + Python + Bimbam throws an error, what should I do?
Have a nice day everyone!
I'm going to decompile the game (oh, believe it or not, the game file in the format for editing in the designer was on the ill-fated USB HDD, which you can read about in my profile, it "flew" without the possibility of recovery, the compiled game is, and no file for editing in the designer) created by Clickteam Fusion.
To do this, I use:
Python 2.7.9
Anaconda ( github link )
Cython installed as add-ons via pip install
Visual C ++ compiler for Python
Instructions for which I performed:
Download & install Python 2.7.9. Make sure you enable "Add python.exe to Path" during Python setup.
Download & install Microsoft Visual C++ Compiler for Python 2.7
Download & extract the (Anaconda ZIP file)[ https://github.com/matpow2/anaconda/archive/master.zip]
Open an administrator command prompt and run: pip install Cython= =0.21.2
Change the command prompt directory to your Anaconda folder and run: build_all.bat
Change the command prompt directory to "[your Anaconda folder]\tools"
Create an empty "output" folder somewhere (I created it at "C: \output").
Run the following command: bimbam.py "[FNaF EXE]" "[output folder you made earlier]"
C:\ClickteamDecompiler>python build.py build_ext -f --inplace
running build_ext
building 'mmfparser.data.chunkloaders.imagebank' extension
Traceback (most recent call last):
File "build.py", line 76, in <module>
ext_modules = cythonize(ext_modules, compile_time_env=compile_env)
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 54,
in run
_build_ext.run(self)
File "C:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 446, in build_exte
nsions
self.build_extension(ext)
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 187
, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 496, in build_exte
nsion
depends=ext.depends)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\lib\site-packages\setuptools\msvc9_support.py", line 52, in
query_vcvarsall
return unpatched['query_vcvarsall'](version, *args, **kwargs)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 275, in query_vcvarsal
l
stderr=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-21: ord
inal not in range(128)
C:\ClickteamDecompiler>
Answer the question
In order to leave comments, you need to log in
I think this should help, at least in django in the model file this function must be specified for python2
def __unicode__(self): # Для python-3 кодировка прописывается так def __str__(self):
return self.title
Adding everywhere
Either export PYTHONIOENCODING=utf-8:surrogateescape
habrahabr.ru/post/117236/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question