bugManeage - Bugs: bug #59084, Setuptools crash on macOS: no...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59084: Setuptools crash on macOS: no module named '_scproxy'

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 08 Sep 2020 11:03:13 PM UTC
   
 
Category:  Software Severity:  3 - Normal
Item Group:  Crash Status:  In Progress
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Jump to the original submission

Tue 15 Sep 2020 05:51:39 PM UTC, comment #6: 

Thanks Raul, the checks were great! The commit is now merged into Maneage as Commit 0c882a44.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Mon 14 Sep 2020 03:04:34 PM UTC, comment #5: 

Thanks a lot Mohammad. While Behzad tell us if the problems has been solved by installing Xcode (or by any other fix), I have pushed a commit. Now it explicitly check if the system is macOS, and not assume this is the case if it is not GNU/Linux.

Also, if the system is macOS, then it checks if Xcode is present in the host system. If it is not, a warning message invites to the user to install Xcode if a problem occurs.

Please, have a look and let me know what do you think ;-)

https://gitlab.com/infantesainz/reproduce-raulfork/-/commit/556f1327

Raul Infante-Sainz <infantesainz>
Group Member
Thu 10 Sep 2020 01:52:12 PM UTC, comment #4: 

Behzad, can you try installing Xcode to see if it does indeed fix this problem?

That is a good idea Raul, do you know any good command that we can use to check if Xcode is available on the host macOS?

After Behzad confirms that installing Xcode fixes the problem, we can put it the part where we check the host's Kernel in reproduce/software/shell/configure.sh.

By the way, in that same part of 'configure.sh', can you also check the value of 'uname -s' on macOSs? Currently if the host kernel isn't Linux, we simply assume its macOS, but it would be better if we explicitly check for the macOS kernel and warn the user if its not Linux or macOS.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 10 Sep 2020 06:02:18 AM UTC, comment #3: 

Yes, I have Xcode installed. This is the very first thing I did when I set up the system. Without Xcode I could do almost nothing. It is very easy to install and probably it will solve the problem.

This is interesting. The fact that I didn't have this problem is because since the very beginning I installed Xcode. So, I am wondering if we should check the installation of Xcode in macOS systems. And if it is not installed, then inform the user to install it.


Raul Infante-Sainz <infantesainz>
Group Member
Thu 10 Sep 2020 12:26:27 AM UTC, comment #2: 

Probably the fact that you haven't installed Xcode is the cause! Raul actually uses macOS systems. Raul, do you use Xcode on your macOS?

I also know that Mahdieh (which you know) has a macOS, can you ask her if she has Xcode?

From the Wikipedia page, "Xcode includes Command Line Tools (CLT) ...", so its a super-set of CLT and probably includes the very low-level things that are causing these problems.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 09 Sep 2020 05:54:04 PM UTC, comment #1: 

I tried the suggested method (the second suggestion because I have not installed XCode. instead, I installed command line tools), but the problem still exists and no change is observable.

Behzad Bojnordi Arbab <behzadbojnordi>
Tue 08 Sep 2020 11:03:13 PM UTC, original submission:  

Behzad Bojnordi reported the following problem with building Maneage on macOS.

It seems that this problem has been seen before and is apparently due to the incomplete installation of Xcode. Behzad, can you please try their suggested method, and let us know if it works ;-).

+vebatim+
copying setuptools/command/launcher manifest.xml -> build/lib/setuptools/command
running install
Traceback (most recent call last):
    File "setup.py", line 148, in <module>
        dist = setuptools.setup(**setup_params)
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
    File "/BUILD-DIR/software/installed/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
    File "/BUILD-DIR/software/installed/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
    File "/BUILD-DIR/software/installed/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/command/install.py", line 67, in run
        self.do_egg_install()
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/command/install.py", line 98, in do_egg_install
        easy_install = self.distribution.get_command_class('easy_install')
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/dist.py", line 841, in get_command_class
        self.cmdclass[command] = cmdclass = ep.load()
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/pkg_resources/__init__.py", line 2443, in load
        return self.resolve()
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/pkg_resources/__init__.py", line 2449, in resolve
        module = _import_(self.module_name, fromlist=['__name__'], level=0)
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/command/easy_install.py", line 56, in <module>
        from setuptools.package_index import (
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/package_index.py", line 22, in <module>
        from setuptools import ssl_support
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/ssl_support.py", line 33, in <module>
        HTTPSHandler = urllib.request.HTTPSHandler
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/_vendor/six.py", line 92, in _get_
        result = self._resolve()
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/_vendor/six.py", line 160, in _resolve
        module = _import_module(self.mod)
    File "/BUILD-DIR/software/build-tmp/setuptools-41.6.0/setuptools/_vendor/six.py", line 82, in _import_module
        _import_(name)
    File "/BUILD-DIR/software/installed/lib/python3.8/urllib/request.py", line 2619, in <module>
        from _scproxy import _get_proxy_settings, _get_proxies
ModuleNotFoundError: No module named '_scproxy'
make: * [reproduce/software/make/python.mk:558: /BUILD-DIR/software/installed/version-info/python/setuptools-41.6.0] Error 1
-verbatim-

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by infantesainz (Posted a comment)
  • -email is unavailable- added by behzadbojnordi (Posted a comment)
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-08 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code