Proxmark / proxmark3

Proxmark 3
http://www.proxmark.org/
GNU General Public License v2.0
3.09k stars 901 forks source link

ming64 ipython not working #1009

Closed reliveinfire closed 1 year ago

reliveinfire commented 1 year ago

Hi community, i use the mingw64 env, the ipython3 not working, i got the message

pm3 ~/proxmark3/client/experimental_lib/example_py$ ipython
Python path configuration:
  PYTHONHOME = '/mingw64'
  PYTHONPATH = (not set)
  program name = 'E:/proxmark/ProxSpace/msys2/mingw64/bin/python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'E:/proxmark/ProxSpace/msys2/mingw64/bin/python.exe'
  sys.base_prefix = '/mingw64'
  sys.base_exec_prefix = '/mingw64'
  sys.platlibdir = 'lib'
  sys.executable = 'E:/proxmark/ProxSpace/msys2/mingw64/bin/python.exe'
  sys.prefix = '/mingw64'
  sys.exec_prefix = '/mingw64'
  sys.path = [
    '/mingw64/lib/python39.zip',
    '/mingw64/lib/python3.9',
    '',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

i tried to solve this with venv from google

(venv) pm3 ~/proxmark3/client/experimental_lib/example_py$ source venv/bin/activate
(venv) pm3 ~/proxmark3/client/experimental_lib/example_py$ sh 02run_test_grab_interactive.sh
Python 3.9.6 (default, Jul 12 2021, 05:46:11)  [GCC 10.3.0 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.25.0 -- An enhanced Interactive Python. Type '?' for help.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
E:/proxmark/ProxSpace/pm3/proxmark3/client/experimental_lib/example_py/test_grab.py in <module>
      1 #!/usr/bin/env python3
      2
----> 3 import pm3
      4 from output_grabber import OutputGrabber
      5

E:/proxmark/ProxSpace/pm3/proxmark3/client/src/pm3.py in <module>
     13     from . import _pm3
     14 else:
---> 15     import _pm3
     16
     17 try:

ModuleNotFoundError: No module named '_pm3'

In [1]: exit

and it can not find the _pm3, is there anything wrong about the ipython config in the branch?

thanks