Vagrant won't run when setting up Homestead
Solution 1
Ok, for those who might have the same problem, here's the solution and explanation for it:
Running the command whoami; ls -dlah ~/.vagrant.d/
showed me drwxr-xr-x 7 root root
result indicating that the vagrant folder is owned by root, which was causing the problem of it being not accessible.
The command sudo chown -R yourusername:yourusername ~/.vagrant.d
will fix the problem. :)
Solution 2
I had the same symptoms specified above but with a different solution. I had set the environment variable "VAGRANT_HOME" to something I used in the script. This caused vagrant to look in the director I specified instead of its true home directory. Once I changed my environment variable to something else all was fine.
Related videos on Youtube
sayo
Updated on September 18, 2022Comments
-
sayo over 1 year
I have two data frames:
The first date frame is:
import pandas as pd df1 = pd.DataFrame({'serialNo':['aaaa','bbbb','cccc','ffff','aaaa','bbbb','aaaa'], 'Name':['Sayonti','Ruchi','Tony','Gowtam','Toffee','Tom','Sayonti'], 'testName': [4402, 3747 ,5555,8754,1234,9876,3602], 'moduleName': ['singing', 'dance','booze', 'vocals','drama','paint','singing'], 'endResult': ['WARNING', 'FAILED', 'WARNING', 'FAILED','WARNING','FAILED','WARNING'], 'Date':['2018-10-5','2018-10-6','2018-10-7','2018-10-8','2018-10-9','2018-10-10','2018-10-8'], 'Time_df1':['23:26:39','22:50:31','22:15:28','21:40:19','21:04:15','20:29:11','19:54:03']})
The second data frame is:
df2 = pd.DataFrame({'serialNo':['aaaa','bbbb','aaaa','ffff','xyzy','aaaa'], 'Food':['Strawberry','Coke','Pepsi','Nuts','Apple','Candy'], 'Work': ['AP', 'TC','OD', 'PU','NO','PM'], 'Date':['2018-10-1','2018-10-6','2018-10-2','2018-10-3','2018-10-5','2018-10-10'], 'Time_df2':['09:00:00','10:00:00','11:00:00','12:00:00','13:00:00','14:00:00'] })
I am joining the two based on serial number:
df1['Date'] = pd.to_datetime(df1['Date']) df2['Date'] = pd.to_datetime(df2['Date']) result = pd.merge(df1,df2,on=['serialNo'],how='inner')
Now I want that Date_y lies within 3 days of Date_x starting from Date_x which means Date_X+(1,2,3 days) should be Date_y. And I can get that as below but I also want to check for the time range which I do not know how to achieve
result = result[result.Date_x.sub(result.Date_y).dt.days.between(0,3)]
I want to check for the time such that Time_df2 is within 6 hours of start time being Time_df1. Please help?