Wednesday, April 15, 2020

Linux Panda3D, ImportError: No module named direct.directbase.DirectStart

What to do if you see the Error Message:
ImportError: No module named direct.directbase.DirectStart
This error means it couldn’t find the Python modules – please make sure you are running the correct version of Python (probably Python 3.7, that depends on the Panda3D version) and that the panda3d.pth is located inside the Python site- packages directory.

I got this problem during Panda3D Linux installation. Searching for panda3d.pth also
can not be found. So this is what i done to get the installation to work.
1. follow all steps in the Panda3D website
2. My system is Debian 10 64bit,
    a file panda3d1.10_1.10.0_amd64.deb created
3. After sudo dpkg -i panda3d1.10_1.10.0_amd64.deb
4. set $PYTHONPATH in ~/.bashrc
    export PYTHONPATH=/opt/pythonprj/panda3d/panda3d-src/built:$PYTHONPATH
*/ 'built' depends to the directory where one compile or execute this
    python makepanda/ --everything --installer
5. then run the environment by execute $ source ~/.bashrc or exit the terminal
    and relaunch, check with $ echo $PYTHONPATH, shud show the dir set at #4
$ python
Python 3.6.9 (default, Dec 19 2019, 01:20:01) 
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from direct.showbase.ShowBase import ShowBase

it works! ^^

Thursday, April 9, 2020

Debian Linux, Wifi disconnect frequently

Just feel so bored with the same problem over and over again, it is my internal Wifi.
It keeps disconnecting frequently. I bought a USB Wifi dongle and it also does not
help very much.

After some googling and found out that there is wifi.powersafe option that could be
set to disabled wifi power safe, link. Immediately set the conf file

$ sudo vim /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

add this in the file if blank:

wifi.powersave = 2

And if there is entries, then try to look for the above option and set to 2.
Which you could check for each of the options are


Then restart the NetworkManager

$ systemctl restart network-manager

My wifi is now working smoothly ^^

Monday, September 30, 2019

Error: cannot find symbol import

Having same problem like i had?

node_modules/react-native-audio/android/src/main/java/com/rnim/rn/audio/ error: cannot find symbol
  symbol:   class ActivityCompat
  location: package

Or something looks similar that saying
Well here is the SO, the solution is to jetify.

Use this :
step 1: add these two lines in Visit for complete guideline
step 2: use these commands
First of all remove node_modules folder and reinstall it using
npm install 
and then
npm install --save-dev jetifier 
npx jetify  
npx react-native run-android 
npx jetify
Happy coding ^^

Monday, September 23, 2019

Mapbox-gl Map got truncated

Mapbox-gl got initialized and then tap a button nav.push(xxx) and then from xxx.ts nav.pop().

Then the map got truncated or not full screen.

The solution is to call with setTimeout() 200-250ms would do. 

Thursday, May 23, 2019

XCode duplicate symbol architecture arm64

Yup i came across, when XCode build Archive the error were ld: 362 duplicate symbols for architecture arm64. The solution is the provided link.

Open Podfile and check the bottom part:
supposed to show something like

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if == "React"

Quotes answer from Alexandre Lage
I solved this issue by the following: (ref.:
  1. Open Xcode > Pods > Targets Support Files > Pods-{TARGET-NAME} find "OTHER_LDFLAGS" and remove only -ObjC in these two files:
Pods-{TARGET-NAME}.release.xcconfig e Pods-{TARGET-NAME}.debug.xcconfig
  1. Go to project main target > Build Settings > Other Linker Flags: Make sure no -ObjC is left in the value I deleted the build/Build folder in ios and run your project again.
It works now.
Side effects from the link above: the app may become larger as there may be duplicated symbols in it.
Hope it can help you.

If you see none, that add that one and then execute $ pod install
so the Pods project would be rebuild.

thank you ^^

Thursday, April 11, 2019

ReactNative Error no such file or directory: '.../node_modules/react-native-maps/lib/ios/AirGoogleMaps/DummyView.m'

If you eve encounter the same situation

clang: error: no such file or directory: '/Users/adesantoasman/.../node_modules/react-native-maps/lib/ios/AirGoogleMaps/DummyView.m'

Then simply do these:
1. go to the node_modules/react-native-maps/lib/ios/AirGoogleMaps/

2. the copy
cp AIRDummyView.h DummyView.h
cp AIRDummyView.m DummyView.m

3. edit the content of respective files to

//  AIRDummyView.h
//  AirMapsExplorer
//  Created by Gil Birman on 10/4/16.



@interface DummyView : UIView
@property (nonatomic, weak) UIView *view;
- (instancetype)initWithView:(UIView*)view;


//  AIRDummyView.m
//  AirMapsExplorer
//  Created by Gil Birman on 10/4/16.


#import "DummyView.h"

@implementation DummyView
- (instancetype)initWithView:(UIView*)view
  if ((self = [super init])) {
    self.view = view;
  return self;


Hope it helps ^^

Monday, April 8, 2019

IONIC2, Error Metadata version mismatch for module node_modules/@ionic-native/file/index.d.ts, found version 4, expected 3

Refer to this and make sure to
modify the package.json

    "@ionic-native/file": "^4.3.3",
    "@ionic-native/file": "4.3.3",

and yarn install.

Hope it helps