Python Lib pandas import error

Ask for help
Post Reply
alexandresgv
Posts: 3
Joined: 21.06.2019 23:40

Python Lib pandas import error

Post by alexandresgv »

Hello people,
I am trying to use pandas in python macro, but when I put this import "import pandas as pd" it returns "ImportError: cannot import name 'CREATE_NEW_CONSOLE' from '_winapi' " :(

Pandas works fine with other python applications, it is updated, and the path is ok;
Is there any workaround?

Code: Select all

12:52:15:292 []: Traceback (most recent call last):
12:52:15:293 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
12:52:15:293 []:     "__main__", mod_spec)
12:52:15:293 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
12:52:15:293 []:     exec(code, run_globals)
12:52:15:293 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\__main__.py", line 85, in <module>
12:52:15:293 []:     main()
12:52:15:293 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\__main__.py", line 64, in main
12:52:15:294 []:     module = __import__(os.path.splitext(filename)[0])
12:52:15:294 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:294 []:     exec(code, module.__dict__)
12:52:15:294 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\Scripts\JangoMacro.py", line 4, in <module>
12:52:15:294 []:     from Scripts import miner
12:52:15:294 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:294 []:     exec(code, module.__dict__)
12:52:15:294 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\Scripts\miner.py", line 1, in <module>
12:52:15:294 []:     import pandas as pd
12:52:15:295 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:295 []:     exec(code, module.__dict__)
12:52:15:295 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\__init__.py", line 23, in <module>
12:52:15:295 []:     from pandas.compat.numpy import *
12:52:15:295 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:295 []:     exec(code, module.__dict__)
12:52:15:295 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\compat\__init__.py", line 35, in <module>
12:52:15:296 []:     import platform
12:52:15:296 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:296 []:     exec(code, module.__dict__)
12:52:15:296 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\platform.py", line 116, in <module>
12:52:15:298 []:     import sys, os, re, subprocess
12:52:15:299 []:   File "D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\py34.py", line 35, in exec_module
12:52:15:300 []:     exec(code, module.__dict__)
12:52:15:302 []:   File "C:\Users\Alexandre\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 178, in <module>
12:52:15:303 []:     from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
12:52:15:304 []: ImportError: cannot import name 'CREATE_NEW_CONSOLE' from '_winapi' (D:\Alexandre\Documents\uo\Programas\Stealth_v8.9.7\py_stealth\_winapi.py)
My system path:
Capturar.PNG
Capturar.PNG (14.11 KiB) Viewed 6218 times
Post Reply