-
Notifications
You must be signed in to change notification settings - Fork 61
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 displaycal error #235
Comments
Relevant & Duplicate #213
|
I get exactly the same error /* and a big bunch of other errors, which might me caused by this error */ when trying to install the dev beanch of DisplayCAL on Python 3.6, which comes with my OpenSuSE 15.4 system. Is Python 3.6 already too old for DisplayCAL to compile? |
Python 3.6 already reached its EOL over a year ago. To run DisplayCal try 3.8+. |
That's the problem: OpenSuSE 15.4 comes with the Python 3.6, and 15.5 will not appear before late June. And the community package Python 3.8 raises an error when installing. |
@JacekRuzyczka Try installing |
Thank you for your hint, @hadrabap ! The install process now works without any errors, but the build does not because of a lacking module:
Why? |
@JacekRuzyczka There is some kind of build harness, which is necessary. Next, DisplayCal uses wxPython (or something like that), which requires additional -devel RPM packages from the Xorg family. Plus GCC (or Clang, whichever is native in your distro). Finally, it requires ArgulCMS. Try Unfortunately, all my machines are down for good night right now. Tomorrow I can give you more details. Or complete working steps for Oracle Linux 8 with X11 (Wayland switched off), including building ArgylCMS from sources. |
Here is the SPEC file for my RPM. Fun facts:
Source package creation:
Do not delete the And here is the SPEC file itself:
Target environment:
|
And here is ArgyllCMS. The only issue is that ArgyllCMS uses Jam/MR build system. As I saw that tool for the first in my life, I decided not to package it separately – but rather to build it as part of ArgyllCMS build itself. I'm using the 2.6.1 version. The source ZIP archive can be downloaded from the files page. The following SPEC file:
Target environment:
|
@JacekRuzyczka My infrastructure is up-and-running so I provided my SPEC files. Hope it will help you with your issues. |
@hadrabap I've already got the python3-wxpython package on my machine. A separate wxpython3-devel package seems not to exist at all. GCC and ArgyllCMS have just been upgraded when migrating to OpenSuSE 15.4. And: And with OpenSuSE 15.5 I've got the problem that it will ship with Python 3.10, but the public beta is stuck at 3.6 (why??), so that I'll have to wait till late June in any case. :-( |
@JacekRuzyczka Well, in mean time, while waiting for new openSUSE, you can temporarily use your own build of Python 3.9. Let me try:
And voilà, we have virtualenv linked to Python3.9 ready for DisplayCal. Now, you should download source code of DisplayCal and run the following commands from the SPEC file above; namely:
Could you please give it a try? You can also follow another build instructions #246 (comment) which are for macOS, but that does not matter. |
OK, I'm gonna give Python 3.9 a try and tell you whether DisplayCAL now builds. Unfortunately, the pip upgrade isn's working because of an unknown dep named
A Microsoft Visual C++ runtime? On my Linux machine? Are you kidding me?? On the package front, something's going on, as one of the guys at SuSE has accepted a request ro reintegrate DisplayCAL into OpenSuSE (Leap 15.5?): https://build.opensuse.org/package/show/multimedia:color_management/DisplayCAL |
@JacekRuzyczka :-D LOL Now, I'm convinced you fully understands why I'm avoiding Python as much as possible. DisplayCal is the only exception till I find non-Python solution. Anyway. It seems there is some kind of issue in the |
@hadrabap I have already done that: https://superuser.com/questions/1783660/how-to-overcome-a-missing-msvcrt-module-when-installing-python-3-from-source-on?noredirect=1#comment2786754_1783660 This issue has been known for 4 years, but the suggested workaround doesn't work for me, unfortunately: https://stackoverflow.com/questions/51201459/python-3-7-install-not-working-on-opensuse-leap-42-3?rq=1 The configure script does not mention msvcrt at all, BTW. |
OK, building Python (I've now got the newest 3.10.11) now works well after numerous changes:
But: I still can't build DisplayCAL yet!
…due to a whole broadside of undefined references, which seem to stem from a file named
After installing all packages listed in What's wrong now? Please note that the instructions your gave me above partially contradict your installing guide in the README file. My version of the GCC, if this is relevant, is: |
I ran into the original issue with
|
Hey @Wedge009, Note that neither of the two is really required to build wxpython wheels on linux. Its just that the dependencies got messed up. |
Thanks for that - yes, that's the one. I didn't know about the different Python versions for attrdict - normally I see when a package is available for both Python 2 and 3, I see the packages named 'name' for Python 3 and 'name2' for Python 2, not the other way around as it seems to be for attrdict. Some more progress, but now running into #251... |
FYI: OpenSuSE Leap 15.5, which was released last week, still comes with the age-old Python 3.6, and the Python 3.10 from a community package comes without pip. UPDATE: There's apparently a bunch of BUT: When trying to install DisplayCAL with The second one, however, seems to be a mistake in DisplayCAL itself:
I've found such an XML file on my machine (can't upload it here as XML is blocked in this forum for whatever reason) and implanted it into the downloaded archive like this: What still remains, is the issue with
…the build process of DisplayCAL will still start a sub-process, which will then attempt to build |
Edit: Addressed, keeping open for others to see. Might want to update README instructions. Feel free to close it of-course.
m1 Mini 13.2.1 (22D68)
pip 23.0.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)
The text was updated successfully, but these errors were encountered: