dronekit / dronekit-sitl

SITL runner for DroneKit.
115 stars 112 forks source link

Error installing dronekit-sitl into python 3 environment on Windows #68

Open hamishwillee opened 8 years ago

hamishwillee commented 8 years ago

See debug output below.

C:\Program Files>pip list
pip (7.1.2)
setuptools (18.2)

C:\Program Files>pip install dronekit-sitl -UI
Collecting dronekit-sitl
  Using cached dronekit_sitl-3.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "C:\Users\hamis\AppData\Local\Temp\pip-build-u2ghls8d\dronekit-sitl\setup.py", line 32
        print 'Cleared cached SITL binaries.'
                                            ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\hamis\AppData\Local\Temp\pip-build-u2ghls8d\dronekit-sitl

Similarly, when tried using github version got permission denied errors.

C:\Program Files>pip install git+https://github.com/dronekit/dronekit-sitl
Collecting git+https://github.com/dronekit/dronekit-sitl
  Cloning https://github.com/dronekit/dronekit-sitl to c:\users\hamis\appdata\local\temp\pip-w5aohs6v-buil
Collecting psutil>=3.0 (from dronekit-sitl==3.0.1)
  Downloading psutil-3.4.1-cp35-none-win_amd64.whl (96kB)
    100% |################################| 98kB 927kB/s
Collecting dronekit>=2.0.0b6 (from dronekit-sitl==3.0.1)
  Downloading dronekit-2.1.0b1.tar.gz
Collecting six>=1.10 (from dronekit-sitl==3.0.1)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting pymavlink>=1.1.62 (from dronekit>=2.0.0b6->dronekit-sitl==3.0.1)
  Downloading pymavlink-1.1.67.tar.gz (1.8MB)
    100% |################################| 1.8MB 132kB/s
Collecting requests<=2.99999,>=2.5.0 (from dronekit>=2.0.0b6->dronekit-sitl==3.0.1)
  Using cached requests-2.9.1-py2.py3-none-any.whl
Installing collected packages: psutil, pymavlink, requests, dronekit, six, dronekit-sitl
Exception:
Traceback (most recent call last):
  File "C:\Program Files\Python35\lib\site-packages\pip\basecommand.py", line 211, in main
    status = self.run(options, args)
  File "C:\Program Files\Python35\lib\site-packages\pip\commands\install.py", line 311, in run
    root=options.root_path,
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_set.py", line 646, in install
    **kwargs
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 803, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 998, in move_wheel_files
    isolated=self.isolated,
  File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 339, in move_wheel_files
    clobber(source, lib_dir, True)
  File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 310, in clobber
    ensure_dir(destdir)
  File "C:\Program Files\Python35\lib\site-packages\pip\utils\__init__.py", line 71, in ensure_dir
    os.makedirs(path)
  File "C:\Program Files\Python35\lib\os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\psutil'
bmann33 commented 8 years ago

Hello, I am new to this language and I am trying to install the samething on my computers. Running windows 10 64 bit. I get the same error. That error 1. And when i try to install it using the pip install github method, I get error [WinError 2]. Is there any fixes to this solution? I desperately need dronekit-sitl to run, Thanks!

Microsoft Windows Version 10.0.10586 2015 Microsoft Corporation. All rights reserved.

C:\Users\Brian Mann>pip list dronekit (2.4.0) monotonic (0.6) pip (8.1.1) pymavlink (1.1.72) requests (2.9.1) requests-oauth (0.4.1) setuptools (20.7.0)

C:\Users\Brian Mann>pip install dronekit-sitl Collecting dronekit-sitl Using cached dronekit_sitl-3.0.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\BRIANM~1\AppData\Local\Temp\pip-build-8z0otk_t\dronekit-sitl\setup.py", line 32 print 'Cleared cached SITL binaries.' ^ SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\BRIANM~1\AppData\Local\Temp\pip-build-8z0otk_t\dronekit-sitl\

C:\Users\Brian Mann>pip install git+https://github.com/dronekit/dronekit-sitl Collecting git+https://github.com/dronekit/dronekit-sitl Cloning https://github.com/dronekit/dronekit-sitl to c:\users\brianm~1\appdata\local\temp\pip-71m24lw2-build Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/dronekit/dronekit-sitl C:\Users\BRIANM~1\AppData\Local\Temp\pip-71m24lw2-build Cannot find command 'git'

C:\Users\Brian Mann>

cerv0077 commented 8 years ago

I have the same problem. Anyone to help us please??

bmann33 commented 8 years ago

Hey cerv0077, i fixed my issue. What i did was uninstalled everything and started fresh with a lower version of python. (2.7 to be exact). I originally had the latest one, which was 3.5 or something like that. Hope this helps

hamishwillee commented 8 years ago

@peterbarker Was this fixed in master - if so, can you do a new release?