Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`pip install mu-editor` fails with missing dependency for PyQtChart #626

Closed
wuffi opened this issue Aug 24, 2018 · 10 comments

Comments

@wuffi
Copy link

commented Aug 24, 2018

Trying to run pip install mu-editor fails on different computers with different Linux versions for me due to for PyQtChart.
I have a lot of trouble Installing the required version for this package turns out to be difficult on Ubuntu 18, although I installed all required (distribution) packages in advance.
I also tried installing the mu-editor in a virtualenv, but it also didn't work.
Is there a simple possibility to install the mu-editor on linux?

@ntoll

This comment has been minimized.

Copy link
Member

commented Aug 24, 2018

Hi @wuffi,

Sorry to hear you're having problems. I actually develop Mu on Ubuntu on 18.04 and can assure you that pip works! To be certain we're on the same page... you should create a virtualenv that uses Python 3, types pip install mu-editor and then, once installed mu-editor to start the application. I've just done these steps again on my Ubuntu 18.04 machine to ensure there's not something odd going on with PyPI, but I can confirm it works perfectly for me.

What architecture are you using? If 32bit/64bit Intel then I know it works for certain and this is something local to you.

It might be helpful if you could attach a copy of the output you see from pip on your machine.

Thanks,

N.

@wuffi

This comment has been minimized.

Copy link
Author

commented Aug 24, 2018

Thanks so much for the quick reply.
On a i686 Thinkpad, I run

virtualenv -p /usr/bin/python3 ~/mu-env
source ~/mu-env/bin/activate
pip install mu-editor

Now the error message is

 Could not find a version that satisfies the requirement qscintilla
@ntoll

This comment has been minimized.

Copy link
Member

commented Aug 24, 2018

@wuffi

I'm on a ThinkPad X260. ;-)

I just tried your instructions exactly. It works for me. ;-/

I wonder if your local (pip) cache is corrupted in some way. Why not try..?

pip install mu-editor --no-cache

...and let me know what happens?

@wuffi

This comment has been minimized.

Copy link
Author

commented Aug 24, 2018

No, did unfortunately not help.
The error message persists.
But the idea was good.

@ntoll

This comment has been minimized.

Copy link
Member

commented Aug 24, 2018

OK... this seems to be local to you since it works for me and I've asked others to check too. Perhaps you're hitting some sort of CDN cache that's stale and/or incomplete (i.e. this is a PyPI problem rather than anything to do with Mu).

@wuffi

This comment has been minimized.

Copy link
Author

commented Aug 24, 2018

Then I'll close the issue.
It's helpful to know, that it is in principal working on Ubuntu 18.
Thanks again for your quick help.

@ntoll

This comment has been minimized.

Copy link
Member

commented Aug 24, 2018

NP... sorry I can't be of more help.

@carlosperate

This comment has been minimized.

Copy link
Member

commented Aug 24, 2018

Out of curiosity, are you running 32 bits Ubuntu? I wonder if perhaps any of the PyQt wheels is misconfigured (mostly not properly named).
If you try to pip install with the verbose flag it should show you the list of wheels/packages it finds on PyPi and you can see if it finds one for your specific architecture. If you could copy and paste the full output here it would be interesting to see the result.

@wuffi

This comment has been minimized.

Copy link
Author

commented Aug 24, 2018

Please find the verbose output of pip3 below:

Created temporary directory: /tmp/pip-ephem-wheel-cache-v18nwcna
Created temporary directory: /tmp/pip-req-tracker-fjratcgh
Created requirements tracker '/tmp/pip-req-tracker-fjratcgh'
Created temporary directory: /tmp/pip-install-2fwcw7ji
Requirement already satisfied: mu-editor in /usr/lib/python3/dist-packages (1.0.0)
Requirement already satisfied: pycodestyle==2.4.0 in /usr/local/lib/python3.5/dist-packages (from mu-editor) (2.4.0)
Requirement already satisfied: qtconsole==4.3.1 in /usr/local/lib/python3.5/dist-packages (from mu-editor) (4.3.1)
Requirement already satisfied: pgzero==1.2 in /usr/local/lib/python3.5/dist-packages (from mu-editor) (1.2)
Collecting PyQtChart==5.11.2 (from mu-editor)
  1 location(s) to search for versions of PyQtChart:
  * https://pypi.org/simple/pyqtchart/
  Getting page https://pypi.org/simple/pyqtchart/
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/pyqtchart/ HTTP/1.1" 200 3574
  Analyzing links from page https://pypi.org/simple/pyqtchart/
    Skipping link https://files.pythonhosted.org/packages/8b/73/357511cf1d231d7cbc0464ec283ad9c5a9cfc6e4045b0e8f10ddfec33974/PyQtChart-5.7-cp35-cp35m-macosx_10_6_intel.whl#sha256=a78b30e51257b1286733f66ff64beb717f6a6e4929de794fcc921b7627f6cff4 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/a0/25/64a49f1c023c3ebddc1e8f3305b062f463e5674b6a1bdaab67dde7b4552d/PyQtChart-5.7-cp35-cp35m-manylinux1_x86_64.whl#sha256=2cd9db5361abb2b032a960b05b2b7eb136e9adea5f104d879a029aaf59fd4f16 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/73/0b/7fc7aeffce6fb264374f8a345cbbe2967841eceac018376cafe1c1f77d7e/PyQtChart-5.7-cp35-none-win32.whl#sha256=df8db40212646ac9667b6bdcf1296b9b2073d6b2f3ee46df5331bd3a884e3e7d (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/d9/40/9fcf332dae9f8c72b8355c54eceb0af6661179c53bb9f80604651b8b708b/PyQtChart-5.7-cp35-none-win_amd64.whl#sha256=1daa5ece0af12880b3e890b540794652acf4955e2c29828343cf71a97875ff31 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/e5/d2/56927d8760592617c49b28c54ad80ed98321041fa050a104398d7afd8bd6/PyQtChart-5.7.1-5.7.1-cp34.cp35.cp36-abi3-macosx_10_6_intel.whl#sha256=a4224ea30c60bf5ee7f0b9c04dbfdaa4d99d4a7ee50a60fd177baa44764a9c25 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/3c/bf/15a6bf4dd7bd91696ad67b7281a92fa3ac0efbc69a579f944757a933b45e/PyQtChart-5.7.1-5.7.1-cp34.cp35.cp36-abi3-manylinux1_x86_64.whl#sha256=f82a2caf533f81883cd0390ede8bf82f51565bc9701e5dfec340206d2be9392d (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/2c/ad/44ce426ec312b6dec67abebe59d029b5cc196471aee16b3cd2b9ea6a972f/PyQtChart-5.7.1-5.7.1-cp34.cp35.cp36-none-win32.whl#sha256=c9cff5fcd68bc252135d6002208916d203b9bb198154db37103f7b322f6df8d1 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/8d/41/263846474f7ac01ac744fa5e176c8ae70fd725cb424c0f08bbc2826228d4/PyQtChart-5.7.1-5.7.1-cp34.cp35.cp36-none-win_amd64.whl#sha256=7a7419911800e45c3876c9d37404b97b68af64b3d9576f57d1daa300305a1dc3 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/5a/40/5a942f5e29e43c6844951aac92087c9fd65440e5f192464f923f6ceb4f0c/PyQtChart-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#sha256=f1af02e6f12c77d70f3512d8d2493ea8e6b817c999e62c04319e9f8321a8993a (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/dc/8b/4e537924cc8c5c52222827b46135fdc9984066bf20d595a62c88bac1fbdd/PyQtChart-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#sha256=1d697b11bd5db0f54b863c230c2739271f3de77ce0e1ddde311e4a2188cae9f6 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/a6/7d/140b6f5bd30fbf77582455e9160f200e3c30e190c8f5acbfd5908274f3d6/PyQtChart-5.8-5.8.0-cp34.cp35.cp36.cp37-none-win32.whl#sha256=9bff7e11a26b37efa7706cf435925d6d340bd160ecc74b0c70ae8e7a768a5660 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/e7/04/62951e3a875c0e22d08e83bc73a2ea1f9b3995c63da09693f42b7dedbeb7/PyQtChart-5.8-5.8.0-cp34.cp35.cp36.cp37-none-win_amd64.whl#sha256=9207db20568b07b73b490baa1fe6ec0a9ade996b5a49b6c1d54175e2eaa674b3 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/8d/8a/cd24a9576fb3a837f53d85d92f4f5e28f1f1095bcd077f6df91baea4c3a7/PyQtChart-5.9-5.9.1-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#sha256=b67c7dc6175ffee14d3e2c2cd5621b9dde189368103e07685d8f74a411c928b8 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/63/ea/0b79f9d05cb8f9d1fcaba1b1cd9316576161e80980c13c18d1b77c72f1ed/PyQtChart-5.9-5.9.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#sha256=d96377c82865f204038ebb206f63a8e0fd28f33697f29c7f18b9ba5f244b8dde (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/c5/ca/c9e7148c4900f01b904cff1920d24b0b16dd9329197d0fcb606e6d0e58cf/PyQtChart-5.9-5.9.1-cp35.cp36.cp37-none-win32.whl#sha256=c0c1f75d83fb4f78843bccd2902feb9e3a9f65881d75fb390bb9ba82d08d3fb6 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/71/76/b4fbad6a306f7d9742755de5f846c026c6467e8f2c3a7576c24fa20f88ab/PyQtChart-5.9-5.9.1-cp35.cp36.cp37-none-win_amd64.whl#sha256=146ec9660af072b5fdc58631865c07a7e7b9458b7be890a29efa274d6e3bfa41 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/0a/ee/a812c1d82db37d99fa57f6e323afcd7994c49a3c572b09b9dd453b0ffc92/PyQtChart-5.9.1-5.9.2-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#sha256=31186a2c5908193e360e59b181acf5953cfed70e866ddbf44a88a3091912312d (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/78/e7/632b2973861a7d2c886659b5d883465b0822ee22caec2a5c72fbb201085c/PyQtChart-5.9.1-5.9.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#sha256=9257042566f778114ed110cece271861f069d7df5cef88d269fb18bc10f8b48a (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/ab/e7/7810c1a0b32d301f4584b9c5b9e722fa90e8d52a8ae7ffe8624f8caf0bd6/PyQtChart-5.9.1-5.9.2-cp35.cp36.cp37-none-win32.whl#sha256=002eb3a266dffc0572acbf89925f880bf6c4ffaf23c1bb459af9e51008782795 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/c3/1b/e86e547e3fef4d7948200f8a4aaaa6e9814fe752f98a413fa73b5c1742e4/PyQtChart-5.9.1-5.9.2-cp35.cp36.cp37-none-win_amd64.whl#sha256=173b746a5143378dfb94c99b63ccb70e4b3ad3dd72c32df6c1110ef28a754831 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/c3/f7/2c6c22a20ffab9fb435d91f96665b707f6bf0bdb1f53c0ed33a3ad424e49/PyQtChart-5.9.2-5.9.3-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#sha256=ae1de3eedadfae05e3e7a19c3155722efb35e64b51fbd1093f69fb50d2b4fb58 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/4c/39/e06ba39c2198cc5bfa07362999deaf7dd32fa37e95a60e645b108dd07fcf/PyQtChart-5.9.2-5.9.3-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#sha256=b3c317f036502b6a06476ba6e3113d02b715493532ed22fe38da374e07ac5865 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/0b/1f/b2a71afca0c5f98e327ba7aba4114b0830b689ddd79732a1b000b5caa5c2/PyQtChart-5.9.2-5.9.3-cp35.cp36.cp37-none-win32.whl#sha256=7d427da5aabb3afcce65df12e21e9c9a0d5f54478a8119d01760421496aeca25 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/ac/6c/ac0a66e9985dd22c923f568f753ff6bd0d2785124aab585b8399032bd634/PyQtChart-5.9.2-5.9.3-cp35.cp36.cp37-none-win_amd64.whl#sha256=3f5aa450401d6e07c9912b64414192f3d90023da7e57ecea0d71f1ae2f658dd9 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/84/92/732e11d0ccf603abcc899b3df136e032d8d8930d5a39d825c110a0100731/PyQtChart-5.10-5.10.0-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#sha256=1562de6e6722e4268f4c65eb02acdd0446e221bb1079daf7da3a974d129ad46c (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/9a/9a/574f998b7cea21c1fbc34bb997090f4eaef226ebfb3201e2b93bd19d0126/PyQtChart-5.10-5.10.0-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#sha256=c136a192a842314ca26e56e789f63b7a9626ef18052d9c7c9a702bc128a28420 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/db/e6/ed16b1ecd2427e86ce427ed3ed9cc4ff20865fc365bc08f0b20a57874458/PyQtChart-5.10-5.10.0-cp35.cp36.cp37-none-win32.whl#sha256=50de2162a54d2f0a112881abfbf4702b216b235ffd40e6afe2d4b82067d67ef3 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/90/53/33b2b433131daf818a5c7bc22a5f34d0e4d23d353236431ae8c0b9621099/PyQtChart-5.10-5.10.0-cp35.cp36.cp37-none-win_amd64.whl#sha256=608a4ee9101fa5c667f3ac2229e528fd029444a140d6d5f93c4e325d05edfbc0 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/14/f2/c59413bf7291137ed8270a09aadfd3f6b8ef48fa8995ddd72911fabb0279/PyQtChart-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl#sha256=49561d1abf860158432d28f71358229dd1350c1be70d1067077a7f18c1ef7fd5 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/53/2e/6754d1656d1ecf2ac57b10a5f1090274d78f30e39d2c4cf8430312b788f1/PyQtChart-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl#sha256=ade8241f7a34d7ebb0078145ca3e3cdf2a73e6786a53ec5310d99b78c034fb68 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/bb/ca/4a6bf4ffd3098c2a199aaea9dcfc2dcfb251c7300aaf514903fc3ad2d0a9/PyQtChart-5.10.1-5.10.1-cp35.cp36.cp37.cp38-none-win32.whl#sha256=8ec33ee6d5ccb623029f9a4fbd1683328f4330327cc5b1f73af0d780ff04fabd (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/29/3b/dcc97d7a57830ac448087aefda19dd4bf478895fc4c3a65b2097e4a94734/PyQtChart-5.10.1-5.10.1-cp35.cp36.cp37.cp38-none-win_amd64.whl#sha256=6730f12bb7cc0141f30fb603af3e25cab2292249b865d577fd2b4a26237b0d08 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/e8/d3/9b18f503637b4c46b841880956f1a05e202af702be8558070f03e4666ba9/PyQtChart-5.11.2-5.11.1-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl#sha256=43a288db15c9e820401d83184a1d235b569567995d1a1beb323668370c5967e1 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/77/b6/ed090be2ecef15fe8a2767a42ca66b884c2ef5777e081f0ac2e7b6e4eeed/PyQtChart-5.11.2-5.11.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl#sha256=5d13b09f0ffffad1de5bdb05322c73a29b9640fd8006903ef3d12578ac3dbef9 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/6b/ed/4c351e00b303786ecb9489bd821d7c6d2d4ed6f27b1b3c152ab43b3e97e2/PyQtChart-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win32.whl#sha256=b6cceacb3f75bb1023dd8d2d3b521e8a2e4ea0f163c7db836fb742c2fbc972ef (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/93/1d/e8fc2acf20139924a9227f631be6cd719f4d7c7ce9878c2a6f0d91d4cb91/PyQtChart-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win_amd64.whl#sha256=1b199a90deb3e5088cdf898ffc75f293498f84dac8a2235875f817bcbe829c50 (from https://pypi.org/simple/pyqtchart/); it is not compatible with this Python
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-fjratcgh'
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/basecommand.py", line 141, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/install.py", line 299, in run
    resolver.resolve(requirement_set)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/resolve.py", line 102, in resolve
    self._resolve_one(requirement_set, req)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
    self.require_hashes
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
    req.populate_link(finder, upgrade_allowed, require_hashes)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/req/req_install.py", line 308, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/index.py", line 543, in find_requirement
    'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for PyQtChart==5.11.2 (from mu-editor)
There was an error checking the latest version of pip
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/utils/outdated.py", line 90, in pip_version_check
    state = SelfCheckState(cache_dir=options.cache_dir)
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/utils/outdated.py", line 25, in __init__
    self.statefile_path = os.path.join(cache_dir, "selfcheck.json")
  File "/usr/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'bool'
@wuffi

This comment has been minimized.

Copy link
Author

commented Aug 26, 2018

It works! On the first attempt and without any problems!
On a different notebook (Thinkpad X200, i.e. 64-bit), it's as simple as

sudo -H pip3 install mu-editor

I am still wondering what the trouble on the 32-bit one might be, because I still haven't succeeded in installing mu-editor there. Possibillities might be having begun with pip install mu-editor (i.e. python2 in the beginning), but I am actually a bit clueless.

So, I'm a little bit embarrassed now and want to apologize.

The mu-editor is excellent work, which hopefully continues!

@wuffi wuffi closed this Aug 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.