Open Bug 1627626 Opened 8 months ago Updated 4 months ago

mozregression cannot be installed on mac os 10.12

Categories

(Testing :: mozregression, defect, P3)

Desktop
macOS
defect

Tracking

(Not tracked)

People

(Reporter: danibodea, Unassigned)

References

Details

  • Steps to reproduce:
    When attempting to install mozregression via pip command:

pip install mozregresison

  • Actual results:
    The following result is displayed:
    "Could not fetch URL https://pypi.python.org/simple/mozregression/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
    Could not find a version that satisfies the requirement mozregression (from versions: )
    No matching distribution found for mozregression"

  • Additional Notes:
    Python 3.5 requires a version of xCode that is not supported on Mac OS 10.12.
    I need a way to use mozregression on Mac OS 10.12, since it won't lose support support from Mozilla soon.

This might be tricky. You can use python 2.7 for now, though it will be unsupported in the next version of mozregression.

I haven't explored this much, but could you try using a prebuilt version of python from https://www.python.org/downloads/mac-osx/ ? That way you might not need xcode?

Keep an eye out for bug 1425105, which tracks creating a version of mozregression gui which won't require a python installation.

See Also: → 1425105

Hi Daniel, can you give the above a try and let me know how it goes? Depending on the results I may continue attempting to support python 2.7 in some way.

Flags: needinfo?(daniel.bodea)

HI William, I can definitely help, but I need some help. Can you provide steps as to how I install a "prebuild" version of python? And then the mozregression with it? I think my skills in the terminal are much lower than you'd expect. Some tutorials on how to do these things might help.

Flags: needinfo?(daniel.bodea) → needinfo?(wlachance)

Hi Daniel (or is it Bodea?), I think I found a solution that may work. I've created a standalone version of mozregression that bundles everything together in a single executable. Can you try something like this on the command line:

curl -O https://github.com/mozilla/mozregression/releases/download/3.0.5pre0/mozregression.gz
gunzip mozregression.gz
chmod a+x mozregression
./mozregression --help

And tell me if it works on your old version of MacOS X? It's using a very old version of MacOS/xcode to build, so in theory should work all the way back to 10.10.

Assignee: nobody → wlachance
Flags: needinfo?(wlachance) → needinfo?(daniel.bodea)

Yes! It works and apparently it works correctly on:

  • Mac OS 10.12.6
  • Mac OS 10.11.5
  • Mac OS 10.10.5
    And also on:
  • Mac OS 10.9.5

However, the first command you gave me did not work, so I downloaded the file and unzipped it manually, then used the terminal to navigate to the location of the mozregression app, ran the third command ( "chmod a+x mozregression" -that apparently gives the user permission to run it ) and opened it with "./mozregression -launch WHATEVER". I also performed a bisection to make sure it works.

Will this app need updates? How will it be handled, officially?

Thank you!

Flags: needinfo?(daniel.bodea) → needinfo?(wlachance)

I'm not sure how to handle this officially yet. :) Worst case we keep this going as a branch indefinitely, best case we can make the mainline branch (now python3 only) produce binaries that still run on older platforms. Will keep you updated and this bug open for now.

Flags: needinfo?(wlachance)

Hi Daniel, would you be willing to try an experimental version of the GUI on some older versions of MacOS X and tell me how it goes? It would be the dmg downloadable here:

https://github.com/mozilla/mozregression/releases/tag/4.0.0pre4

I think they should work on older versions, but have only tested it on Catalina.

On Catalina you need to specifically install it because it's unsigned, but I think that's unlikely to be an issue in the environment you're testing with: https://support.apple.com/en-ca/guide/mac-help/mh40616/mac

Flags: needinfo?(daniel.bodea)

The app would firstly show the untruster developer error that I have allowed, but it would not open from the mozregression-gui master file anyway. I opened the package contents went to Contents/MacOS and athempted opening mozregression-gui (unix executable) which opened a terminal with the following:

Last login: Wed Apr 22 18:54:03 on ttys000
Administrators-Mac-mini:~ svuser$ /Applications/mozregression-gui.app/Contents/MacOS/mozregression-gui ; exit;
[2403] Error loading Python lib '/Applications/mozregression-gui.app/Contents/MacOS/Python': dlopen: dlopen(/Applications/mozregression-gui.app/Contents/MacOS/Python, 10): Symbol not found: _futimens
Referenced from: /Applications/mozregression-gui.app/Contents/MacOS/Python
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/mozregression-gui.app/Contents/MacOS/Python
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Tested with 10.12.6.
Tell me if/how I can help further.

Flags: needinfo?(daniel.bodea) → needinfo?(wlachance)

According to PyInstaller docs we need to use an earlier version of MacOS to produce the builds:

https://pyinstaller.readthedocs.io/en/stable/usage.html#making-mac-os-x-apps-forward-compatible

Should be able to use an older travis image to do this:

https://docs.travis-ci.com/user/reference/osx/

I'll try to find some time to do this in the next few weeks. Meanwhile, I hope the existing binary I produced will work for you.

Flags: needinfo?(wlachance)

The priority flag is not set for this bug.
:wlach, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(wlachance)
Flags: needinfo?(wlachance)
Priority: -- → P3

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

I adjusted the build process to use 10.13 in bug 1638404, not sure if that will help here but worth a try once I roll out version 4.0.5.

Hi Daniel, I just made another release of the GUI which is built against 10.13 as outlined in comment 12. If you have time, could you let me know if it works? It should have a much greater chance of working than 4.0.4, which was built against 10.15.

https://github.com/mozilla/mozregression/releases/tag/4.0.5

Flags: needinfo?(daniel.bodea)

Release 4.0.5 can be downloaded, unzipped and correctly ran on Mac OS 10.15.
On Mac OS 10.9->10.12.6, is downloaded, unzipped, but it does not open the GUI.

This being said, it appears like it is still a partial fix, so far.
Sorry for the late reply. More OS versions will be tested if you consider it needed.
Let me know if I can provide more information. Thanks!

Flags: needinfo?(daniel.bodea) → needinfo?(wlachance)

Great, thanks.

I think we will just have to leave this open for now, but at least there are some viable workarounds. Hopefully keeping things working on ancient versions of Mac will become less and less important as time goes by.

Assignee: wlachance → nobody
Flags: needinfo?(wlachance)

William, is there a way I could use mozregression on Mac OS 10.12? this version is still supported and I have stumbled upon a bug that only reproduces there and needs an investigation of its regression range. Is there any way I could install the command line version of mozregression, considering that the GUI version does not work?

Flags: needinfo?(wlachance)

(In reply to Bodea Daniel [:danibodea] from comment #16)

William, is there a way I could use mozregression on Mac OS 10.12? this version is still supported and I have stumbled upon a bug that only reproduces there and needs an investigation of its regression range. Is there any way I could install the command line version of mozregression, considering that the GUI version does not work?

Hi Daniel, unfortunately getting the GUI working on 10.12 would be difficult (impossible?), but the special command line version I mentioned in comment 4 should still work. It's an older version of mozregression but functionally it should still be the same.

Flags: needinfo?(wlachance)

You are right! I forgot about that. Thank you!

You need to log in before you can comment on or make changes to this bug.