Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

error while building 'batavia.js' for development for tests #773

Open
vishal3410 opened this issue Feb 25, 2019 · 1 comment
Open

error while building 'batavia.js' for development for tests #773

vishal3410 opened this issue Feb 25, 2019 · 1 comment

Comments

@vishal3410
Copy link

vishal3410 commented Feb 25, 2019

Expected Behavior

if the builtin is implemented:
test_bool (tests.builtins.test_abs.BuiltinAbsFunctionTests) ... ok

if the builtin is not implemented:
test_abs_not_implemented (tests.builtins.test_abs.AbsTests) ... expected failure

Current Behavior

1.when running single test in builtins in vars function:

/home/vishal/.pyenv/versions/3.5.0/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
/home/vishal/.pyenv/versions/3.5.0/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'package_urls'
  warnings.warn(msg)
/home/vishal/pybee/venv/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '3.4.0-dev19' to '3.4.0.dev19'
  normalized_version,
running test
running egg_info
writing dependency_links to batavia.egg-info/dependency_links.txt
writing batavia.egg-info/PKG-INFO
writing top-level names to batavia.egg-info/top_level.txt
reading manifest file 'batavia.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'requirements*.txt'
writing manifest file 'batavia.egg-info/SOURCES.txt'
running build_ext
building 'batavia.js' for development
ERROR

--------------------------------------------------------------------------------------------------
ERROR: setUpClass (tests.builtins.test_vars.BuiltinVarsFunctionTests)
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vishal/pybee/batavia/tests/utils.py", line 446, in setUpClass
    setUpSuite()
  File "/home/vishal/pybee/batavia/tests/utils.py", line 71, in setUpSuite
    raise Exception("Error compiling batavia sources: " + out.decode('ascii'))
Exception: Error compiling batavia sources: Caching is enabled.
Error: EACCES: permission denied, open '/home/vishal/pybee/batavia/dist/batavia.js'`
  1. While running full test:
/home/vishal/.pyenv/versions/3.5.0/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'package_urls'
  warnings.warn(msg)
/home/vishal/.pyenv/versions/3.5.0/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
/home/vishal/pybee/venv/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '3.4.0-dev19' to '3.4.0.dev19'
  normalized_version,
running test
running egg_info
writing top-level names to batavia.egg-info/top_level.txt
writing batavia.egg-info/PKG-INFO
writing dependency_links to batavia.egg-info/dependency_links.txt
reading manifest file 'batavia.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'requirements*.txt'
writing manifest file 'batavia.egg-info/SOURCES.txt'
running build_ext
test_adjust (tests.test_utils.AdjustTests)
Test input can be stripped of leading spaces. ... ok
test_adjust_no_leading_space (tests.test_utils.AdjustTests) ... ok
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
test_bool (tests.test_utils.JavaScriptNormalizationTests) ... ok
test_exception (tests.test_utils.JavaScriptNormalizationTests) ... ok
test_exception_with_other_text (tests.test_utils.JavaScriptNormalizationTests) ... ok
test_memory_reference (tests.test_utils.JavaScriptNormalizationTests) ... ok
test_multi_frame_exception (tests.test_utils.JavaScriptNormalizationTests) ... ok
test_no_exception (tests.test_utils.JavaScriptNormalizationTests) ... ok
building 'batavia.js' for development
ERROR
test_exception (tests.test_utils.PythonNormalizationTests) ... ok
test_exception_with_other_text (tests.test_utils.PythonNormalizationTests) ... ok
test_float (tests.test_utils.PythonNormalizationTests) ... ok
test_memory_reference (tests.test_utils.PythonNormalizationTests) ... ok
test_multi_frame_exception (tests.test_utils.PythonNormalizationTests) ... ok
test_no_exception (tests.test_utils.PythonNormalizationTests) ... ok
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR
building 'batavia.js' for development
ERROR

and it continued till 30 minutes after that i interrupted using ctrl-c

Steps to reproduce

1.To reproduce first error python setup.py test -s tests.builtins.test_vars

2.To reproduce second error python setup.py test

Your Environment

Python - 3.5.0
Ubuntu - 18.04

It would be nice if someone would help me to resolve this issue

@vishal3410 vishal3410 changed the title AttributeError : module' object has no attribute 'TimeoutExpired' error while building 'batavia.js' for development Feb 25, 2019
@vishal3410 vishal3410 changed the title error while building 'batavia.js' for development error while building 'batavia.js' for development for tests Feb 25, 2019
@martica
Copy link
Contributor

martica commented May 21, 2019

Sorry it's been such a long time since you posted with no reply.

To me it looks like you somehow don't have write permission to the directory where it is trying to output batavia.js. The following error suggests that to me.

Error: EACCES: permission denied, open '/home/vishal/pybee/batavia/dist/batavia.js'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants