Closed ChanJeunlam closed 2 years ago
I can take a look with a Windows VM over the weekend. The package.json
file is in the ParticleViz_WebApp/
folder, so I'm not sure why it's trying to find it in the main path. Can you try running it from another folder, putting the full PATH to ParticleViz.py
and the input_file
?
Thank you for the suggestion, I still do not know why it find package.json file in the main path so I just copy package.json file from ./ParticleViz_WebApp subfolder and add it to main path and now it works a little bit. I am too new to understand the full function of the package. Maybe not having init.py in the moduel of ParticleViz_WebApp?
Executing this command from the particleviz
environment should:
/ParticleViz_WebApp/data/
.package.json
in ParticleViz_WebApp/
and install all the dependencies to the ParticleViz_WebApp/node_modules/
folder, if it doesn't exist. You can delete node_modules/
folder to reinitiallized the process.I think I was stuck at the stage of initialing the webapp
Initializing webapp...
> particleviz@0.0.1 start
> npm run copy-config & react-scripts start
> particleviz@0.0.1 copy-config C:\Users\hugo\particleviz\ParticleViz_WebApp
> cpx './data/**/*.{txt,bin,zip,json}' ./public --watch
My python/conda is installed directly in Windows. As for the first step, it works and produces the following file
C:\USERS\HUGO\PARTICLEVIZ\PARTICLEVIZ_WEBAPP\DATA
├─2
│ pviz_dataset 1_00.txt
│ pviz_dataset 1_00.zip
│ pviz_dataset 1_01.txt
│ pviz_dataset 1_01.zip
│
└─4
pviz_dataset 1_00.txt
pviz_dataset 1_00.zip
pviz_dataset 1_01.txt
pviz_dataset 1_01.zip
As for the second step, it works and successfully produces the needed folder.
The script also hangs in my VM at cpx './data/**/*.{txt,bin,zip,json}' ./public --watch
. I will need to investigate more.
thanks, but I also donot know how to fit it
I managed to now run it fine on a Windows VM, let me know if you still have issues!
Cheers,
I have successfully cloned the repository and created the environment. But when I tried to run the code at the first time using the example file like this
It didnot work and the error information is listed as below. Could you please help me figure out how to solve the problem?