Problem building extensions: "node_modules could not be found at"

63 views
Skip to first unread message

Nick Edwards

unread,
May 20, 2021, 12:08:31 AM5/20/21
to Review Board Community
Hi,

I ran into some problems building a reviewboard extension for reviewboard 4.0. I followed the instuctions on https://www.reviewboard.org/docs/manual/4.0/extending/extensions/distribution/ but when I run

python setup.py bdist_wheel

or 

python setup.py bdist_wheel

or

python setup.py install

I get an exception:

django.core.exceptions.ImproperlyConfigured: node_modules could not be found at /usr/local/lib/python3.8/dist-packages/node_modules

After a bit of experimentation I got things working by downloading the djblets source and running "python setup.py develop" in djblets, which downloads the node modules into the djblets directory, then I copied node_modules to /usr/local/lib/python3.8/dist-packages/node_modules, and after that building my extension works. But this doesn't seem like the best way of doing thing... was I missing a step? Might be a good idea to clarify this on the web page?

Cheers,

Nick

Christian Hammond

unread,
May 20, 2021, 3:05:15 PM5/20/21
to revie...@googlegroups.com
At the moment, extensions can only be built against a development install of Review Board.

We have a fix for this internally, and will be releasing Djblets 2.2.1 over the weekend to address it.

Christian


--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/2896e26d-6856-49b1-9610-9764e6f33046n%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Christian Hammond

unread,
May 20, 2021, 6:50:28 PM5/20/21
to revie...@googlegroups.com
Hi Nick,

We've pushed out Djblets 2.2.1, which should fix this issue. You can simply `pip install -U Djblets` to get the fix. Give it a try and let me know if you encounter any issues.

Christian

Nick Edwards

unread,
May 23, 2021, 5:30:52 PM5/23/21
to revie...@googlegroups.com
Hi Christian,

Yup, that solved the problem. Many thanks!

Nick

You received this message because you are subscribed to a topic in the Google Groups "Review Board Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/SiTw7cc5Tvc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/CAE7Vndk0cHNfZ0%3DhQg7bBRJYZXvAqHNh1et9q%3D78LA7DbHig8w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages