-
Notifications
You must be signed in to change notification settings - Fork 22
Can't run the tests (several errors) on Windows #15
Comments
What version of pip is installed? Our requirements files require pip 8+. The Python 3.3 failure is expected since master doesn't support Python 3. See https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django. |
Oops I just saw I downloaded https://www.djangoproject.com/m/vms/djangocore-box-1.1.box , I misread the link and didn't make the difference between 1.1 and 1.11... Sorry for the noise ! |
I think I'll remove that image since it's obsolete. Is there a pointer to it that we could remove? |
No I found the link on the mailing list thread. |
I don't think so. Maybe you could contact them and ask if there's a reason it's not supported. |
@olivierdalang you could try using the commands to build the box from scratch which only involves an initial 500mb (or so) to get the base ubuntu box. The provisioner will then download the rest of the software needed. Alternatively, you can download the fully compiled box directly from hashicorp with the following url: https://atlas.hashicorp.com/djangoproject/boxes/django-box-1.11/versions/1.11.0/virtualbox.box |
Ok it works better with the correct version, but I still run into some errors.
returned
The log file displays
I think that's a Windows-specific error, where VirtualBox shared folders don't support symbolic links by default. I thought this should be fixable with this :
But it didn't work. I had more success by changing the tox working directory so that it's not on the shared folder anymore. In The annoying thing is that tox.ini is versioned. I didn't find a way to override the toxworkdir variable otherwise. Isn't there a way to set it using something like After this
returns
The log file displays
Here it looks there are missing dependencies. I didn't investigate further. |
Are you using the version released yesterday? #14 (comment) |
No. It looks it's the same error on that other issue, I didn't see it. I'll test again when I have a chance to download the new box. |
Hi, Testing again with the last version, it now works with the following fixes :
Thanks for the support ! I'll make a PR for the readme to add these instructions. |
Well sorry I just thought about it again, I think this |
Added some instructions to make the tests work on Windows host as explained in django#15
Thanks for all of this @olivierdalang . I'm acknowledging that I've got this on my radar, it's just been a busy couple of weeks, and will be a busy couple more. Have you figured out if it's possible to allow symlinks from within the Vagrantfile? Ideally users shouldn't have to mess around with the virtualbox app directly. |
Looks like you can control this option from the vagrant file. From http://stackoverflow.com/a/24365338/10583
|
Great, that should do. With this, the only step one has to remember is to run vagrant as an administrator. |
I tried and tried and tried to make this work, but couldn't. I even resorted to calling SharedFOldersEnableSymlinksCreate passing the value of the machine to no avail. I was trying under Windows 10, with VirtualBox 5.1.8 and Vagrant 1.8.6. Everything I tried was from an elevated shell. Should the SharedFolders command be run against a running virtual machine or a provisioned but halted one? @olivierdalang are you able to try modifying the Vagrantfile and adding the following block:
Then run |
Acoording to this blog post: https://blog.puphpet.com/blog/2015/06/25/windows-symlinks/, linked from hashicorp/vagrant#6024 (comment) there are three things needed to get sysliks to work on a Linux VirtuaBox guest under a Vagrant host:
It seems we've already figured out the two former ones. Unfortunately I'm not able to confirm the this right now; posting this in case someone can test it. |
Hi,
Following the README.md, I was able to setup the vagrant VM, but the test commands don't work.
I downloaded the box manually from https://www.djangoproject.com/m/vms/djangocore-box-1.1.box (I have an unstable and slow connection, and stupidly, atlas.hashicorp doesn't support resuming downloads). I run Windows 10 64 bits, Virtualbox 5.0.20.
Disclaimer : I never used vagrant boxes before, so maybe I missed an implicit step.
fails with
Then
fails with
Python3.3 tests have another problem :
fails with
The text was updated successfully, but these errors were encountered: