I have run into an issue regarding the Fundamentals Capstone Project. I have been working on the project for a while now and have been saving the .md file throughout the project. Even when I log off for a few hours and come back to work on it, I was always able to access the project the way I left it, until today morning.
When I try to run the lines of code I’d written yesterday, it displays a warning stating, " process not in workspace directory". I had completed all the exercises, except for three errors which I was planning to look into today. I tried to open and run the .md file I had saved, but the issue prevails. I have even tried to relaunch KX Developer from the terminal but to no avail.
Could anyone please suggest how I can resolve this?
My suggestion would be to save your code, and completely log out of the sandbox environment and relaunch it from the academy, re-run the steps to launch KX Developer and then paste your code back in.
It looks to me that your developer workspace is no longer logged in correctly, so best to start from the beginning again.
I tried logging out and relaunching sandbox but its still the same. The directory in the terminal used to be ‘/home/jovyan/course-fundamentals-capstone’ but now its changed to ‘jovyan@jupyter-sandeepsarvan-40gmail-2ecom:~/course-fundamentals-capstone$’. Its the same problem once the developer is opened. When I run the first code to load the ‘/fundamentals_capstone_dbs/’ database, an error ‘/opt/kx/developer/workspace/_nouser_/funds_capstone/badTrades.csv’ appears, which is the folder I had to save a table to in exercise 3.4.
Is there anyway I can change the directory back to /home/jovyan/course-fundamentals-capstone?
The directory you are in to run setup.sh seems correct, it should be ~/course-fundamentals-capstone.
You won’t be able to run that script unless you are in the correct directory.
Then when you launch Developer, your URL should look something like this:
Can you confirm that yours is similar with your own email address?
Can you also run
system “pwd”
and let me know the directory you are working from in your scratchpad?
It could be that you just need to change directory, but it could also be that the data has been corrupted by running through the steps multiple times and overwriting and re-writing your database.
If this is the case, I can help you wipe it and restart.
Can you also send the output of
tables
Hopefully we can get to the bottom of this for you.
I tried running the line of code, but this is what comes up.
I could not see any tables at all in the directory. If I do need to delete all the tables from the memory, could you please advise me on how I would do it?
Can you switch to the Workspace tab on the righthand side of the window?
The contents should look like this:
Have you re-run the setup.sh script recently? If your workspace doesn’t look like the above I would suggest closing Developer, going back out to the terminal, and running the setup.sh script again.
system “cd /home/jovyan/developer/workspace/ nouser /funds_capstone”
If you are still getting an error message about badTrades.csv, you might need to delete the csv from the directory (you can do this from the scratchpad using system “rm badTrades.csv” or directly using your terminal.)
You can also go to your terminal and navigate around to see if your database looks okay.
If all else fails we can delete your entire session and let you start afresh (hopefully you have saved your code somewhere), but we would like to avoid that if possible.
When I run the system “pwd”, it shows “/home/jovyan/fundamentals_capstone_dbs”. But when I run system"l “,getenv[`HOME],”/fundamentals_capstone_dbs/" it still shows the “./opt/kx/developer/workspace/__nouser__/funds_capstone/badTrades.csv” error. So I tried to delete the badTrades.csv file using system “rm badTrades.csv” which results in another error “rm: cannot remove ‘badTrades.csv’: No such file or directory”.
If I tried to delete the workspace from the change workspace option and tried to do it all again, would it make any difference?
I tried deleting the workspace from the change workspace option, but it didn’t work. I tried deleting the badTrades,csv file with the whole filepath from both directories using scratchpad and terminal, and it’s still the same result.
Could you please tell me how I could delete the whole project and restart it again because it seems like that is pretty much the only option left?
When I open my terminal, this is what comes up. This is different to what it was when I used to access Developer before this issue began. I’m not sure exactly what the line was, but it wasn’t this.