question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft Windows support?

See original GitHub issue

Is Windows 7 and above supported? (What are the prerequisites then?)

When I run pip install toga-demo I get an error:

[BEEWARE] λ pip install toga-demo
Collecting toga-demo
  Downloading toga_demo-0.2.2-py3-none-any.whl
Collecting toga>=0.2.2 (from toga-demo)
  Downloading toga-0.2.2-py3-none-any.whl
Collecting toga-win32; sys_platform == "win32" (from toga>=0.2.2->toga-demo)
  Downloading toga_win32-0.1.2-py2.py3-none-any.whl (54kB)
    100% |################################| 61kB 2.4MB/s
Collecting toga-cassowary (from toga-win32; sys_platform == "win32"->toga>=0.2.2->toga-demo)
  Downloading toga_cassowary-0.1.2-py2.py3-none-any.whl
Collecting cassowary (from toga-cassowary->toga-win32; sys_platform == "win32"->toga>=0.2.2->toga-demo)
  Downloading cassowary-0.5.1-py2.py3-none-any.whl
Installing collected packages: cassowary, toga-cassowary, toga-win32, toga, toga-demo
Exception:
Traceback (most recent call last):
  File "c:\users\my_user_name\envs\beeware\lib\shutil.py", line 538, in move
    os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'c:\\users\\my_user_name\\envs\\beeware\\Lib\\site-packages\\toga_demo-0.2.2.dist-info\\RECORD.pip' -> 'c:\\users\\my_user_name\\envs\\beeware\\Lib\\site-packages\\toga_demo-0.2.2.dist-info\\RECORD'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\req\req_set.py", line 742, in install
    **kwargs
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "c:\users\my_user_name\envs\beeware\lib\site-packages\pip\wheel.py", line 528, in move_wheel_files
    shutil.move(temp_record, record)
  File "c:\users\my_user_name\envs\beeware\lib\shutil.py", line 553, in move
    os.unlink(src)
PermissionError: [WinError 5] Zugriff verweigert: 'c:\\users\\my_user_name\\envs\\beeware\\Lib\\site-packages\\toga_demo-0.2.2.dist-info\\RECORD.pip'

Error messege says that a file can´t be created because it already exists:

FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 

I guess it’s RECORD.pip

Cheers Tset

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
freakboy3742commented, Jan 9, 2017

Apologies for all the confusion here. Toga 0.2.0 did a pretty big reorganisation of the installation process, reversing an install dependency. As a result, installing Toga on Windows won’t get the expected result. You’ll need to manually install each of the components, and uninstall anything that got installed unexpectedly.

In particular, the Windows backend is still replying on cassowary, but all the toga core code is now referring to colosseum. This reflects a big internal change to the way widgets are laid out. I intend to get Windows support back at some point in the near future, and if you want to help, all assistance is definitely welcome - but in the meantime you definitely need to go in wearing all your helmets and safety pads.

3reactions
freakboy3742commented, Sep 29, 2016

As noted on pybee/toga-demo#4, #67, and a couple of others, Window support is lagging behind other platforms at the moment. I’ll leave this ticket open as a note for others.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Support
Microsoft support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft 365, Windows, Surface, and more....
Read more >
Contact - Microsoft Support
Contact Microsoft Support. Find solutions to common problems, or get help from a support agent.
Read more >
End of support for Windows 7 and Windows 8.1 - Microsoft
After January 10, 2023, Microsoft will no longer provide security updates or technical support for Windows 8.1. You might be able to upgrade...
Read more >
Microsoft Community
Welcome to the Microsoft Support Community. Need help? We've got answers! Search, browse, or ask a question.
Read more >
Download Microsoft Support and Recovery Assistant from ...
The Microsoft Support and Recovery Assistant works by running tests to figure out what's wrong and offers the best solution for the identified ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found