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 after a fresh install #186

Closed
MridulS opened this issue Jul 15, 2016 · 8 comments
Closed

Error after a fresh install #186

MridulS opened this issue Jul 15, 2016 · 8 comments

Comments

@MridulS
Copy link
Contributor

MridulS commented Jul 15, 2016

I cloned the repo and went through the steps in the readme for a fresh install.
python manage.py runserver executed without any problem.
But when I tried to create a new user account through the browser I got this message.

 File "/usr/local/lib/python2.7/dist-packages/bcrypt/__init__.py", line 50, in gensalt
    output = _bcrypt.ffi.new("unsigned char[]", 30)
AttributeError: 'module' object has no attribute 'ffi'

@DSin52 @adbharadwaj Any clue?

@adbharadwaj
Copy link
Collaborator

I think it's because of some package version conflict.

I solved it by creating a virtual environment for the application. Take a
look at virtualenv package.

Hope it helps.

Aditya Bharadwaj
Graduate Research Assistant,
Department of Computer Science,
Virginia Tech
adb@vt.edu

I cloned the repo and went through the steps in the readme for a fresh
install.
python manage.py runserver executed without any problem.
But when I tried to create a new user account through the browser I got
this message.

File "/usr/local/lib/python2.7/dist-packages/bcrypt/init.py",
line 50, in gensalt
output = _bcrypt.ffi.new("unsigned char[]", 30)
AttributeError: 'module' object has no attribute 'ffi'

@DSin52 https://github.com/DSin52 @adbharadwaj
https://github.com/adbharadwaj Any clue?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#186, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUeB8nF37sO6DHrhz1ftFqKkYNMmykqks5qV9FCgaJpZM4JNqm9
.

@tmmurali
Copy link
Member

@adbharadwaj Your solution will not work for anyone who follows the instructions we currently have on GitHub for installing GraphSpace. Can either you or @MridulS dig in and find out what have replaced the ffi function/variable in newer versions?

Does Kozea/cairocffi#62 shed any light? Please discuss in this thread before committing a fix.

@adbharadwaj
Copy link
Collaborator

I am not sure which package is causing a conflict. This is a common problem
and is usually handled using well required packages file with compatible
versions

But I have already implemented the standard installation solution for
Graphspace. This solution fixes two things - python dependency management
and settings management for multiple environment.

I am talking about the first two commits in this branch.
https://github.com/Murali-group/GraphSpace/commits/%23176

Once I have made changes to the readme document, I will send a pull request
to the master branch.

Aditya Bharadwaj
Graduate Research Assistant,
Department of Computer Science,
Virginia Tech
adb@vt.edu

On Fri, Jul 15, 2016 at 5:39 PM, T. M. Murali notifications@github.com
wrote:

@adbharadwaj https://github.com/adbharadwaj Your solution will not work
for anyone who follows the instructions we currently have on GitHub for
installing GraphSpace. Can either you or @MridulS
https://github.com/MridulS dig in and find out what have replaced the
ffi function/variable in newer versions?

Does Kozea/cairocffi#62
Kozea/cairocffi#62 shed any light?
Please discuss in this thread before committing a fix.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#186 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUeB4Zgd6EKShVpm2Hfptk7EU5f3pZ9ks5qV_4cgaJpZM4JNqm9
.

@adbharadwaj
Copy link
Collaborator

About Kozea/cairocffi#62
Kozea/cairocffi#62 , I did try this to no
success.

Aditya Bharadwaj
Graduate Research Assistant,
Department of Computer Science,
Virginia Tech
adb@vt.edu

On Fri, Jul 15, 2016 at 6:05 PM, Aditya Bharadwaj adb@vt.edu wrote:

I am not sure which package is causing a conflict. This is a common
problem and is usually handled using well required packages file with
compatible versions

But I have already implemented the standard installation solution for
Graphspace. This solution fixes two things - python dependency management
and settings management for multiple environment.

I am talking about the first two commits in this branch.
https://github.com/Murali-group/GraphSpace/commits/%23176

Once I have made changes to the readme document, I will send a pull
request to the master branch.

Aditya Bharadwaj
Graduate Research Assistant,
Department of Computer Science,
Virginia Tech
adb@vt.edu

On Fri, Jul 15, 2016 at 5:39 PM, T. M. Murali notifications@github.com
wrote:

@adbharadwaj https://github.com/adbharadwaj Your solution will not
work for anyone who follows the instructions we currently have on GitHub
for installing GraphSpace. Can either you or @MridulS
https://github.com/MridulS dig in and find out what have replaced the
ffi function/variable in newer versions?

Does Kozea/cairocffi#62
Kozea/cairocffi#62 shed any light?
Please discuss in this thread before committing a fix.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#186 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUeB4Zgd6EKShVpm2Hfptk7EU5f3pZ9ks5qV_4cgaJpZM4JNqm9
.

@tmmurali
Copy link
Member

OK. These changes are very good. @adbharadwaj Let me know when you change the README so that I can review it.

@tmmurali
Copy link
Member

@adbharadwaj @MridulS Can we close this issue now?

@adbharadwaj
Copy link
Collaborator

@MridulS https://github.com/MridulS can you close this issue since you
opened it.

Aditya Bharadwaj
Graduate Research Assistant,
Department of Computer Science,
Virginia Tech
adb@vt.edu

On Wed, Aug 10, 2016 at 12:18 PM, T. M. Murali notifications@github.com
wrote:

@adbharadwaj https://github.com/adbharadwaj @MridulS
https://github.com/MridulS Can we close this issue now?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#186 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUeB4O3eEaiYL3Twe6-nc5ASp6GSniYks5qefm6gaJpZM4JNqm9
.

@MridulS
Copy link
Contributor Author

MridulS commented Aug 10, 2016

Yeah, it is fixed now.

@adbharadwaj Thanks :)

@MridulS MridulS closed this as completed Aug 10, 2016
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