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

Error in liborn for pytorch branch #14

Open
nayeemiiitd opened this issue Jun 11, 2018 · 1 comment
Open

Error in liborn for pytorch branch #14

nayeemiiitd opened this issue Jun 11, 2018 · 1 comment

Comments

@nayeemiiitd
Copy link

At first I ran

python3 setup.py install 

which created build, dist and orn.egg-info folders.
Inside the build folder there was the orn folder containing _ext which has liborn. But init.py file inside the liborn folder gives reference error on the line :

from ._liborn import lib as _lib, ffi as _ffi
@aneesh3108
Copy link

Hi @nayeemiiitd,

I got a similar error while trying to import the conv2d file - and hence giving a 'possible' solution here - I may be wrong.

Once you execute the setup / bash install.sh, all folders are copied and moved over to your default python site packages directory.

For me, I use anaconda environment and hence it was present at:

*\anaconda3\envs\pyt04\lib\python3.6\site-packages

as

orn-1.0-py3.6-linux-x86_64.egg

Not to waste any time, I changed the name of the directory to orn and then simply imported the function as orn.orn.modules.ORConv.
(If you import the folder as a default python import anywhere, it gives an error due to the naming convention. No idea how to change that.)

That works and does not give the error from ._liborn import lib as _lib, ffi as _ffi

Hope this helps!

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

2 participants