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

TypeError: join() argument must be str or bytes, not 'NoneType' #108

Open
bemoregt opened this issue Nov 10, 2017 · 2 comments
Open

TypeError: join() argument must be str or bytes, not 'NoneType' #108

bemoregt opened this issue Nov 10, 2017 · 2 comments

Comments

@bemoregt
Copy link

Hi, @amaggi @nlanget

I have met this error.

kerbal@kraken ~/waveloc/examples $ python3 setup_examples.py
Traceback (most recent call last):
File "setup_examples.py", line 12, in
test_data_dir = os.path.join(base_path, 'test_data', 'raw_data')
File "/usr/lib/python3.5/posixpath.py", line 89, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
(funcname, s.class.name)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
kerbal@kraken ~/waveloc/examples $

What's wrong with me ?
There are few install information. )-:

@ThomasLecocq
Copy link

ThomasLecocq commented Nov 11, 2017

Hi,

You have to set up the WAVELOC_PATH environment variable.
Not doing so results in

base_path = os.getenv('WAVELOC_PATH')

being None and failing.

@LandAndLand
Copy link

嗨,

您必须设置WAVELOC_PATH环境变量。
不这样做会导致

base_path = os.getenv' WAVELOC_PATH '

存在None和失败。

嗨,@ amaggi @nlanget

我遇到了这个错误。

kerbal @kraken~ / waveloc / examples $ python3 setup_examples.py

Traceback(最近一次调用最后一次):
文件“setup_examples.py”,第12行,在
test_data_dir = os.path.join(base_path,'test_data','raw_data')
文件“/usr/lib/python3.5/posixpath.py”,第89行,加入
genericpath._check_arg_types('join',a,* p)
文件“/usr/lib/python3.5/genericpath.py”,线143,在_check_arg_types
(funcname的,S。来自无))
类型错误:join()方法的参数必须是海峡或字节,而不是'NoneType'
商店页面@海怪〜/ waveloc /例子$
我怎么了?
安装信息很少。) - :

怎么样了,这个问题你解决了吗

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