Skip to content
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

Trouble installing in Ubuntu 18.04 #872

Closed
astrohanp opened this issue Oct 5, 2018 · 11 comments
Closed

Trouble installing in Ubuntu 18.04 #872

astrohanp opened this issue Oct 5, 2018 · 11 comments

Comments

@astrohanp
Copy link

I am trying to install TARDIS on my system (Ubuntu 18.04). After creating the virtual environment using Anaconda, I get the following error when I do pip install git+https://github.com/tardis-sn/tardis
screenshot from 2018-10-05 18-06-38

@unoebauer
Copy link
Contributor

Hi, not sure what's going on here. Could you try the following and let us know what happens:

  • clone the github repo: git clone https://github.com/tardis-sn/tardis.git
  • activate the tardis env: source activate tardis
  • build tardis manually: cd tardis && python setup.py build install

@astrohanp
Copy link
Author

Now I am getting the following error message
screenshot from 2018-10-05 19-38-34

@unoebauer
Copy link
Contributor

Cython may be missing. We had massive problems with cython in the recent past and thus it is currently not included in the env file for Tardis. Try to install cython manually

conda install cython

and retry to build tardis (do a git clean -dfx before, just to be safe).

@astrohanp
Copy link
Author

So tardis seems to install without any errors after manually installing cython but when I try to run the quickstart example in python I get the following error:
screenshot from 2018-10-08 10-12-17

@unoebauer
Copy link
Contributor

Try to use the ipython %debug feature to see what exactly is going on. Also, which tardis_example.yml file are you using?

@astrohanp
Copy link
Author

This is what I get when I do %debug

> /home/rohan/anaconda3/lib/python3.6/site-packages/yaml/scanner.py(576)fetch_value()
    574                     raise ScannerError(None, None,
    575                             "mapping values are not allowed here",
--> 576                             self.get_mark())
    577 
    578             # If this value starts a new block mapping, we need to add

And I am using the tardis_example.yml file from here

@unoebauer
Copy link
Contributor

ok, we need to go up a few frames. Maybe it is easiest if you head over to our slack channel

https://tardis-sn.slack.com/

I'll be available for the next 20min and we can try to figure this out together.

@astrohanp
Copy link
Author

Could you send me an invitation for the workspace on my email? Thanks!

@wkerzendorf
Copy link
Member

I invited you to slack just now

@unoebauer
Copy link
Contributor

I've just realised that you switched to anaconda3/python3. Currently Tardis only runs on python2.7. Once you change back to python 2.7, everything should be fine.

@unoebauer
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants