V
V
Vladimir Sakov2015-11-04 14:04:16
Python
Vladimir Sakov, 2015-11-04 14:04:16

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]"

At the step with the launch of build_all.bat, Anaconda issued the following:
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>

What is the problem? I understand Python at the level of "add-remove-run command-write hello world".
Thanks in advance.
Sincerely, Your newbie, whose questions seem Silly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
blazer05, 2015-11-04
@blazer05

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

M
marataziat, 2017-06-30
@marataziat

Adding everywhere
Either export PYTHONIOENCODING=utf-8:surrogateescape
habrahabr.ru/post/117236/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question