JupyterAI
(Kumar Shridhar)
November 10, 2017, 11:19pm
1
Hello everyone,
I am importing several libraries in lesson 1 cell:
And I am getting the following error:
I checked the following link to reduce the amount of TLS in PyTorch:
But adding import cv2, torch in transform.py and other places did not solve my issue.
Any suggestion @jeremy on what should I do next?
thanks
jeremy
(Jeremy Howard)
November 10, 2017, 11:52pm
2
I suspect a git pull
may fix this - may also need to reboot.
1 Like
JupyterAI
(Kumar Shridhar)
November 11, 2017, 12:22am
3
I did git pull but no luck.
I made it work. Downgrading PyTorch to version 0.1.12 from 0.2.0 solved the issue for now.
Thanks Jeremy.
1 Like
sidravi1
(Sid Ravinutala)
November 14, 2017, 3:18pm
4
I had the same error and this was helpful.
@jeremy - Is using the older version fine or is there a better fix for this?
jeremy
(Jeremy Howard)
November 14, 2017, 3:19pm
5
@sidravi1 Iād need to know more about your setup. Hereās some tips: http://wiki.fast.ai/index.php/How_to_ask_for_Help
sidravi1
(Sid Ravinutala)
November 14, 2017, 3:49pm
6
Apologies. Here are my details:
Using paperspace fastai image from week 1
All was good until I did a git pull this morning. It gave me an error about missing packages. I installed those and did a conda update to bring everything up to date.
Got error that it couldnāt find ālibiomp5.so ā. After some googling, I updated my LD_LIBRARY_PATH in to add the path to this lib.
Started getting the ādlopenā error above in the same line as Kumar: āfrom torch._C import *ā. Tried restarting the machine but no love.
Reverted PyTorch version back to 0.1.12 (and any other dependencies that conda found)
Works
jeremy
(Jeremy Howard)
November 14, 2017, 4:17pm
7
Yeah things arenāt working right on Paperspace at the moment. @dillon is investigating!
jeremy
(Jeremy Howard)
November 14, 2017, 4:18pm
8
I wonder if itās pillow-simd. Try conda update pillow
.
sidravi1
(Sid Ravinutala)
November 14, 2017, 4:40pm
9
pillow is up to date (v3.4.2).
Iām happy to wait for @dillon to finish investigating. In the meantime Iāll use pytorch 0.1.12 - so far it seems to run fine.
Thanks for your help.
1 Like
dillon
(Dillon (Paperspace))
November 14, 2017, 6:52pm
10
Iām debugging over in this thread: [Adv] Significant changes to fastai just pushed
Can you see if those steps reproduce the issue for you?
Deb
(Debashish Panigrahi)
November 14, 2017, 7:04pm
11
got the same error when I was trying to run in paperspace. You are probably very close
before any other import insert to your notebook
import torch, cv2
(Iāve been using my notebooks in paperspace in this mode for past 1 week. Please makesure to RESTART your kernel.)
1 Like
sidravi1
(Sid Ravinutala)
November 15, 2017, 12:59am
12
Ok. Will try and get back to you.
sidravi1
(Sid Ravinutala)
November 21, 2017, 2:34am
13
Sorry mate. I finally tried it and it didnāt work.
I get the āImportError: dlopen: cannot load any more object with static TLSā
sidravi1
(Sid Ravinutala)
November 21, 2017, 2:40am
14
Yes! It works.
Just needed to restart kernel (oops) and your fix works. Thanks!
ankitpatro
(Ankit Patro)
February 13, 2018, 3:10pm
15
Hey @JupyterAI ,
How did you change the PyTorch version from 0.1.12 to 0.2.0?
MTAU
(MTAU)
March 29, 2018, 4:25am
16
Iāve just worked through this problem as well. Using the current fastai git repo and working in AWS.
https://medium.com/@GuruAtWork/fast-ai-lesson-1-7fc38e978d37
have posted a series of blogs on this medium account documenting all my config/setup steps.
hopefully will help a future someone.
MTAU
(MTAU)
March 29, 2018, 4:27am
17
I had the same problem, Debās solution worked for me.
Using the current fastai git repo and working in AWS.
my blog below documenting all the steps to get lesson1 working from the current git repo.
have posted a series of blogs on this medium account documenting all my config/setup steps.
hopefully will help a future someone.
Slowpoke
(Pragyat Rana)
May 29, 2018, 3:18pm
18
yeah Deb it works . Thanks
krshrimali
(Kushashwa Ravi Shrimali)
May 30, 2018, 7:51am
20
I tried https://medium.com/@GuruAtWork/fast-ai-lesson-1-7fc38e978d37 - and am able to import bcolz using ipython but when I do it using jupyter notebook, it does not work.
Iām using a remote server, and using jupyter notebook from the server using
ssh -N -f -L localhost:8888:localhost:PORT username@ip_address
command.
Error:
ImportError: No module named ābcolzā