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

import error #8

Open
Bingo20 opened this issue Mar 23, 2020 · 5 comments
Open

import error #8

Bingo20 opened this issue Mar 23, 2020 · 5 comments

Comments

@Bingo20
Copy link

Bingo20 commented Mar 23, 2020

Simply import riegeli gives me this error:

Traceback (most recent call last):
File "test.py", line 22, in
import riegeli
File "build/bdist.linux-x86_64/egg/riegeli/init.py", line 21, in
ImportError: cannot import name record_position

@QrczakMK
Copy link
Member

How are you building the application?

The only mode currently supported by Riegeli is with bazel (and I admit that bazel’s way of importing other projects is currently awkward, requiring a WORKSPACE listing all transitive dependencies).

There is an effort to make a PIP-installable package with Riegeli but this is not done yet.

@Bingo20
Copy link
Author

Bingo20 commented Mar 23, 2020

@QrczakMK I changed to the python dir of riegeli-master, and run 'python setup.py build' and 'python setup.py install'. I want to use it in python

@dayfine
Copy link

dayfine commented Apr 9, 2020

any estimate on when there will be pip support?

@QrczakMK
Copy link
Member

QrczakMK commented Apr 9, 2020

For building the package yourself, if you have TensorFlow installed (which should not really be a hard requirement but currently there is no option to skip TensorFlow-dependent stuff — this will change), then './configure' and 'python python/setup.py build' works (sdist and bdist too). The resulting package did not install for me though, complains about lack of setup.py inside…

I am sorry, this will need someone more knowledgeable to debug. I am not sure what is supposed to work and what not — I have no experience with Python packaging, only with regular Python coding, and during coronavirus times I am with this alone.

@DaddyWesker
Copy link

DaddyWesker commented Sep 30, 2024

I'm facing the exact same issue. "'./configure' and 'python python/setup.py build' " doesn't work in my case. Anyone able to import riegeli?

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

4 participants