-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant up does not install dependencies properly. #9
Comments
Hi @alcemirsantos, thanks for reporting this issue. To be honest, I don't exactly know what's going on in the vagrant scripts and also not what's happening in the testing and analysis scripts that are given in the Since a few weeks, we are busy with porting Codeface to python3, and we will update the README and installation scripts afterwards, to make Codeface fit for the future and perform all the upgrades and important changes that have been slept through during the last 5 years. However, this will still need a couple of weeks to be eventually finished, I guess, and we will update the README only once after the final portings have finished. I am also not sure if we will keep the Vagrant file (I personally have never used vagrant, so I am not familiar with it) or whether we will provide a Docker file instead, or just provide updated installation scripts for installing Codeface in a self-hosted virtual machine. Let's see... After all these explanations, now back to your issue: I am very sorry for the troubles you currently encounter with vagrant and Codeface. For the moment, I can offer you two possible solutions:
I hope that this does not restrain you from using Codeface. We are heavily working on all the upgrades that have bee neglected for a couple of years and are happy to provide you with an up-to-date version of Codeface in python3 and updated installation scripts soon. However, there will be no functional changes. If you decide to install the current version of Codeface, which is fully working on Ubuntu 22.04 with python2.7, I'll be glad to help you with any problems and can also provide you with working example scripts, depending on your use case. |
Hi @bockthom, thanks for the quick and detailed answer. I did use the original codeface version (from siemens repo) while ago in Passau. I never wrote a If you could provide a docker file would also be of great help. I can wait a few weeks. |
Yeah, that's indeed a little bit confusing. Our study homepage already refers to this repo (the se-sic repo) with all the updated files as we have used the updated version of Codeface for the study, but we just used it in a local installation and did not update vagrant and README. Nevertheless, we will also cleanup and update the README as soon as we have fixed the installation processes.
We will probably discontinue the vagrant file, but we aim at providing a Docker file for automatized installation for those who are not in a Linux environment. I'll let you know as soon as we have finished working on it. |
@bockthom I tried to install dependencies in local VM of Ubuntu 22.04 by running the installation scripts in this folder with no success. For instance, I faced several problems running Would it be possible to make an image of your local installation and make it available meanwhile you finish the docker files? If not, is there an update list of dependencies and architecture diagram, so we could try to build a docker-compose ourselves? From this thread and the current docs I can enumerate the following dependencies for the old codeface:
The current codeface version in the main branch still hold this dependencies? Any other major dependency? |
The "current docs" have not been kept up to date by the former maintainers. Hence, I would not rely on them, they definitively won't work. We will remove them soon. For most of the dependencies, you should be able to use the recent version (exception is R and python, but I will talk about that below in detail.) (@nlschn: we need to replace the outdated docs in the In contrast to the docs, the actual installation scripts in the Installation guide for Codeface using python 2.7 from branch
|
On Step 3, while running
...and it stops right there. I can not move any further. I checked the version and I am using:
|
This problem looks weird. When I call it here in Germany, it works. I don't know why the download fails, maybe there is some geographically located problem. Maybe you can try another CRAN mirror to download this package? And replace the URL of the BH installation in "packages.r" in line 64? Here you can find a list of mirrors, maybe it helps to try a Brazilian mirror: https://cran-r.c3sl.ufpr.br/src/contrib/Archive/BH/BH_1.75.0-0.tar.gz (edit: I originally had pasted the wrong link here)
This error looks like a typical R 4.3.0 error. This kind of error does usually not appear prior to R 4.3.0, as they turned such a warning into an error in R 4.3.0. Are you sure that you really use R 4.1.2? Did you install a more recent R version before installing R 4.1.2? Maybe there are some packages installations / dependencies etc. left from a more recent version? Could you run I even checked the version of gcc and I have used exactly the same version, so I expect the installation to work exactly as on my machine.
Even if you have installed 4.1.2 and use 4.1.2, there might be remnants from a more recent R version that has been installed before, as indicated above. |
I tried to remove R completely and reinstall the 4.1.2. Then, I had to change some versions of he tools in the Step 4: Installation of nodeIt went like this: Step 7: Database setupIt went lik this: Codeface --help outputid_service failing?Although it seems codeface has installed, I believe starting it failed, right? |
Great! And apologies for all the inconveniences. (We will definitively improve the documentation for the installation in the updated version of Codeface to prevent all these headaches.)
Your Codeface installation has finished correctly, but the id service failed starting because of using an undefined environment variable in your call:
I have used an evironment variable
I should have put these code block before the id-service starting call in my installation guide above. Sorry for the confusion. So, for CSCONF you should just use the "codeface.conf" that comes with codeface. And for all the other variables, please set the paths as you like. One last comment: We just encountered that the current Codeface version needs R package May I ask which of the output files of Codeface you actually need for your purposes? If you just need the commit and mail data that codeface writes to the database (which is the only data from Codeface that we have used in Joblin's paper on hierarchical and hybrid structures), you could also comment out the steps that need markovchain (lines 116-147 in codeface/project.py) and use codeface-extraction afterwards to get the commit/mail data from the database as csv files by calling |
I installed the EDIT: I will open a pull request so you all can see what I have updated in my scripts so far. |
I ran
vagrant up
after clone the repository as suggested in theREADME.md
file and then proceeded, however after the process finished, dependencies were not present and I could not run the second step example analysis:/vagrant/id_service/start_id_service.sh&
In the following, I added some prints of the
vagrant up
log...
...
Am I missing something, or do I need to do some hacks to get it up and running?
The text was updated successfully, but these errors were encountered: