vplanet icon indicating copy to clipboard operation
vplanet copied to clipboard

Issue with vplot on Window's directory structure

Open jrenaud90 opened this issue 3 years ago • 0 comments

Hi, VPlanet team! Looking forward to this week's workshop.

I was testing out my installation and found a small bug when running vplot after a run on a Windows 10 install (conda install w/ Python 3.8).

I received this traceback (<PATH> is just my local system path to where I installed vplanet).

Traceback (most recent call last):
  File "C:\<PATH>\vpl\Scripts\vplot-script.py", line 33, in <module>
    sys.exit(load_entry_point('vplot', 'console_scripts', 'vplot')())
  File "C:\<PATH>\vpl\lib\site-packages\vplot-1.0.2-py3.8.egg\vplot\command_line.py", line 37, in _entry_point
    auto_plot(**args.__dict__)
  File "C:\<PATH>\vpl\lib\site-packages\vplot-1.0.2-py3.8.egg\vplot\auto_plot.py", line 66, in auto_plot
    output = get_output(sysname=sysname, path=path)
  File "<PATH>\vplanet\vplanet\output.py", line 300, in get_output
    log = get_log(sysname=sysname, path=path, units=units)
  File "<PATH>\vplanet\vplanet\log.py", line 308, in get_log
    raise ValueError("Error processing line {} of {}: ".format(i, lf) + str(e))
ValueError: Error processing line 3 of solarsystem.log: too many values to unpack (expected 2)

The issue is with this line in the solarsystem.log: Executable: C:\<PATH>\vpl\Scripts\vplanet It is getting confused with the 2nd ":". By removing that from the text file it works just fine.

Yay for cross-platform directory non-conformity!

Semi-related: I am also getting an "Unknown" for that file's version tag, not sure if that is as intended or not.

Version: Unknown

Cheers

jrenaud90 avatar Jun 07 '21 17:06 jrenaud90