Closed GMMULLER closed 1 year ago
Hi ,
I was following the documentation for the "downtown mattan",
Atlast, I got this output,
Is it correct? Please let me know the future steps.
I completed the steps until Data Loading. Although, after running npm run start:web
, the webpage did not load anything.
For the data loading part, while trying to run the cell import utk
, I am running into the following issue "SystemError: initialization of _internal failed without raising an exception". I looked it up on the internet, and it tells that it is some numpy version issue (https://stackoverflow.com/questions/74947992/how-to-remove-the-error-systemerror-initialization-of-internal-failed-without). Any thoughts how to fix it?
Hi, I tried to setup on a MacBook with an M1 pro.
git clone https://github.com/urban-toolkit/urbantk.git
conda create -n utkenv python=3.10.6 -c conda-forge --file requirements_conda.txt
, it's failing to download all the dependencies(there are around 150+ that are not installed). I tried to manually install a couple of them and it turns out they are installing when I remove the part after the second '=' sign- _jupyter==1.0.0=py310h5588dad7 was part of the error message, but when I ran conda install jupyter==1.0.0
, it ran successfully. Is it fine to download all the others this way?npm run start:web
, I'm getting the following:
> urbantk-react-ts@0.1.0 start:web
> start cross-env REACT_APP_ENTRY=app node scripts/start.js && python src/pythonComponents/dataLoading/server.py
sh: start: command not found
Any idea how to fix this?Hi ,
I was following the documentation for the "downtown mattan",
Atlast, I got this output,
Is it correct? Please let me know the future steps.
Yes. That is correct. The colors are missing because I had deactivated the shaders but I just pushed the correction. If you pull it you should be able to the see the changes.
I completed the steps until Data Loading. Although, after running
npm run start:web
, the webpage did not load anything. For the data loading part, while trying to run the cellimport utk
, I am running into the following issue "SystemError: initialization of _internal failed without raising an exception". I looked it up on the internet, and it tells that it is some numpy version issue (https://stackoverflow.com/questions/74947992/how-to-remove-the-error-systemerror-initialization-of-internal-failed-without). Any thoughts how to fix it?
Hey Kazi, can you try to download the data directly instead of following the jupyter notebook? Just put the downtown_manhattan repository under public/data/. About the web page not showing anything, did it launch a second terminal when you ran npm run start:web
or only one? And what operating system are you using?
Hi, I tried to setup on a MacBook with an M1 pro.
- There is a minor typo in the link provided for cloning the repo, it needs to be modified to
git clone https://github.com/urban-toolkit/urbantk.git
Thank you!
- When I run
conda create -n utkenv python=3.10.6 -c conda-forge --file requirements_conda.txt
, it's failing to download all the dependencies(there are around 150+ that are not installed). I tried to manually install a couple of them and it turns out they are installing when I remove the part after the second '=' sign- _jupyter==1.0.0=py310h5588dad7 was part of the error message, but when I ranconda install jupyter==1.0.0
, it ran successfully. Is it fine to download all the others this way?
I think it is fine if you install the other ones like that. That code in the end is used to set the exact version of the python and the package, which I guess might be slightly different since you are using Mac. Sorry about that. You can remove the codes and try to run the install command again.
- This might be an issue with my local installation of npm, when I run
npm run start:web
, I'm getting the following:> urbantk-react-ts@0.1.0 start:web
> start cross-env REACT_APP_ENTRY=app node scripts/start.js && python src/pythonComponents/dataLoading/server.py
sh: start: command not found
Any idea how to fix this?
The start command is a Windows command that allow me to start the second part in an extra terminal. I don't know the equivalent on macOS. I think it is open
but I'm not sure. What you can do is replace that line with: cross-env REACT_APP_ENTRY=app node scripts/start.js
. Then you manually run python src/pythonComponents/dataLoading/server.py
on the root of the project (in a different terminal).
Sorry guys for the compatibility issues. I'm working on dockerizing the application to make life easier :)
Hi, I tried to setup on a MacBook with an M1 pro.
- There is a minor typo in the link provided for cloning the repo, it needs to be modified to
git clone https://github.com/urban-toolkit/urbantk.git
Thank you!
- When I run
conda create -n utkenv python=3.10.6 -c conda-forge --file requirements_conda.txt
, it's failing to download all the dependencies(there are around 150+ that are not installed). I tried to manually install a couple of them and it turns out they are installing when I remove the part after the second '=' sign- _jupyter==1.0.0=py310h5588dad7 was part of the error message, but when I ranconda install jupyter==1.0.0
, it ran successfully. Is it fine to download all the others this way?I think it is fine if you install the other ones like that. That code in the end is used to set the exact version of the python and the package, which I guess might be slightly different since you are using Mac. Sorry about that. You can remove the codes and try to run the install command again.
- This might be an issue with my local installation of npm, when I run
npm run start:web
, I'm getting the following:> urbantk-react-ts@0.1.0 start:web
> start cross-env REACT_APP_ENTRY=app node scripts/start.js && python src/pythonComponents/dataLoading/server.py
sh: start: command not found
Any idea how to fix this?The start command is a Windows command that allow me to start the second part in an extra terminal. I don't know the equivalent on macOS. I think it is
open
but I'm not sure. What you can do is replace that line with:cross-env REACT_APP_ENTRY=app node scripts/start.js
. Then you manually runpython src/pythonComponents/dataLoading/server.py
on the root of the project (in a different terminal).
Thank you, Gustavo. I got it up and running now. I manually downloaded the data as you mentioned in the reply to @komar41. There are a couple more typos I found while going through the README:
cd urbantk
.pythonServerConfig
file mentioned in the second bullet under Data Loading is a JSON file, not JS.May I also suggest creating a google drive link for the manually downloadable data(one folder containing both manhattan and chicago data)- so users can download one folder and place it under urbantk/public. It will reduce duplicacy of effort.
Hi, I tried to setup on a MacBook with an M1 pro.
- There is a minor typo in the link provided for cloning the repo, it needs to be modified to
git clone https://github.com/urban-toolkit/urbantk.git
- When I run
conda create -n utkenv python=3.10.6 -c conda-forge --file requirements_conda.txt
, it's failing to download all the dependencies(there are around 150+ that are not installed). I tried to manually install a couple of them and it turns out they are installing when I remove the part after the second '=' sign- _jupyter==1.0.0=py310h5588dad7 was part of the error message, but when I ranconda install jupyter==1.0.0
, it ran successfully. Is it fine to download all the others this way?- This might be an issue with my local installation of npm, when I run
npm run start:web
, I'm getting the following:> urbantk-react-ts@0.1.0 start:web
> start cross-env REACT_APP_ENTRY=app node scripts/start.js && python src/pythonComponents/dataLoading/server.py
sh: start: command not found
Any idea how to fix this?
@sajal1123 I had the same issue when I was creating the conda environment. Did you create a new requirements.txt file without the last part of the package versions?
@sajal1123 I had the same issue when I was creating the conda environment. Did you create a new requirements.txt file without the last part of the package versions?
Yes, I wrote a Python script to create a new requirements file without the last part of package versions. A few libraries still failed to install but it hasn't created any issues for me so far. Also, I did not install the requirements while creating the environment, as that was leading to an error.
Hi, I tried to setup on a MacBook with an M1 pro.
- There is a minor typo in the link provided for cloning the repo, it needs to be modified to
git clone https://github.com/urban-toolkit/urbantk.git
Thank you!
- When I run
conda create -n utkenv python=3.10.6 -c conda-forge --file requirements_conda.txt
, it's failing to download all the dependencies(there are around 150+ that are not installed). I tried to manually install a couple of them and it turns out they are installing when I remove the part after the second '=' sign- _jupyter==1.0.0=py310h5588dad7 was part of the error message, but when I ranconda install jupyter==1.0.0
, it ran successfully. Is it fine to download all the others this way?I think it is fine if you install the other ones like that. That code in the end is used to set the exact version of the python and the package, which I guess might be slightly different since you are using Mac. Sorry about that. You can remove the codes and try to run the install command again.
- This might be an issue with my local installation of npm, when I run
npm run start:web
, I'm getting the following:> urbantk-react-ts@0.1.0 start:web
> start cross-env REACT_APP_ENTRY=app node scripts/start.js && python src/pythonComponents/dataLoading/server.py
sh: start: command not found
Any idea how to fix this?The start command is a Windows command that allow me to start the second part in an extra terminal. I don't know the equivalent on macOS. I think it is
open
but I'm not sure. What you can do is replace that line with:cross-env REACT_APP_ENTRY=app node scripts/start.js
. Then you manually runpython src/pythonComponents/dataLoading/server.py
on the root of the project (in a different terminal).Thank you, Gustavo. I got it up and running now. I manually downloaded the data as you mentioned in the reply to @komar41. There are a couple more typos I found while going through the README:
- The root folder is named urbantk, please modify the second bullet point under Installation->Clone Repository to
cd urbantk
.- I believe the
pythonServerConfig
file mentioned in the second bullet under Data Loading is a JSON file, not JS.May I also suggest creating a google drive link for the manually downloadable data(one folder containing both manhattan and chicago data)- so users can download one folder and place it under urbantk/public. It will reduce duplicacy of effort.
Thank you for the suggestions! I modified the README.
Hi Gustavo!
I am trying to run the Manhattan shadow example. The server is working, and I am not getting any errors. However, it does not display any shadow on the canvas. I made sure to check the render styles for both building and surface json files are alright! Do you have any clue where the problem might be or if I should try to print any values on the server end to check if everything is working correctly? (attaching some ss for reference)
Fixed the issue. Thanks! I reran the backend setup after fixing the library issues. Now everything seems to work properly!
Hey all, the application is dockerized. If you guys could test it before I merge it that would be great. Just install docker and docker-compose (just install docker desktop on mac and windows for Linux is a little more complicated) go to the branch 15-dockerize-the-application and run "docker-compose up" that should be enough. The data folders go inside ./data now, in the root of the project. If you want to change the folder used, just go to docker-compose.yml and change the environment variables "DATA_FOLDER". I'm going to document that, but for now that should be enough.
Let me know if you guys have any problems
If you trying to run UTK following the documentation I created, I would like to ask you to post any problems or questions you have on this issue so we can help everyone at the same time :)