-
Notifications
You must be signed in to change notification settings - Fork 59
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
setup.py broken in feature-newgui branch #45
Comments
Did you uninstall Pillow before trying to install Pillow-SIMD? I think that is required. Does installing Pillow-SIMD work using Pip manually? Which dependency can't it find? Pillow-SIMD makes me install olefile on Linux as well, I'm not sure if it can be omitted. I've been creating my first setuptools-like script in In |
Every build is done in a clean sandbox, so that is not the issue. I think you missunderstood the issue. I have succesfully installed Pillow-SIMD with pip3, no issue at all. The problem is that 'pillow-simd' in Now moving on. It is good to know that you too are new with this. This week has been my first true exposure to setuptools (and related tools). It is honestly the most confusing system I have ever seen. So I can relate to you being new on this. I suppose I could continue to try and fix it with your guidance. For example, that last paragraph will surely help me a great deal. I will try my best to read documentation and fix it and get back to you with any questions or updates. |
So I have been reading https://setuptools.readthedocs.io/en/latest/setuptools.html and https://python-packaging.readthedocs.io/en/latest/minimal.html. I have had a look in other projects and searched the web. It would seem to be very difficult or impossible even to get this to work with the current directory structure. Your code should be in its own module directory that can be picked up by I then found #20 which seems to be the way to solve this, except it was based of the wrong branch. |
There should not be a problem making it work with the current directory structure. All you need to do is change the current working directory and proceed as normal. Shouldn't need to copy anything. If you look around a lot of other python projects use the same directory structure or similar. I will try to find time to help out with this, but my schedule is pretty full through the end of the month. |
Can you clarify what you mean with change the current directory? I have to run I cannot do anything before or after that. Also, by directory structure I mean setuptools expect your module code to be in its own directory. That would mean adding something like src/avpython. For example, currently |
Well it looks like one can use
Perhaps this can be used as an example: |
Thank you! I did not know |
No problem, if you get it working, be sure to submit a pull request to the |
Well I think I got it working or at least got closer. However now if I run the entrypoint script in bin or something like
It would work if I first change into the module directory, but that sort of defeats the purpose of |
What does your |
|
Try installing with this branch. For me this |
That works except I get this on running
I mentioned the reason for this several times already. Because Pillow-SIMD offers drop-in compatibility (I assume that is why) it is installed as Pillow. I am uncertain if there is a way to install it differently. I tried both of these sources:
I install pillow-simd with:
If I apply this patch the GUI launches successfully via
Although I realize this is not ideal because if one installs everything automatically like you did this would likely install standard Pillow instead... By the way you don't need to specify olefile explicitly because it is already an implicit dependency of Pillow/Pillow-SIMD. |
I finally managed to get it working with Pillow-SIMD set as requirement! (without the patch) I am unsure why but it seems to install differently depending on the combination of where you get the source and the which installation tool is used. That or I messed it up somehow. Anyhow, I am just happy it works. I would still remove olefile as an explicit, but that is just a detail. Regarding your own issues with PyQt5 and numpy during installation. I ran into that too. It would seem this simply is an issue with easy_install, which is used by |
Hmm. For me putting Pillow-SIMD in install_requires and running it with For now I think changing the install instructions to tell people to run |
Strange indeed, when I tried it some day or two ago, easy_install did try to install it. It failed because there was not network access, but still. As I said, it seems a bit unreliable. Otherwise, if it helps keep it for now. It should not hurt. |
I see you merged the setup-fix branch :) Just built and installed from latest commit in |
Since commit e92e9d7
setup.py
is completly borked.It tried fixing it myself but ran into other issues.
Using
install_requires
with'pillow-simd'
does not work (dependency is not found even if it is installed), while using'Pillow'
seems to work. I think the reason for this is Pillow-SIMD is meant to be a drop-in replacement.Although listing
'Pillow'
as a dependency forces me to install olefile, which seems completly uneccessary under Linux, or am I wrong?Even with this fixed there won't bin any working file in the bin directory because you rely on
avpython
. I tried looking it up but it is beyond me. The main issue here is that there only seems to be windows executables available and I cannot find a source.My attempt at fixing
setup.py
(not complete):The text was updated successfully, but these errors were encountered: