qpython icon indicating copy to clipboard operation
qpython copied to clipboard

Unable to install any module with pip or QPypi

Open Melab opened this issue 7 years ago • 6 comments

I am running the latest version of QPython 3 (I have not installed the Python 3.6 plugin) and I am unable install any module using QPyPI or pip.

Here is the output of running pip install binwalk:

qpython.sh "/data/data/org.qpython.qpy3/files/bin/pip4console.py" && exit                     <
Input pip commands, ie: pip install {module}
-->pip install binwalk
Downloading/unpacking binwalk
  Running setup.py egg_info for package binwalk

Installing collected packages: binwalk
  Running setup.py install for binwalk
    error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)
    Complete output from command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/binwalk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-gllaoy-record/install-record.txt --single-version-externally-managed:
    running install

error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)

----------------------------------------
Command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/binwalk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-gllaoy-record/install-record.txt --single-version-externally-managed failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/binwalk
Storing complete log in /sdcard/qpython/.pip/pip.log
-->

This is the output of trying to install the QPython version of IPython:

-i  http://qpypi3.qpython.org/simple/  --extra-index-url  https://pypi.python.org/simple/  && exit                          <
Downloading/unpacking ipython-qpython
  Running setup.py egg_info for package ipython-qpython

    package init file 'IPython/core/profile/__init__.py' not found (or not a regular file)
    package init file 'IPython/core/tests/daft_extension/__init__.py' not found (or not a regular file)
Downloading/unpacking traitlets (from ipython-qpython)
  Running setup.py egg_info for package traitlets
    ERROR: traitlets requires Python version 2.7 or 3.3 or above.
    Complete output from command python setup.py egg_info:
    ERROR: traitlets requires Python version 2.7 or 3.3 or above.

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/traitlets
Storing complete log in /sdcard/qpython/.pip/pip.log
1|u0_a157@mango:/ $

Melab avatar Mar 15 '18 00:03 Melab

Same

jordanwilson230 avatar Apr 21 '18 06:04 jordanwilson230

same with paho-mqtt

alirezaimi avatar Apr 27 '18 17:04 alirezaimi

Same here..

jrdutra avatar Sep 12 '18 14:09 jrdutra

same with scipy, numpy, pillow... No solution? I found that maybe the problem is because it downloads windows code, not c/python/android, but I'm not completely sure, and also I don't know how to fix it.

rizerphe avatar Oct 29 '18 07:10 rizerphe

same with esptool

created the missing dirs manually, still doesn't work

ErikSchiegg avatar Nov 22 '18 10:11 ErikSchiegg

The problem is still there. I tried discord.py and dotenv.

DracoY-code avatar Jun 13 '20 07:06 DracoY-code