PROBLEMA
In some scenarios, such as calling a Data Interoperability Spatial ETL Tool from a Python script, the following error is returned:
bad magic number in 'requests.packages': b'\x03\xf3
The "magic number" comes from UNIX-type systems where the first few bytes of a file held a marker indicating the file type. Python puts a similar marker into its pyc files when it creates them. The Python interpreter ensures that this number is correct when loading the file.
Anything that damages this magic number will cause the error. This includes editing the .pyc file or trying to run a .pyc file from a different version of Python (usually later) than your interpreter.
rm *.pyc
or:
find . -name '*.pyc' -delet
Id. de artículo: 000025627
Obtener ayuda de expertos en ArcGIS
Empieza a chatear ahora