Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-946

Can't install apache-libcloud (file name too long)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Environment

      OS: Ubuntu
      Python version: 3

      Steps to reproduce

      ➜  ~ $ mkdir test-apache-libcloud
      ➜  ~ $ cd test-apache-libcloud 
      ➜  test-apache-libcloud $ virtualenv .venvs
      ➜  test-apache-libcloud $ source .venvs/bin/activate 
      (.venvs) ➜  test-apache-libcloud $ pip install apache-libcloud==2.2.0
      

      Expected result

      libcloud is installed correctly

      Actual result

      Collecting apache-libcloud
        Using cached apache_libcloud-2.2.0-py2.py3-none-any.whl
      Collecting requests (from apache-libcloud)
        Using cached requests-2.18.4-py2.py3-none-any.whl
      Collecting urllib3<1.23,>=1.21.1 (from requests->apache-libcloud)
        Using cached urllib3-1.22-py2.py3-none-any.whl
      Collecting idna<2.7,>=2.5 (from requests->apache-libcloud)
        Using cached idna-2.6-py2.py3-none-any.whl
      Collecting chardet<3.1.0,>=3.0.2 (from requests->apache-libcloud)
        Using cached chardet-3.0.4-py2.py3-none-any.whl
      Collecting certifi>=2017.4.17 (from requests->apache-libcloud)
        Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
      Installing collected packages: urllib3, idna, chardet, certifi, requests, apache-libcloud
      Exception:
      Traceback (most recent call last):
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
          status = self.run(options, args)
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
          prefix=options.prefix_path,
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
          **kwargs
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
          self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
          isolated=self.isolated,
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
          clobber(source, lib_dir, True)
        File "/home/cyrille/test-apache-libcloud/.venvs/local/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber
          shutil.copyfile(srcfile, destfile)
        File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
          with open(dst, 'wb') as fdst:
      IOError: [Errno 36] File name too long: '/home/cyrille/test-apache-libcloud/.venvs/lib/python2.7/site-packages/libcloud/test/compute/fixtures/azure_arm/_subscriptions_99999999_9999_9999_9999_999999999999_resourceGroups_000000_providers_Microsoft_Compute_virtualMachines_test_node_1_InstanceView.json'
      
      

      Test files with long names added by commit:
      https://git-wip-us.apache.org/repos/asf?p=libcloud.git;a=commit;h=4bd4af926e42f255296b0611dd7215a607633b91

      Remark

      Version 2.1.0 works fine

      (.venvs) ➜  test-apache-libcloud pip install apache-libcloud==2.1.0
      Collecting apache-libcloud==2.1.0
        Using cached apache_libcloud-2.1.0-py2.py3-none-any.whl
      Requirement already satisfied: requests in ./.venvs/lib/python2.7/site-packages (from apache-libcloud==2.1.0)
      Requirement already satisfied: urllib3<1.23,>=1.21.1 in ./.venvs/lib/python2.7/site-packages (from requests->apache-libcloud==2.1.0)
      Requirement already satisfied: idna<2.7,>=2.5 in ./.venvs/lib/python2.7/site-packages (from requests->apache-libcloud==2.1.0)
      Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.venvs/lib/python2.7/site-packages (from requests->apache-libcloud==2.1.0)
      Requirement already satisfied: certifi>=2017.4.17 in ./.venvs/lib/python2.7/site-packages (from requests->apache-libcloud==2.1.0)
      Installing collected packages: apache-libcloud
      Successfully installed apache-libcloud-2.1.0
      

      Attachments

        Issue Links

          Activity

            People

              kami Tomaz Muraus
              cyrille.verrier Cyrille Verrier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: