pyqt / python-qt5

Unofficial PyQt5 via PyPI for Python 2.7 64-bit on Windows
GNU General Public License v3.0
280 stars 78 forks source link

Cannot install from git via pip #18

Closed jacksonofalltrades closed 8 years ago

jacksonofalltrades commented 8 years ago

To start, I should mention, I believe I specifically need to install from git rather than pip since I had problems getting pyinstaller working with PyQt5 otherwise.

I'd like to be able to improve my build process by having the install go through a requirements.txt file.

However, it seems I am unable to put this in my requirements.txt: git+git://github.com/pyqt/python-qt5.git

That is, on Windows, I get this error: "No files/directories in "

The internet says this is because it's not a python package?

Any suggestions? Thanks!

mottosso commented 8 years ago

However, it seems I am unable to put this in my requirements.txt:

That's an interesting use-case, have not tried this with requirements.txt before. Are you sure you it supports Git repositories to begin with? Some quick googling reveals that you might have to adopt a dedicated syntax.

Other than that, as whether it is installable via pip or not, does this work for you?

$ pip install git+git://github.com/pyqt/python-qt5.git
jacksonofalltrades commented 8 years ago

Btw, this is on Windows 8 (32-bit) (a VM, I don't install Windows for real as a rule if I can help it...) Yes, the last line above is what I used. I will include the full console output here:

PS C:\Users\IEUser> C:\tools\python2\Scripts\pip install git+git://github.com/py
qt/python-qt5
c:\tools\python2\lib\site-packages\pip\pep425tags.py:89: RuntimeWarning: Config
variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
  warn=(impl == 'cp')):
c:\tools\python2\lib\site-packages\pip\pep425tags.py:93: RuntimeWarning: Config
variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
  warn=(impl == 'cp')):
c:\tools\python2\lib\site-packages\pip\pep425tags.py:99: RuntimeWarning: Config
variable 'Py_UNICODE_SIZE' is unset, Python ABI tag may be incorrect
  sys.version_info < (3, 3))) \
Collecting git+git://github.com/pyqt/python-qt5
  Cloning git://github.com/pyqt/python-qt5 to c:\users\ieuser\appdata\local\temp
\pip-usqm00-build
No files/directories in c:\users\ieuser\appdata\local\temp\pip-usqm00-build\pip-
egg-info (from PKG-INFO)
jacksonofalltrades commented 8 years ago

Oh, hm, looking at this, I did seem to leave off the .git. Let me try once more with that.

jacksonofalltrades commented 8 years ago

(I'm not sure what the deal is with those runtime warnings...)

jacksonofalltrades commented 8 years ago

Ok, even adding the .git, same exact issue.

jacksonofalltrades commented 8 years ago

That's interesting. I read the stackoverflow post you link to above, and tried adding "-e" and get this: --editable=git+https://github.com/pyqt/python-qt5.git is not the right format; i t must have #egg=Package

So is it possible you just need to add this egg thing?

mottosso commented 8 years ago

Are you running this from cmd.exe? That looks like Powershell, I haven't tried, but are you sure pip is compatible with Powershell?

jacksonofalltrades commented 8 years ago

It is Powershell, and I have pip working fine for other packages.

mottosso commented 8 years ago

Ah, how about the Git extension? Maybe it's a limitation there.

jacksonofalltrades commented 8 years ago

Not sure...I can try on OSX and see if the same problem occurs.

mottosso commented 8 years ago

If this is still an issue, feel free to reopen this.

arpit-goel commented 8 years ago

Hi @mottosso I've been encountering same issue on Ubuntu 14.04. I'm trying to install it in a virtualenv, no matter what I try, it gives No files/directories in /path_to_build/python-qt5/pip-egg-info (from PKG-INFO). Here's the list of commands I tried:

  1. pip install python-qt5
  2. pip install git+git://github.com/pyqt/python-qt5.git
  3. pip install git+git://github.com/pyqt/python-qt5.git@e58d0b106af8d7e419827034827d074338bbaa3e

I also tried with the -e like mentioned above in thread, received same error: --editable=git+git://github.com/pyqt/python-qt5.git@e58d0b106af8d7e419827034827d074338bbaa3e is not the right format; it must have #egg=Package.

There seems to be some issue with the package, can you please look into this?

mottosso commented 8 years ago

This project is only built for Windows. You'll have to build it yourself for Ubuntu and others.

ruidc commented 8 years ago

This package is for Windows only, for Ubuntu 14.04 I suggest you see http://askubuntu.com/questions/662595/best-way-to-install-pyqt5-for-python-2-7-on-ubuntu-14-04

oca159 commented 7 years ago

I have the same problem in macOS Sierra. I am receiving the error No files/directories in /private/var/folders/9b/df5qj2h11cd_fg65c5t2w6g00000gn/T/pip-build-yaKQka/python-qt5/pip-egg-info (from PKG-INFO)

The-Compiler commented 7 years ago

@oca159 from two comments above yours:

This project is only built for Windows. You'll have to build it yourself for Ubuntu and others.

:wink:

Nowadays you can install PyQt5 via pip, though I'm not sure whether that's true or not. I personally use Homebrew there.

mottosso commented 7 years ago

Yes, recommended is Homebrew on MacOS and your native package manager for Ubuntu and other Linux flavours.

If you would rather build, there are instructions for Windows and Ubuntu in the Wiki for this project, that may also apply to MacOS.

Additionally, since about 4-6 months ago, PyQt5 is available via pip for Python 3.5.

$ pip3 install pyqt5
anthrotype commented 7 years ago

Why isn't the pip method the recommended one? It works flawlessly on all three platforms, even inside a virtual environment, with the same pip install PyQt5 command.

mottosso commented 7 years ago

Hi @anthrotype,

This project is exclusively for for users running Python 2.7 on Windows.

PyQt5 exists on pip only for Python 3.5, see here, under "Py Version".

anthrotype commented 7 years ago

Oops, sorry I had forgotten that. Cheers

mottosso commented 5 years ago

This seems like a problem with either pip or git.

Try this.

$ mkdir c:\pythonpath
$ pip install git+git://github.com/pyqt/python-qt5.git --target c:\pythonpath

It should install it into that directory, and then you can move it manually.