Rod-Persky / investoscope-easy-update

Updates Investoscope 3 end of day quotes
GNU General Public License v3.0
6 stars 3 forks source link

Error Message #16

Closed gittyonex closed 5 years ago

gittyonex commented 6 years ago

I followed your instructions step by step , but unfortunately get the following error message : ​

Traceback (most recent call last): File "update.py", line 7, in import investoscope File "/private/var/folders/8p/khws2j6jjflyxn99jmmm0000gn/T/AppTranslocation/848923EC-13BD-49DF-A15D-D5AA60AA305D/d/Investoscope Updater.app/Contents/Resources/investoscope.py", line 23, in CSV_DOWNLOAD_PATH.mkdir(exist_ok=True) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1230, in mkdir self._accessor.mkdir(self, mode) FileNotFoundError: [Errno 2] No such file or directory: '/Users/xxxxx/.investoscope/csv_data'

KhaineBOT commented 6 years ago

The error is caused because the folder /Users/xxxxx/.investoscope/csv_data does not exist. You need to move the investoscope folder to that location, alternatively you can do what I did which is to change the script to reflect the default location of investoscope data.

To do this you need to navigate inside the package (right click | show package contents) to Contents | Resources and edit investoscope.py

change the following line

INVESTOSCOPE_PATH = "~/.investoscope"

to

INVESTOSCOPE_PATH = "~/Library/Containers/com.investoscope.Investoscope3/Data/Library/Application Support/Investoscope 3/"

@Rod-Persky Perhaps it would be better having this as the default, or reading it from a plist or other config file to make it easier to modify

bradsteels commented 5 years ago

Updater is not working since I updated to OS X Mojave; tried updating to Python 3.7 and now getting a similar error: File "update.py", line 8, in import qapi File "/private/var/folders/g0/2yqpz_zn2x95j9_hswpkl_mw0000gp/T/AppTranslocation/8E3223C3-03A3-4DA6-9210-C39C5A738C9B/d/Investoscope Updater.app/Contents/Resources/qapi.py", line 18, in import requests ModuleNotFoundError: No module named 'requests'

KhaineBOT commented 5 years ago

You need to install the requests python module

run pip3 install requests

Rod-Persky commented 5 years ago

@gittyonex you can do the following:

1) Use the default Investoscope path, 2) Edit the python, 3) Make a symbolic link from ~/.investoscope to it's new location

I may look into how investoscope keeps track of the actual path, but those options should generally set you up for a while.

Rod-Persky commented 5 years ago

Otherwise, i'll keep tracking this in #6