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

Basic docs #39

Closed
Robinlovelace opened this issue Oct 17, 2023 · 8 comments
Closed

Basic docs #39

Robinlovelace opened this issue Oct 17, 2023 · 8 comments

Comments

@Robinlovelace
Copy link
Collaborator

Robinlovelace commented Oct 17, 2023

I know this is work in progress but thought I'd give it a spin. Things I've tried so far based on looking at https://github.com/dabreegster/od2net/blob/main/examples/run_all.sh

I've tried:

cd examples/liverpool/
python setup.py 
Traceback (most recent call last):
  File "/home/robin/github/people/dabreegster/od2net/examples/liverpool/setup.py", line 109, in <module>
    run(["mkdir", "-p", "input"])
NameError: name 'run' is not defined
@Robinlovelace
Copy link
Collaborator Author

@Robinlovelace
Copy link
Collaborator Author

But still no luck in reproducing the results.

@dabreegster
Copy link
Collaborator

The sys.path.append("..") is some hack to find utils.py from each example directory. I know I need to make the python module stuff work properly. But odd that it's not working for you -- to sanity check, what's python --version? If it's using 2.7 for some odd reason, try python3

@Robinlovelace
Copy link
Collaborator Author

python --version                                                                                                                          10/17/2023 01:13:21 pm
Python 3.10.12

I think I'm doing something wrong/non-standard. Happy to explore and learn more.

@dabreegster
Copy link
Collaborator

Hi Robin, would you mind trying this again please? https://github.com/Urban-Analytics-Technology-Platform/od2net/blob/main/docs/tutorial_examples.md
Either start fresh or make sure to git pull. I think I finally solved the weird Python import problem you kept hitting

@dabreegster dabreegster reopened this Jan 15, 2024
@Robinlovelace
Copy link
Collaborator Author

will give it a bash, tomorrow most likely

@Robinlovelace
Copy link
Collaborator Author

OK, going to give it a quick go now.

@Robinlovelace
Copy link
Collaborator Author

Seems to be working

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

2 participants