-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Using yarn instead of npm install #3120
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I also cannot build from a fresh checkout. May I know how to use "yarn" to build? Thanks! |
I can build using yarn now. My commands are as follows following
mistercrunch <https://github.com/mistercrunch> 's reply:
# assuming $SUPERSET_HOME as the root of the repo
cd $SUPERSET_HOME/superset/assets
# firstly install yarn with stable Nodejs:
sudo npm cache clean
sudo npm install -g n
sudo n stable
# install yarn, a replacement for `npm install` that is faster and more
deterministic
npm install -g yarn
# run yarn to fetch all the dependencies
yarn
# run build
yarn run build
cd $SUPERSET_HOME
python setup.py install
The building works now and when I run test with:
sh run_specific_test.sh
I meet errors despite most tests being "ok". One of the error messages is
like follows:
======================================================================
ERROR: test_database_schema_hive (tests.model_tests.DatabaseModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/work/superset/tests/model_tests.py", line 42, in
test_database_schema_hive
db = make_url(model.get_sqla_engine().url).database
File "/home/work/superset/superset/models/core.py", line 571, in
get_sqla_engine
return create_engine(uri, **params)
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/sqlalchemy/engine/__init__.py",
line 386, in create_engine
return strategy.create(*args, **kwargs)
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/sqlalchemy/engine/strategies.py",
line 51, in create
entrypoint = u._get_entrypoint()
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/sqlalchemy/engine/url.py",
line 131, in _get_entrypoint
cls = registry.load(name)
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py",
line 208, in load
return impl.load()
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py",
line 2258, in load
return self.resolve()
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py",
line 2264, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/PyHive-0.4.0-py3.5.egg/pyhive/sqlalchemy_hive.py",
line 11, in <module>
from pyhive import hive
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/PyHive-0.4.0-py3.5.egg/pyhive/hive.py",
line 22, in <module>
import sasl
File
"/home/anaconda3/envs/py35/lib/python3.5/site-packages/sasl-0.2.1-py3.5-linux-x86_64.egg/sasl/__init__.py",
line 15, in <module>
from sasl.saslwrapper import *
ImportError:
/home/anaconda3/envs/py35/lib/python3.5/site-packages/sasl-0.2.1-py3.5-linux-x86_64.egg/sasl/
saslwrapper.cpython-35m-x86_64-linux-gnu.so: undefined symbol:
_ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
…On Tue, Jul 18, 2017 at 2:31 PM, Phakin Cheangkrachange < ***@***.***> wrote:
@j-zhou-au <https://github.com/j-zhou-au> were you able to build using
either yarn or npm?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD-PuS7Abos9ZUN1PsENQpHbeTQ0E1Npks5sPDUjgaJpZM4OWhuv>
.
|
@j-zhou-au thanks for the instruction. I'll update the result soon. |
mistercrunch
added
🏷️ bot
A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels
🚢 0.19.0
labels
Feb 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also bumping npm and node versions.
fixes #3115