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

Installation of the version 1.1 #12

Closed
bmi-lsym opened this issue Mar 17, 2020 · 3 comments
Closed

Installation of the version 1.1 #12

bmi-lsym opened this issue Mar 17, 2020 · 3 comments

Comments

@bmi-lsym
Copy link

Hello,

I wanted to upgrade to SimBA 1.1 (installation of the previous 1.0 version went smoothly).
Using Anaconda3 command prompt.

Followed the instructions on Github page:

git clone -b master https://github.com/sgoldenlab/simba.git
pip install -r simba/simba/requirements.txt

FFmpeg was already installed.

Then, in Anaconda3 run

python SimBA.py

SimBA GUI did not start, and instead resulted in the error message listed below.

Tried to go around by cloning the Tensorflow-free installation, repeating all the steps above and the following command:

git clone -b SimBA_no_TF https://github.com/sgoldenlab/simba.git

As a result, got the same error message.

Tried uninstalling Anaconda, then installed Anaconda & DeepLabCut newly, then repeated SimBA installation steps.... unfortunately, the same outcome.

Could you please help?

Thank you very much in advance.

Sincerely,
Olexiy.

Error messages in Anaconda prompt

(base) c:\Alex\simba\simba>python SimBA.py
Traceback (most recent call last):
File "SimBA.py", line 51, in
from ROI_freehand_draw_3 import roiFreehand
File "c:\Alex\simba\simba\ROI_freehand_draw_3.py", line 6, in
from shapely.geometry import Polygon
File "C:\anaconda3\lib\site-packages\shapely\geometry_init_.py", line 4, in

from .base import CAP_STYLE, JOIN_STYLE
File "C:\anaconda3\lib\site-packages\shapely\geometry\base.py", line 18, in
from shapely.coords import CoordinateSequence
File "C:\anaconda3\lib\site-packages\shapely\coords.py", line 8, in
from shapely.geos import lgeos
File "C:\anaconda3\lib\site-packages\shapely\geos.py", line 145, in
lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
File "C:\anaconda3\lib\ctypes_init
.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

(base) c:\Alex\simba\simba>

Desktop (please complete the following information):

  • OS: Windows
  • Browser Firefox

Additional context
Add any other context about the problem here.

@bmi-lsym
Copy link
Author

Ok, after trying a bit more myself, following the error message, could fix the issue by manually copying the missing file "geos_c.dll" from its source location "...\anaconda3\Lib\site-packages\shapely\DLLs" to the required location "...\anaconda3\Library\bin".

@sgoldenlab
Copy link
Owner

Thank for for posting the error and the fix! We have added this to our notes to look into further. Please let us know if anything else pops up

@JensBlack
Copy link
Contributor

i encountered the same problem but was able to solve it using
conda install shapely
a quick google suggests that using pip does not install the correct versions for windows users.
Note: i just installed shapely on top of you requirements.txt, it worked.

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

3 participants