rbreu / beeref

BeeRef Reference Image Viewer
GNU General Public License v3.0
501 stars 37 forks source link

Unable to build in virtual environment #16

Closed andrsd closed 3 years ago

andrsd commented 3 years ago

Describe the bug

If building in a virtual environment, installing packages via pip -r requirements/dev.txt won't pull all needed packages.

To Reproduce Steps to reproduce the behavior:

  1. python3 -m venv env
  2. env/bin/activate
  3. pip install requirements/dev.txt

Expected behavior

Install all needed packages.

Screenshots

N/A

Debug log:

N/A

Fix Doing:

Fixed the problem.

Here is also output from pip freeze from my virtual environment (IDK if that's will help you more): beeref-pip-freeze.txt

My environment is MacOSX, so packackages like macholib are platform specific (probably pulled in by pyinstaller - I am not a python guru).

rbreu commented 3 years ago

The dev.txt is only meant to contain further development tools. The dependencies of BeeRef itself are contained in setup.py. Run the following line from within your git clone directory:

pip install -e .

Please make sure you do this so you get the correct PyQt version. (The recent one has an annoying bug with modifier keys, though it might not affect MacOS.)

andrsd commented 3 years ago

Ok, doing pip install -e . pulled in the required stuff. I misread your note for devs, so I failed to do that step.

Thank you for you help :+1: